Views
No views yet
1NPROC_PER_NODE=8 \
2CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
3MASTER_PORT=29500 \
4swift sft \
5 --model_type qwen2-7b-instruct \
6 --learning_rate 2e-6 \
7 --sft_type full \
8 --dataset msagent-pro \
9 --gradient_checkpointing true \
10 --gradient_accumulation_steps 8 \
11 --deepspeed default-zero3 \
12 --use_loss_scale true \
13 --save_strategy epoch \
14 --batch_size 1 \
15 --num_train_epochs 1 \
16 --max_length 4096 \
17 --preprocess_num_proc 4 \
18 --use_loss_scale true \
19 --loss_scale_config_path agent-flan \
20 --ddp_backend nccl \| Model | ToolBench (in-domain) | ToolBench (out-of-domain) | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Plan.EM | Act.EM | HalluRate (lower is better) | Avg.F1 | R-L | Plan.EM | Act.EM | HalluRate (lower is better) | Avg.F1 | |
| llama3-8b-instruct | 74.11 | 54.74 | 4.16 | 46.53 | 8.51 | 73.17 | 57.67 | 3.84 | 48.58 |
| llama3-8b-agent-instruct-v2 | 83.37 | 60.01 | 2.58 | 54.41 | 26.34 | 82.57 | 60.14 | 1.79 | 55.25 |
1USE_HF=True swift deploy \
2 --model_id_or_path modelscope/qwen2-7b-agent-instruct \
3 --model_type qwen2-7b-instruct \
4 --infer_backend vllm \
5 --tools_prompt toolbench