Skip to content

Commit 0f47843

Browse files
mishig25claude
andauthored
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

File tree

src/doc_builder/mock_deps/diffusers.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ real:pillow
1212
real:transformers
1313
bitsandbytes
1414
real:sentencepiece # kolors tokenizer imports it at module level
15+
optimum # optimum-quanto backend for quantization docs (also avoids diffusers' optimum_quanto/quanto BACKENDS_MAPPING KeyError in the dummy path)
16+
torchao
17+
gguf

0 commit comments

Comments
 (0)