项目文件夹

文件
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

46 行
1.2 KiB
Bash

# exp: https://github.com/modelscope/ms-swift/pull/4890
# CUDA_VISIBLE_DEVICES=7 \
# swift rollout \
# --model Qwen/Qwen2.5-3B-Instruct \
# --max_turns 3\
# --multi_turn_scheduler gym_scheduler \
# --use_gym_env true \
# --gym_env math_env
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5 \
NPROC_PER_NODE=6 \
swift rlhf \
--rlhf_type grpo \
--model Qwen/Qwen2.5-3B-Instruct \
--tuner_type full \
--use_vllm true \
--vllm_mode server \
--vllm_server_host 127.0.0.1 \
--vllm_server_port 8000 \
--vllm_server_pass_dataset true \
--torch_dtype bfloat16 \
--dataset AI-MO/NuminaMath-TIR#1000 \
--load_from_cache_file true \
--split_dataset_ratio 0 \
--max_completion_length 2048 \
--num_train_epochs 3 \
--per_device_train_batch_size 2 \
--learning_rate 1e-6 \
--gradient_accumulation_steps 2 \
--steps_per_generation 2 \
--save_total_limit 2 \
--logging_steps 1 \
--warmup_ratio 0.05 \
--dataloader_num_workers 4 \
--dataset_num_proc 4 \
--num_generations 6 \
--temperature 1.0 \
--top_p 0.9 \
--top_k 50 \
--log_completions true \
--num_iterations 1 \
--report_to tensorboard \
--beta 0 \
--loss_scale default