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.
This commit is contained in:
Roland Tannous 2026-04-14 23:39:13 +04:00
parent 2cb2fa8a76
commit aae1059d90

View file

@ -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,