Commit 0f47843
Mock optimum, torchao, gguf for diffusers docs (#806)
With DIFFUSERS_SLOW_IMPORT=yes (which the shared workflows set), the
quantization docs need the quanto/torchao/gguf backends importable.
Mocking optimum also sidesteps a diffusers bug in the unavailable path:
dummy_optimum_quanto_objects uses backend name "optimum_quanto" while
BACKENDS_MAPPING only has "quanto", so requires_backends raises
KeyError instead of the intended ImportError.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent f8ab2e5 commit 0f47843
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments