Skip to content

Commit 1faedc4

Browse files
Ronald Tseronaldtse
authored andcommitted
fix: parity_model iterates the split precisions, not string chars
The string-default refactor (#81) fixed export_model's usage but parity_model's loop still iterated the string per character — first char 'f' produced ara-diac-small-2.1-f.zip after the 12h-timeout run finished the reference decode.
1 parent 835415b commit 1faedc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/gpu/modal_export.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def margin_model(
382382
meta_path = Path("/root/interscript-ml", spec["metadata"])
383383
mid = re.search(r"^id:\s*(\S+)", meta_path.read_text(encoding="utf-8"), re.M).group(1)
384384
reports: dict[str, str] = {}
385-
for precision in precisions:
385+
for precision in [p.strip() for p in precisions.split(",") if p.strip()]:
386386
zip_path = out_dir / f"{mid}-{precision}.zip"
387387
if not zip_path.exists():
388388
reports[precision] = "zip not exported (skipped)"

0 commit comments

Comments
 (0)