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
db1f55ff
Commit
db1f55ff
authored
Jan 17, 2023
by
haileyschoelkopf
Browse files
first step: add HF+accelerate implementations
parent
25780307
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
639 additions
and
0 deletions
+639
-0
lm_eval/models/__init__.py
lm_eval/models/__init__.py
+3
-0
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+636
-0
No files found.
lm_eval/models/__init__.py
View file @
db1f55ff
from
.
import
gpt2
from
.
import
gpt3
from
.
import
huggingface
from
.
import
textsynth
from
.
import
dummy
MODEL_REGISTRY
=
{
"hf"
:
gpt2
.
HFLM
,
"hf-causal"
:
huggingface
.
AutoCausalLM
,
"hf-seq2seq"
:
huggingface
.
AutoSeq2SeqLM
,
"gpt2"
:
gpt2
.
GPT2LM
,
"gpt3"
:
gpt3
.
GPT3LM
,
"textsynth"
:
textsynth
.
TextSynthLM
,
...
...
lm_eval/models/huggingface.py
0 → 100644
View file @
db1f55ff
This diff is collapsed.
Click to expand it.
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