unsloth/studio/backend/core/export
Roland Tannous 92f22f66c0 studio: ExportBackend.export_gguf batch call + try/finally relocation
Accept List[str] and invoke save_pretrained_gguf exactly once with the
full list. Wrap the save call in a nested try/finally so the GGUF
relocation block (cwd diff + subdir flatten + _gguf dir cleanup) runs
even when the batch call raises, ensuring partial outputs are moved
into the user's export directory instead of stranded in the repo root.

push_to_hub_gguf is also called once with the full list — unsloth
handles the list internally via save_pretrained_gguf.

Success message joins the list for readable multi-format output.

Completes the backend side of the studio GGUF batching change; frontend
still loops serial calls until the next commits.
2026-04-14 23:12:59 +04:00
..
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
export.py studio: ExportBackend.export_gguf batch call + try/finally relocation 2026-04-14 23:12:59 +04:00
orchestrator.py studio: thread List[str] quantization_method through orchestrator + worker 2026-04-14 22:46:29 +04:00
worker.py studio: thread List[str] quantization_method through orchestrator + worker 2026-04-14 22:46:29 +04:00