Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
c12e5bec
Unverified
Commit
c12e5bec
authored
Jul 08, 2024
by
Hailey Schoelkopf
Committed by
GitHub
Jul 09, 2024
Browse files
fix: utf-8 encoding for logged sample files was missing (#2082)
parent
be01651c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/loggers/evaluation_tracker.py
lm_eval/loggers/evaluation_tracker.py
+1
-1
No files found.
lm_eval/loggers/evaluation_tracker.py
View file @
c12e5bec
...
@@ -318,7 +318,7 @@ class EvaluationTracker:
...
@@ -318,7 +318,7 @@ class EvaluationTracker:
+
"
\n
"
+
"
\n
"
)
)
with
open
(
file_results_samples
,
"a"
)
as
f
:
with
open
(
file_results_samples
,
"a"
,
encoding
=
"utf-8"
)
as
f
:
f
.
write
(
sample_dump
)
f
.
write
(
sample_dump
)
if
self
.
api
and
self
.
push_samples_to_hub
:
if
self
.
api
and
self
.
push_samples_to_hub
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment