Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Deft2023 Llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benoit Favre
Deft2023 Llm
Commits
a089b403
Commit
a089b403
authored
2 years ago
by
Benoit Favre
Browse files
Options
Downloads
Patches
Plain Diff
add gpt-4 result
parent
29404f50
No related branches found
No related tags found
No related merge requests found
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
RESULTS
+1
-0
1 addition, 0 deletions
RESULTS
logs/gpt-4-0314_prompt0.txt
+3746
-0
3746 additions, 0 deletions
logs/gpt-4-0314_prompt0.txt
output/gpt-4-0314_prompt0.txt
+312
-0
312 additions, 0 deletions
output/gpt-4-0314_prompt0.txt
run_api.py
+2
-1
2 additions, 1 deletion
run_api.py
runs
+2
-0
2 additions, 0 deletions
runs
with
4063 additions
and
1 deletion
RESULTS
+
1
−
0
View file @
a089b403
...
...
@@ -55,6 +55,7 @@ gpt-3.5-turbo-0301.run2 0.4551
gpt-3.5-turbo-0301 0.4038
text-curie-001 0.1217
text-davinci-003 0.2884
gpt-4 0.7788
FrenchMedMCQA: A French Multiple-Choice Question Answering Dataset for Medical domain
...
...
This diff is collapsed.
Click to expand it.
logs/gpt-4-0314_prompt0.txt
0 → 100644
+
3746
−
0
View file @
a089b403
This diff is collapsed.
Click to expand it.
output/gpt-4-0314_prompt0.txt
0 → 100644
+
312
−
0
View file @
a089b403
This diff is collapsed.
Click to expand it.
run_api.py
+
2
−
1
View file @
a089b403
...
...
@@ -5,7 +5,7 @@ import backoff
openai
.
api_key
=
OPENAI_TOKEN
openai_lm_models
=
[
'
text-davinci-003
'
,
'
text-davinci-002
'
,
'
code-davinci-002
'
,
'
code-cushman-001
'
,
'
text-curie-001
'
,
'
text-babbage-001
'
,
'
text-ada-001
'
,
'
davinci
'
,
'
curie
'
,
'
babage
'
,
'
ada
'
]
openai_chat_models
=
[
'
gpt-3.5-turbo-0301
'
,
'
gpt-3.5-turbo
'
]
openai_chat_models
=
[
'
gpt-3.5-turbo-0301
'
,
'
gpt-3.5-turbo
'
,
'
gpt-4
'
,
'
gpt-4-0314
'
,
'
gpt-4-32k
'
,
'
gpt-4-32k-0314
'
]
@backoff.on_exception
(
backoff
.
expo
,
(
openai
.
error
.
RateLimitError
,
openai
.
error
.
APIError
))
def
openai_complete
(
prompt
,
model
=
'
text-davinci-003
'
):
...
...
@@ -40,6 +40,7 @@ def main(result_path: str, corpus_path: str, model: str = 'openai/gpt-3.5-turbo-
def
generate
(
input_string
):
if
api
==
'
openai
'
:
if
llm
in
openai_chat_models
:
#print('This is a chat model')
return
openai_chat
(
input_string
,
llm
)
else
:
return
openai_complete
(
input_string
,
llm
)
...
...
This diff is collapsed.
Click to expand it.
runs
+
2
−
0
View file @
a089b403
...
...
@@ -8,6 +8,8 @@ python run_opt-iml.py output/opt-iml-30b_prompt0.txt ../json/dev.json opt-iml-30
python run_api.py output/code-cushman-001_prompt0.txt ../json/dev.json openai/code-cushman-001 | tee logs/code-cushman-001_prompt0.txt
python run_api.py output/code-davinci-002_prompt0.txt ../json/dev.json openai/code-davinci-002 | tee logs/code-davinci-002_prompt0.txt
python run_api.py output/gpt-4-0314_prompt0.txt ../json/dev.json openai/gpt-4-0314 | tee logs/gpt-4-0314_prompt0.txt
python run_api.py output/j1-jumbo_prompt0.txt ../json/dev.json ai21/j1-jumbo | tee logs/j1-jumbo_prompt0.txt
python run_bloomz.py output/en_bloomz-560m_prompt0.txt ../json/dev-en.json bloomz-560m en/0 | tee logs/en_bloomz-560m_prompt0.txt
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment