Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions openai/wandb_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ def _log_artifacts(cls, fine_tune, project, entity):
type="fine_tune_details",
metadata=fine_tune,
)
with artifact.new_file("fine_tune_details.json") as f:
with artifact.new_file(
"fine_tune_details.json", mode="w", encoding="utf-8"
) as f:
json.dump(fine_tune, f, indent=2)
wandb.run.log_artifact(
artifact,
Expand Down Expand Up @@ -276,7 +278,7 @@ def _log_artifact_inputs(cls, file, prefix, artifact_type, project, entity):
)
return
artifact = wandb.Artifact(artifact_name, type=artifact_type, metadata=file)
with artifact.new_file(filename, mode="w") as f:
with artifact.new_file(filename, mode="w", encoding="utf-8") as f:
f.write(file_content)

# create a Table
Expand Down