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
3fa62d46
Commit
3fa62d46
authored
Mar 28, 2022
by
jon-tow
Browse files
Update `max_length`
parent
5bc61283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/models/gpt3.py
lm_eval/models/gpt3.py
+2
-2
No files found.
lm_eval/models/gpt3.py
View file @
3fa62d46
...
...
@@ -72,7 +72,7 @@ def oa_completion(**kwargs):
class
GPT3LM
(
BaseLM
):
REQ_CHUNK_SIZE
=
4
0
REQ_CHUNK_SIZE
=
2
0
def
__init__
(
self
,
engine
,
truncate
=
False
,
api_key
=
None
,
pass_strings
=
False
):
"""
...
...
@@ -276,7 +276,7 @@ class GooseAILM(GPT3LM):
@
property
def
max_length
(
self
):
# Note: this is temporary, will be raised to 2048 in the future
return
1
02
3
return
2
02
2
@
property
def
eot_token_id
(
self
):
...
...
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