We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这里提供一个简单的方案:
my_train.py
import sys from omegaconf import OmegaConf from llamafactory.train.tuner import run_exp def parse_args(): results = [] for arg in sys.argv[1:]: if not arg.startswith('-') and arg.endswith('.yaml'): content = OmegaConf.load(arg) for key, value in content.items(): results.append(f'--{key}={value}') else: results.append(arg) return results if __name__ == '__main__': args = parse_args() sys.argv = [sys.argv[0]] + args run_exp()
my_run.sh
#!/bin/bash deepspeed \ --num_gpus 8 \ --num_nodes 2 \ --hostfile hostfile \ --master_addr 10.252.32.12 \ my_train.py "$@"
Run bellow code:
bash my_run.sh examples/train_lora/llama3_lora_sft_ds3.yaml
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这里提供一个简单的方案:
my_train.py
my_run.sh
Run bellow code:
The text was updated successfully, but these errors were encountered: