Fix canonical model --model_type in examples (#30480)

Fix --model_type in examples
This commit is contained in:
amyeroberts
2024-05-01 15:47:05 +01:00
committed by GitHub
parent 3c69d81eeb
commit bbaa8ceff6
7 changed files with 52 additions and 52 deletions

View File

@@ -239,7 +239,7 @@ When training a model from scratch, configuration values may be overridden with
```bash
python run_clm.py --model_type openai-community/gpt2 --tokenizer_name openai-community/gpt2 \ --config_overrides="n_embd=1024,n_head=16,n_layer=48,n_positions=102" \
python run_clm.py --model_type gpt2 --tokenizer_name openai-community/gpt2 \ --config_overrides="n_embd=1024,n_head=16,n_layer=48,n_positions=102" \
[...]
```

View File

@@ -26,6 +26,6 @@ Example usage:
```bash
python run_generation.py \
--model_type=openai-community/gpt2 \
--model_type=gpt2 \
--model_name_or_path=openai-community/gpt2
```