From aae1059d9018c83d074bde2b30680571ee8c933c Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Tue, 14 Apr 2026 23:39:13 +0400 Subject: [PATCH] studio(frontend): send all GGUF formats in one request Drop the per-format serial loop that called exportGGUF once per item in quantLevels. quantLevels is already a string[]; pass it directly so multi-format selections become one POST instead of N sequential POSTs. Eliminates the wasted weight-merge between formats and lets the backend route all formats through save_pretrained_gguf's native list handling. Closes the studio-side half of the batch GGUF export work. --- .../frontend/src/features/export/export-page.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/studio/frontend/src/features/export/export-page.tsx b/studio/frontend/src/features/export/export-page.tsx index b47697e97b..643ea02ad5 100644 --- a/studio/frontend/src/features/export/export-page.tsx +++ b/studio/frontend/src/features/export/export-page.tsx @@ -454,15 +454,13 @@ export function ExportPage() { }); } } else if (exportMethod === "gguf") { - for (const quant of quantLevels) { - await exportGGUF({ - save_directory: saveDir, - quantization_method: quant, - push_to_hub: pushToHub, - repo_id: repoId, - hf_token: token, - }); - } + await exportGGUF({ + save_directory: saveDir, + quantization_method: quantLevels, + push_to_hub: pushToHub, + repo_id: repoId, + hf_token: token, + }); } else if (exportMethod === "lora") { await exportLoRA({ save_directory: saveDir,