Spaces:
Paused
Paused
Commit ·
c6d8fb7
1
Parent(s): f1b6b16
update
Browse files92 unmodified lines93949596979899295 unmodified lines39539639739839940040140292 unmodified linesimport unslothfrom datasets import load_datasetfrom trl import GRPOConfig, GRPOTrainerfrom unsloth import FastLanguageModeldef get_args():295 unmodified linesload_best_model_at_end=True,metric_for_best_model="reward", # 使用奖励作为评估指标greater_is_better=True,fp16=True,bf16=False,max_grad_norm=1.0,report_to="none", # 可根据需要改为"wandb"等92 unmodified lines93949596979899295 unmodified lines39539639739839940040140292 unmodified linesimport unslothfrom datasets import load_datasetfrom trl import GRPOConfig, GRPOTrainerfrom unsloth import FastLanguageModel, is_bf16_supporteddef get_args():295 unmodified linesload_best_model_at_end=True,metric_for_best_model="reward", # 使用奖励作为评估指标greater_is_better=True,fp16=False if is_bf16_supported() else True,bf16=True if is_bf16_supported else False,max_grad_norm=1.0,report_to="none", # 可根据需要改为"wandb"等
examples/tutorials/grpo/step_2_train_grpo_model_unsloth_ddp.py+3-3