基于llama_factory的qwen3全参微调

部署运行你感兴趣的模型镜像
### model
model_name_or_path: /models/Qwen3-4B-Instruct-2507
#tool_format: qwen3
### method
stage: dpo
do_train: true
finetuning_type: full
#lora_target: all
#lora_rank: 16
pref_beta: 0.1
pref_loss: orpo  # [sigmoid (dpo), orpo, simpo]
#pissa_init: true
#pissa_iter: 16
#pissa_convert: true
deepspeed: /LLaMA-Factory-main/examples/deepspeed/ds_z3_config.json
flash_attn: fa2
### dataset
enable_thinking: false
dataset_dir: train_datas/task_dataset_info
dataset: task_file_name
template: qwen3
cutoff_len: 8000
overwrite_cache: true
preprocessing_num_workers: 16

### output
output_dir: /train_result/outputmodelname
logging_steps: 15
save_steps: 200
plot_loss: true
overwrite_output_dir: true
#report_to: swanlab
### train
per_device_train_batch_size: 2
gradient_accumulation_steps: 8
learning_rate: 5e-6
num_train_epochs: 10
lr_scheduler_type: cosine
warmup_ratio: 0.1
bf16: true
ddp_timeout: 180000000

您可能感兴趣的与本文相关的镜像

Llama Factory

Llama Factory

模型微调
LLama-Factory

LLaMA Factory 是一个简单易用且高效的大型语言模型(Large Language Model)训练与微调平台。通过 LLaMA Factory,可以在无需编写任何代码的前提下,在本地完成上百种预训练模型的微调

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

会发paper的学渣

您的鼓励和将是我前进的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值