fix: log final GGUF file locations after relocation

This commit is contained in:
Roland Tannous 2026-03-06 18:04:27 +00:00
commit 9470957bb9

View file

@ -453,7 +453,14 @@ class ExportBackend:
# Write export metadata so the Chat page can identify the base model
self._write_export_metadata(abs_save_dir)
logger.info(f"GGUF model saved successfully in {abs_save_dir}")
# Log final file locations (after relocation) so it's clear
# where the GGUF files actually ended up.
final_ggufs = sorted(glob.glob(os.path.join(abs_save_dir, "*.gguf")))
logger.info(
"GGUF export complete. Final files in %s:\n %s",
abs_save_dir,
"\n ".join(os.path.basename(f) for f in final_ggufs) or "(none)",
)
# Push to hub if requested
if push_to_hub: