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
8ef7a515
Commit
8ef7a515
authored
Nov 05, 2021
by
Leo Gao
Browse files
Switch gpt3 to BaseLM
parent
fea936e6
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 @
8ef7a515
import
os
import
numpy
as
np
import
transformers
from
lm_eval.base
import
LM
,
Tokenized
LM
from
lm_eval.base
import
LM
,
Base
LM
from
lm_eval
import
utils
from
tqdm
import
tqdm
import
time
...
...
@@ -35,7 +35,7 @@ def oa_completion(**kwargs):
backoff_time
*=
1.5
class
GPT3LM
(
Tokenized
LM
):
class
GPT3LM
(
Base
LM
):
REQ_CHUNK_SIZE
=
20
def
__init__
(
self
,
engine
,
truncate
=
False
):
...
...
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