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
181ccf43
Unverified
Commit
181ccf43
authored
Jan 22, 2024
by
Hailey Schoelkopf
Committed by
GitHub
Jan 23, 2024
Browse files
don't pass extra kwargs to mamba any more (#1328)
parent
4477d572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lm_eval/models/mamba_lm.py
lm_eval/models/mamba_lm.py
+1
-2
No files found.
lm_eval/models/mamba_lm.py
View file @
181ccf43
...
@@ -42,7 +42,7 @@ class MambaLMWrapper(HFLM):
...
@@ -42,7 +42,7 @@ class MambaLMWrapper(HFLM):
The HFLM arguments
The HFLM arguments
`backend`,
`revision`, `subfolder`,
`tokenizer`, `truncation`, `max_length`,
`backend`, `tokenizer`, `truncation`, `max_length`,
`device`, `dtype`, `batch_size`, `max_batch_size`, `trust_remote_code`, `use_fast_tokenizer`
`device`, `dtype`, `batch_size`, `max_batch_size`, `trust_remote_code`, `use_fast_tokenizer`
Are all supported by Mamba where they do not conflict
Are all supported by Mamba where they do not conflict
...
@@ -98,7 +98,6 @@ please install mamba via `pip install lm-eval[mamba]` or `pip install -e .[mamba
...
@@ -98,7 +98,6 @@ please install mamba via `pip install lm-eval[mamba]` or `pip install -e .[mamba
pretrained
,
pretrained
,
device
=
self
.
_device
,
device
=
self
.
_device
,
dtype
=
torch
.
float16
if
dtype
==
"auto"
else
utils
.
get_dtype
(
dtype
),
dtype
=
torch
.
float16
if
dtype
==
"auto"
else
utils
.
get_dtype
(
dtype
),
**
kwargs
,
)
)
def
_model_generate
(
self
,
context
,
max_length
,
stop
,
**
generation_kwargs
):
def
_model_generate
(
self
,
context
,
max_length
,
stop
,
**
generation_kwargs
):
...
...
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