ComfyUI/comfy
rattus 0bfb936ab4
comfy-aimdo 0.2 - Improved pytorch allocator integration (#12557)
Integrate comfy-aimdo 0.2 which takes a different approach to
installing the memory allocator hook. Instead of using the complicated
and buggy pytorch MemPool+CudaPluggableAlloctor, cuda is directly hooked
making the process much more transparent to both comfy and pytorch. As
far as pytorch knows, aimdo doesnt exist anymore, and just operates
behind the scenes.

Remove all the mempool setup stuff for dynamic_vram and bump the
comfy-aimdo version. Remove the allocator object from memory_management
and demote its use as an enablment check to a boolean flag.

Comfy-aimdo 0.2 also support the pytorch cuda async allocator, so
remove the dynamic_vram based force disablement of cuda_malloc and
just go back to the old settings of allocators based on command line
input.
2026-02-21 10:52:57 -08:00
..
audio_encoders
cldm
comfy_types
extra_samplers
image_encoders
k_diffusion
ldm
sd1_tokenizer
t2i_adapter
taesd
text_encoders
weight_adapter
cli_args.py
clip_config_bigg.json
clip_model.py
clip_vision_config_g.json
clip_vision_config_h.json
clip_vision_config_vitl_336_llava.json
clip_vision_config_vitl_336.json
clip_vision_config_vitl.json
clip_vision_siglip2_base_naflex.json
clip_vision_siglip_384.json
clip_vision_siglip_512.json
clip_vision.py
conds.py
context_windows.py
controlnet.py
diffusers_convert.py
diffusers_load.py
float.py
gligen.py
hooks.py
latent_formats.py
lora_convert.py
lora.py
memory_management.py comfy-aimdo 0.2 - Improved pytorch allocator integration (#12557) 2026-02-21 10:52:57 -08:00
model_base.py
model_detection.py
model_management.py comfy-aimdo 0.2 - Improved pytorch allocator integration (#12557) 2026-02-21 10:52:57 -08:00
model_patcher.py
model_sampling.py
nested_tensor.py
ops.py
options.py
patcher_extension.py
pinned_memory.py
pixel_space_convert.py
quant_ops.py
rmsnorm.py
sample.py
sampler_helpers.py
samplers.py
sd1_clip_config.json
sd1_clip.py
sd.py
sdxl_clip.py
supported_models_base.py
supported_models.py
utils.py comfy-aimdo 0.2 - Improved pytorch allocator integration (#12557) 2026-02-21 10:52:57 -08:00
windows.py