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
25a15379
Unverified
Commit
25a15379
authored
Jan 02, 2024
by
Stella Biderman
Committed by
GitHub
Jan 02, 2024
Browse files
Update openai_completions.py (#1238)
parent
4d10ad56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/models/openai_completions.py
lm_eval/models/openai_completions.py
+2
-2
No files found.
lm_eval/models/openai_completions.py
View file @
25a15379
...
@@ -76,7 +76,7 @@ class OpenaiCompletionsLM(LM):
...
@@ -76,7 +76,7 @@ class OpenaiCompletionsLM(LM):
def
__init__
(
def
__init__
(
self
,
self
,
model
:
str
=
"text-davinci-003"
,
model
:
str
,
truncate
:
bool
=
False
,
truncate
:
bool
=
False
,
max_gen_toks
:
int
=
256
,
max_gen_toks
:
int
=
256
,
batch_size
:
int
=
1
,
batch_size
:
int
=
1
,
...
@@ -86,7 +86,7 @@ class OpenaiCompletionsLM(LM):
...
@@ -86,7 +86,7 @@ class OpenaiCompletionsLM(LM):
"""
"""
:param engine: str
:param engine: str
OpenAI API engine (e.g.
davinci
)
OpenAI API engine (e.g.
gpt-3.5-turbo-instruct
)
:param truncate: bool
:param truncate: bool
Truncate input if too long (if False and input is too long, throw error)
Truncate input if too long (if False and input is too long, throw error)
"""
"""
...
...
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