Skip to content

Commit 0b50112

Browse files
author
Fengzhe Zhou
authoredMay 29, 2024··
[Fix] Rollback opt model configs (#1213)
1 parent d656e81 commit 0b50112

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed
 

‎configs/models/opt/hf_opt_125m.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from opencompass.models import HuggingFaceBaseModel
22

3-
models = [
4-
dict(
5-
type=HuggingFaceBaseModel,
6-
abbr='opt-125m-hf',
7-
path='facebook/opt-125m',
8-
max_out_len=1024,
9-
batch_size=64,
10-
run_cfg=dict(num_gpus=1),
11-
)
12-
]
3+
opt125m = dict(
4+
type=HuggingFaceBaseModel,
5+
abbr='opt-125m-hf',
6+
path='facebook/opt-125m',
7+
max_out_len=1024,
8+
batch_size=64,
9+
run_cfg=dict(num_gpus=1),
10+
)
11+
12+
models = [opt125m]

‎configs/models/opt/hf_opt_350m.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from opencompass.models import HuggingFaceBaseModel
22

3-
models = [
4-
dict(
5-
type=HuggingFaceBaseModel,
6-
abbr='opt-350m-hf',
7-
path='facebook/opt-350m',
8-
max_out_len=1024,
9-
batch_size=32,
10-
run_cfg=dict(num_gpus=1),
11-
)
12-
]
3+
opt350m = dict(
4+
type=HuggingFaceBaseModel,
5+
abbr='opt-350m-hf',
6+
path='facebook/opt-350m',
7+
max_out_len=1024,
8+
batch_size=32,
9+
run_cfg=dict(num_gpus=1),
10+
)
11+
12+
models = [opt350m]

0 commit comments

Comments
 (0)
Please sign in to comment.