refactor ray integration, support save ckpt

Former-commit-id: 2f50b27e608b2092bfceab6c6e84e6631e973ee2
This commit is contained in:
hiyouga
2025-01-07 08:54:41 +00:00
parent 4f31ad997c
commit 944a2aec4d
18 changed files with 215 additions and 161 deletions

View File

@@ -9,7 +9,6 @@ finetuning_type: lora
lora_target: all
### dataset
dataset_dir: /home/ray/default/LLaMA-Factory/data/
dataset: identity,alpaca_en_demo
template: llama3
cutoff_len: 2048
@@ -39,10 +38,3 @@ val_size: 0.1
per_device_eval_batch_size: 1
eval_strategy: steps
eval_steps: 500
### ray setup
resources_per_worker:
GPU: 1
num_workers: 4
# placement_strategy: ...