[PR #22] [MERGED] Dev/host mm #67

Closed
opened 2026-10-26 22:24:17 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/comfy-aimdo/pull/22
Author: @rattus128
Created: 3/13/2026
Status: ✅ Merged
Merged: 3/13/2026
Merged by: @rattus128

Base: master ← Head: dev/host-mm


📝 Commits (2)

📊 Changes

8 files changed (+328 additions, -3 deletions)

View changed files

📝 .github/workflows/build-wheels.yml (+2 -2)
📝 build-linux-docker (+1 -1)
➕ comfy_aimdo/host_buffer.py (+28 -0)
➕ comfy_aimdo/model_mmap.py (+38 -0)
📝 comfy_aimdo/torch.py (+4 -0)
➕ src-posix/model-mmap.c (+95 -0)
➕ src-win/model-mmap.c (+134 -0)
➕ src/hostbuf.c (+26 -0)

📄 Description

Contribution Agreement

  • [ X ] I agree that my contributions are licensed under the GPLv3.
  • [ X ] I grant Comfy Org the rights to relicense these contributions as outlined in CONTRIBUTING.md.

Implement hostbuf allocator for pinned memory - so we don't have to use the pyt allocator.
Implement bouncable mmap - so we can free RAM on windows in giant massive chunks with pretty much no consequence.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/comfy-aimdo/pull/22 **Author:** [@rattus128](https://github.com/rattus128) **Created:** 3/13/2026 **Status:** ✅ Merged **Merged:** 3/13/2026 **Merged by:** [@rattus128](https://github.com/rattus128) **Base:** `master` ← **Head:** `dev/host-mm` --- ### 📝 Commits (2) - [`f34b782`](https://github.com/Comfy-Org/comfy-aimdo/commit/f34b7829eeab9a1124f6e573032a75e7a462873e) model-mmap: introduce - [`3d8cb64`](https://github.com/Comfy-Org/comfy-aimdo/commit/3d8cb641de2ea6a247fb5875a3efc9ca577ea018) Add hostbuf API ### 📊 Changes **8 files changed** (+328 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build-wheels.yml` (+2 -2) 📝 `build-linux-docker` (+1 -1) ➕ `comfy_aimdo/host_buffer.py` (+28 -0) ➕ `comfy_aimdo/model_mmap.py` (+38 -0) 📝 `comfy_aimdo/torch.py` (+4 -0) ➕ `src-posix/model-mmap.c` (+95 -0) ➕ `src-win/model-mmap.c` (+134 -0) ➕ `src/hostbuf.c` (+26 -0) </details> ### 📄 Description ### Contribution Agreement - [ X ] I agree that my contributions are licensed under the GPLv3. - [ X ] I grant **Comfy Org** the rights to relicense these contributions as outlined in [CONTRIBUTING.md](./CONTRIBUTING.md). Implement hostbuf allocator for pinned memory - so we don't have to use the pyt allocator. Implement bouncable mmap - so we can free RAM on windows in giant massive chunks with pretty much no consequence. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 22:24:17 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/comfy-aimdo#67
No description provided.