Skip to content

Commit 3a42280

Browse files
[CE] Add Qwen into CE process (PaddlePaddle#7887)
* add qwen & baichuan into CE * add Qwen & Baichuan into CE, cleaned for PR * add only Qwen into CE, cleaned for PR * dd only Qwen into CE, open switch_ir_optim, cleaned for PR * add only Qwen into CE, keep switch_ir_optim open, add ce script
1 parent 13fd655 commit 3a42280

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
param="model_name_or_path=qwen "
17+
param="model_item=CE_qwen-7b-chat "
18+
param+="run_mode=MP1-mbs2 "
19+
param+="batch_size=2 "
20+
param+="device_num=N1C1 "
21+
param+="dtype=bf16 "
22+
23+
bash ./test_tipc/llm/prepare.sh
24+
25+
bash -c "${param} bash ./test_tipc/llm/run_ce.sh"
26+

β€Žtests/test_tipc/llm/fixtures/predictor-ptuning.yamlβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ chatglm:
1616
dtype: float16
1717
data_file: tests/fixtures/llm/data/train.json
1818

19+
qwen:
20+
model_name: qwen/qwen-7b-chat
21+
fused_model: true
22+
dtype: bfloat16
23+
data_file: tests/fixtures/llm/zh_query.json

β€Žtests/test_tipc/llm/fixtures/predictor.yamlβ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,10 @@ chatglm2:
2020
model_name: THUDM/chatglm2-6b
2121
fused_model: true
2222
dtype: float16
23-
data_file: tests/fixtures/llm/zh_query.json
23+
data_file: tests/fixtures/llm/zh_query.json
24+
25+
qwen:
26+
model_name: qwen/qwen-7b-chat
27+
fused_model: true
28+
dtype: bfloat16
29+
data_file: tests/fixtures/llm/zh_query.json

0 commit comments

Comments
Β (0)