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