diff --git a/studio/frontend/src/features/export/components/export-run-panel.tsx b/studio/frontend/src/features/export/components/export-run-panel.tsx index ebd35c2158..9e0edf7303 100644 --- a/studio/frontend/src/features/export/components/export-run-panel.tsx +++ b/studio/frontend/src/features/export/components/export-run-panel.tsx @@ -320,7 +320,7 @@ export function ExportRunPanel(props: ExportRunPanelProps) { Model Name onModelNameChange(e.target.value)} /> diff --git a/studio/frontend/src/features/export/export-page.tsx b/studio/frontend/src/features/export/export-page.tsx index 14022f4d19..4d3cfad5dc 100644 --- a/studio/frontend/src/features/export/export-page.tsx +++ b/studio/frontend/src/features/export/export-page.tsx @@ -84,7 +84,7 @@ function buildRelativeSaveDirectory( ): string { if (exportMethod === "gguf") { return `${(sourceBaseModelName.split("/").pop() ?? selectedModelIdx ?? "model") - .replace(/[^a-zA-Z0-9._-]/g, "-")}-gguf`; + .replace(/[^a-zA-Z0-9._-]/g, "-")}-GGUF`; } return `${selectedModelIdx ?? "model"}/${checkpoint}`; } @@ -93,6 +93,8 @@ function siblingGgufDirectory(sourcePath: string): string | null { const trimmed = sourcePath.trim().replace(/[\\/]+$/, ""); if (!trimmed) return null; const slash = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\")); + // Lowercase `_gguf` matches the backend's intermediate dir (core/export/export.py); + // `_GGUF` would relocate+delete that sibling. if (slash < 0) return `${trimmed}_gguf`; const parent = slash === 0 || (slash === 2 && /^[A-Za-z]:/.test(trimmed))