We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 889ffd9 commit 5a26ef7Copy full SHA for 5a26ef7
eval_protocol/cli_commands/create_rft.py
@@ -103,7 +103,7 @@ def _maybe_transform_dataset_jsonl_via_adapter(
103
dir=output_dir,
104
) as f:
105
for row in eval_rows:
106
- f.write(json.dumps(row.model_dump(mode="json"), ensure_ascii=False) + "\n")
+ f.write(json.dumps(row.model_dump(mode="json", exclude_none=True), ensure_ascii=False) + "\n")
107
out_path = os.path.abspath(f.name)
108
try:
109
rel = os.path.relpath(out_path, project_root)
0 commit comments