(self, model)
| 90 | module._diffusers_hook._set_context(context_name) |
| 91 | |
| 92 | def _get_calibration_data(self, model): |
| 93 | for module in model.modules(): |
| 94 | if hasattr(module, "_diffusers_hook"): |
| 95 | hook = module._diffusers_hook.get_hook("mag_cache_block_hook") |
| 96 | if hook: |
| 97 | return hook.state_manager.get_state().calibration_ratios |
| 98 | return [] |
| 99 | |
| 100 | def test_mag_cache_validation(self): |
| 101 | """Test that missing mag_ratios raises ValueError.""" |
no test coverage detected