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
1c409035
Commit
1c409035
authored
Jun 21, 2023
by
haileyschoelkopf
Committed by
lintangsutawika
Jun 22, 2023
Browse files
remove stray print in AnthropicLM, add TODO
parent
360f7c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lm_eval/models/anthropic_llms.py
lm_eval/models/anthropic_llms.py
+1
-2
No files found.
lm_eval/models/anthropic_llms.py
View file @
1c409035
...
@@ -26,7 +26,6 @@ def anthropic_completion(
...
@@ -26,7 +26,6 @@ def anthropic_completion(
max_tokens_to_sample
=
max_tokens_to_sample
,
max_tokens_to_sample
=
max_tokens_to_sample
,
temperature
=
temperature
,
temperature
=
temperature
,
)
)
print
(
response
)
return
response
[
"completion"
]
return
response
[
"completion"
]
except
RuntimeError
:
except
RuntimeError
:
# TODO: I don't actually know what error Anthropic raises when it times out
# TODO: I don't actually know what error Anthropic raises when it times out
...
@@ -99,7 +98,7 @@ class AnthropicLM(LM):
...
@@ -99,7 +98,7 @@ class AnthropicLM(LM):
model
=
self
.
model
,
model
=
self
.
model
,
prompt
=
inp
,
prompt
=
inp
,
max_tokens_to_sample
=
self
.
max_gen_toks
,
max_tokens_to_sample
=
self
.
max_gen_toks
,
temperature
=
0.0
,
temperature
=
0.0
,
# TODO: implement non-greedy sampling for Anthropic
stop
=
until
,
stop
=
until
,
)
)
res
.
append
(
response
)
res
.
append
(
response
)
...
...
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