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
ee1f296e
Commit
ee1f296e
authored
May 07, 2024
by
JessicaOjo
Browse files
remove chat completion -untested
parent
b432d0e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
lm_eval/models/openai_completions.py
lm_eval/models/openai_completions.py
+0
-3
No files found.
lm_eval/models/openai_completions.py
View file @
ee1f296e
...
...
@@ -85,7 +85,6 @@ class OpenaiCompletionsLM(TemplateLM):
tokenizer
:
Optional
[
str
]
=
None
,
tokenizer_backend
:
Literal
[
"tiktoken"
,
"huggingface"
]
=
"tiktoken"
,
truncate
:
bool
=
False
,
chat
:
bool
=
False
,
max_gen_toks
:
int
=
256
,
batch_size
:
int
=
1
,
seed
:
int
=
1234
,
...
...
@@ -112,7 +111,6 @@ class OpenaiCompletionsLM(TemplateLM):
self
.
base_url
=
base_url
self
.
tokenizer_backend
=
tokenizer_backend
self
.
truncate
=
truncate
self
.
chat
=
chat
self
.
_batch_size
=
int
(
batch_size
)
self
.
_max_gen_toks
=
max_gen_toks
self
.
_max_length
=
max_length
...
...
@@ -213,7 +211,6 @@ class OpenaiCompletionsLM(TemplateLM):
response
=
oa_completion
(
client
=
self
.
client
,
model
=
self
.
model
,
chat
=
self
.
chat
,
prompt
=
inps
,
echo
=
True
,
max_tokens
=
0
,
...
...
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