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
793469e0
Unverified
Commit
793469e0
authored
Jun 12, 2024
by
Nikita Lozhnikov
Committed by
GitHub
Jun 12, 2024
Browse files
Fix self.max_tokens in anthropic_llms.py (#1848)
Fix bug where `self.max_tokens` was not set
parent
6f434934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/models/anthropic_llms.py
lm_eval/models/anthropic_llms.py
+1
-1
No files found.
lm_eval/models/anthropic_llms.py
View file @
793469e0
...
...
@@ -307,7 +307,7 @@ please install anthropic via `pip install 'lm-eval[anthropic]'` or `pip install
# defaults to os.environ.get("ANTHROPIC_API_KEY")
self
.
client
=
anthropic
.
Anthropic
()
self
.
temperature
=
temperature
self
.
max_token
=
max_tokens
self
.
max_token
s
=
max_tokens
self
.
tokenizer
=
self
.
client
.
get_tokenizer
()
self
.
kwargs
=
kwargs
...
...
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