can you see wgp-profile? How could we feed a similar thing into VibeComfy? WHat…
- User
can you see wgp-profile? How could we feed a similar thing into VibeComfy? WHat precisely does that do for Wan2GP? HOw could we replicate it for VibeComfy?
- Assistant
I’ll inspect the worker repo for
wgp-profileand the Wan2GP/VibeComfy integration points, then map what it actually changes and what the equivalent hook would be for VibeComfy. - Assistant
The repo has
--wgp-profilewired through the worker launch/test paths, and Wan2GP itself has a separate--profile/override_profilememory-profile system. I’m narrowing this to the worker-facing path and the VibeComfy adapter, since that’s where replication would happen. - Assistant
There is already a small worker-local VibeComfy profile protocol:
VIBECOMFY_MEMORY_PROFILEplus per-taskoverride_profilebecomevibecomfy.cli run --memory-profile N. I’m checking the sibling VibeComfy checkout now to see whether that flag is consumed or only passed through. - Assistant
- User
;et\s dp tjat - but does it do functonally the same thing in VibeComfy?
- Assistant
I’ll add the compatibility bridge so
--wgp-profile Nfeeds VibeComfy asVIBECOMFY_MEMORY_PROFILE=Nwhen the VibeComfy backend is active, then I’ll run the focused profile tests. Functionally: it is equivalent at the worker intent level, but not a bit-for-bit copy of Wan2GP’s MMGP offload internals. - Assistant
I’m going to keep the bridge narrow: it only sets
VIBECOMFY_MEMORY_PROFILEfor the VibeComfy backend, only when--wgp-profileis supplied, and it won’t override an explicitVIBECOMFY_MEMORY_PROFILE. That preserves the newer VibeComfy knob as the stronger setting. - Assistant
The bridge is in place. I’m adding focused unit coverage now so we lock down the precedence rules: backend must be VibeComfy,
--wgp-profilemust be present, and explicitVIBECOMFY_MEMORY_PROFILEmust win. - Assistant
I caught one test using a nonexistent helper while writing it. I’m tightening that to assert the environment bridge directly and then using the existing profile helper for the CLI protocol check.
- Assistant
The focused
uv run pytestpath is blocked on this Mac becausedecord==0.6.0has no macOS arm64 wheel. I’m going to run the same tests with the repo’s current Python environment if available, so we at least verify without forcing a fresh uv resolve. - Assistant
The
.venvcan run pytest, but importing the full worker server from the profile test pulls in optional runtime deps (numpy) that aren’t installed there. I’m moving the bridge logic into the lightweightvibecomfy_profilemodule so the unit test stays dependency-light and the server just calls it. - Assistant
Implemented the bridge.
--wgp-profile Nnow feeds VibeComfy asVIBECOMFY_MEMORY_PROFILE=NwhenREIGH_BACKEND=vibecomfy, unlessVIBECOMFY_MEMORY_PROFILEwas already explicitly set. Changes are in source/runtime/vibecomfy_profile.py and source/runtime/worker/server.py.Functionally: same intent, not identical internals. In Wan2GP, profile selects MMGP offload budgets/pinning/async transfer behavior. In VibeComfy, profile maps to Comfy runtime VRAM/cache/reserve settings, and the worker also uses it for WanVideo block swapping. So
3means “balanced/low-VRAM-ish execution strategy” in both systems, but VibeComfy cannot literally reproduce Wan2GP’soffload.profile(...)behavior.Verification:
.venv/bin/python -m pytest -q tests/runtime/test_vibecomfy_profile.pypassed:19 passed.I could not run the broader set on this Mac because has no macOS arm64 wheel; the existing also lacks for adapter tests.
- User
Does the VibeComfy thing definietly work deeply?
- Assistant
No, not “definitely deeply” in the strongest sense.
What is definitely true:
- The worker now passes
--wgp-profile Ninto VibeComfy asVIBECOMFY_MEMORY_PROFILE=N. - The VibeComfy adapter converts that into
vibecomfy run --memory-profile N. - VibeComfy has real handling for that flag: it maps profiles to Comfy VRAM/cache settings like
highvram,normalvram,lowvram,reserve_vram,cache_lru,cache_classic, anddisable_smart_memory. - For WanVideo I2V, the worker also uses the resolved profile to set
WanVideoBlockSwap.blocks_to_swap.
What is not proven:
- The worker now passes
- User
can you do a check vs. how the code atually works? Does it seem to do the right thing conceptually?
- Assistant
I’ll trace the actual call chain end to end rather than just the intended interface: worker flag/env, adapter command construction, VibeComfy CLI parsing, runtime config translation, and the WanVideo template-level knobs.
- Assistant
The code path is real: the flag becomes an env default, the adapter emits a VibeComfy CLI profile flag, and VibeComfy translates that into Comfy runtime configuration. I’m checking one important caveat now: whether session mode can bypass per-run memory profiles.
- Assistant
I checked the actual code path. It does the right thing conceptually for VibeComfy, with one important limitation.
- User
let's add a ticket for that
- Assistant
I’ll use the
megaplan-ticketsskill to file a repo-scoped note for the VibeComfy profile validation follow-up. - Assistant
Filed ticket
01KRK2WDM7C65VH2CPQYJ9VVMN:Validate VibeComfy memory-profile parity under GPU load
It captures the GPU smoke matrix, metadata/VRAM/block-swap evidence to collect, and the session-mode caveat.