Files
xiaolibai-sys-ComfyUI-Berni…/utils
xiaolibai-sys 520d9ae6cd fix: FreeNoise color shift + RAM not released after model unload
Two fixes for dual-expert 14B sampling:

1. FreeNoise color shift (bernini_sampling.py)
   - Clone noise before FreeNoise shuffling so differential diffusion
     uses original i.i.d. noise (model trained on i.i.d.).
   - FreeNoise-shuffled noise only for k-diffusion x_T initialization.

2. RAM not released after model unload (model_manager.py)
   - BerniniRModelHandle.unload() now calls release_model_ram() before
     mm.unload_model_and_clones, replacing all parameters with empty
     tensors via module._parameters[key] = empty(0).
   - Fixed _make_low_wrapper closure dropping high_model reference via
     nonlocal, causing the cleanup loop to call None.unload().
2026-07-16 15:00:30 +08:00
..