mirror of
https://github.com/unslothai/unsloth
synced 2026-04-21 13:37:39 +00:00
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:
parent
2cb2fa8a76
commit
aae1059d90
1 changed files with 7 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue