Fix Aimdo fallback on probe to not use zero-copy sft#12634
Fix Aimdo fallback on probe to not use zero-copy sft#12634rattus128 wants to merge 2 commits intoComfy-Org:masterfrom
Conversation
This was going to the raw command line switch and should respect main.py probe of whether aimdo actually loaded successfully.
Avoid changes of behaviour on --fast dynamic_vram when aimdo doesnt work.
📝 WalkthroughWalkthroughThis pull request refactors the dynamic VRAM loading mechanism across two files. In 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
comfy/utils.py (1)
33-33: Remove the duplicatedcomfy.memory_managementimport.Line 33 re-imports a module already imported at Line 23. This is harmless at runtime, but it adds noise and can trip lint configs.
Suggested cleanup
-from comfy.cli_args import args -import comfy.memory_management +from comfy.cli_args import args🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@comfy/utils.py` at line 33, Remove the duplicated import of the module comfy.memory_management in comfy/utils.py: locate the repeated "import comfy.memory_management" entry that appears after the original import and delete the redundant line so the module is only imported once; ensure other imports remain untouched and run the linter to verify no import-duplication warnings remain.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@comfy/utils.py`:
- Line 33: Remove the duplicated import of the module comfy.memory_management in
comfy/utils.py: locate the repeated "import comfy.memory_management" entry that
appears after the original import and delete the redundant line so the module is
only imported once; ensure other imports remain untouched and run the linter to
verify no import-duplication warnings remain.
Complete the fallback properly when aimdo fails to probe.
Improves the behaviour seen in:
Comfy-Org/comfy-aimdo#5
Does not fix root cause (which is cu13 incompatibilty) but will improve fallback to be clean.