Skip to content

Commit b9d11ab

Browse files
authored
Added qwen support (#134)
1 parent 0e57336 commit b9d11ab

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
model_args:
2+
pretrained_model_name_or_path: "Qwen/Qwen2.5-1.5B-Instruct"
3+
attn_implementation: 'flash_attention_2'
4+
torch_dtype: bfloat16
5+
tokenizer_args:
6+
pretrained_model_name_or_path: "Qwen/Qwen2.5-1.5B-Instruct"
7+
template_args:
8+
apply_chat_template: true
9+
system_prompt: "You are a helpful assistant."
10+
system_prompt_with_special_tokens: "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n"
11+
user_start_tag: "<|im_start|>user\n"
12+
user_end_tag: "<|im_end|>\n"
13+
asst_start_tag: "<|im_start|>assistant\n"
14+
asst_end_tag: "<|im_end|>\n"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
model_args:
2+
pretrained_model_name_or_path: "Qwen/Qwen2.5-3B-Instruct"
3+
attn_implementation: 'flash_attention_2'
4+
torch_dtype: bfloat16
5+
tokenizer_args:
6+
pretrained_model_name_or_path: "Qwen/Qwen2.5-3B-Instruct"
7+
template_args:
8+
apply_chat_template: true
9+
system_prompt: "You are a helpful assistant."
10+
system_prompt_with_special_tokens: "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n"
11+
user_start_tag: "<|im_start|>user\n"
12+
user_end_tag: "<|im_end|>\n"
13+
asst_start_tag: "<|im_start|>assistant\n"
14+
asst_end_tag: "<|im_end|>\n"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
model_args:
2+
pretrained_model_name_or_path: "Qwen/Qwen2.5-7B-Instruct"
3+
attn_implementation: 'flash_attention_2'
4+
torch_dtype: bfloat16
5+
tokenizer_args:
6+
pretrained_model_name_or_path: "Qwen/Qwen2.5-7B-Instruct"
7+
template_args:
8+
apply_chat_template: true
9+
system_prompt: "You are a helpful assistant."
10+
system_prompt_with_special_tokens: "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n"
11+
user_start_tag: "<|im_start|>user\n"
12+
user_end_tag: "<|im_end|>\n"
13+
asst_start_tag: "<|im_start|>assistant\n"
14+
asst_end_tag: "<|im_end|>\n"

0 commit comments

Comments
 (0)