drdeveloper88's picture
Upload WorldDisasterLM-8B source code: FastAPI backend, training pipeline, 11-language support
495526b
Raw
History Blame Contribute Delete
463 Bytes
from pathlib import Path
from worlddisasterlm.utils.io import ensure_dir
def export_onnx(model_path: str, output_path: str = "artifacts/model.onnx") -> Path:
target = Path(output_path)
ensure_dir(target.parent)
target.write_text(
"Placeholder ONNX artifact metadata. Replace with actual transformer export logic.",
encoding="utf-8",
)
print(f"ONNX export stub created at {target} from model {model_path}")
return target