Skip to content

Commit 68fb12e

Browse files
Hotfix: Use full model_name for model_id for Midm-2.0 (#61)
1 parent 0899c3f commit 68fb12e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

huggingface/transformers/text2text-generation/midm/compile.py renamed to huggingface/transformers/text2text-generation/Midm-2.0/compile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def parsing_argument():
1616
"--model_id",
1717
type=str,
1818
choices=["Midm-2.0-Base-Instruct", "Midm-2.0-Mini-Instruct"],
19-
default="Midm-2.0-Mini-Instruct",
19+
default="Midm-2.0-Base-Instruct",
2020
help="(str) model type, Size of midm. [Midm-2.0-Base-Instruct, Midm-2.0-Mini-Instruct]",
2121
)
2222
return parser.parse_args()
@@ -28,7 +28,7 @@ def main():
2828
model_name = f"K-intelligence/{args.model_id}"
2929

3030
model = RBLNLlamaForCausalLM.from_pretrained(
31-
model_id=os.path.basename(model_name),
31+
model_id=model_name,
3232
export=True,
3333
rbln_batch_size=1,
3434
rbln_max_seq_len=32_768,

huggingface/transformers/text2text-generation/midm/inference.py renamed to huggingface/transformers/text2text-generation/Midm-2.0/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def parsing_argument():
1212
"--model_id",
1313
type=str,
1414
choices=["Midm-2.0-Base-Instruct", "Midm-2.0-Mini-Instruct"],
15-
default="Midm-2.0-Mini-Instruct",
15+
default="Midm-2.0-Base-Instruct",
1616
help="(str) model type, Size of midm. [Midm-2.0-Base-Instruct, Midm-2.0-Mini-Instruct]",
1717
)
1818
parser.add_argument(

0 commit comments

Comments
 (0)