Update all references to canonical models (#29001)
* Script & Manual edition * Update
This commit is contained in:
@@ -180,14 +180,14 @@ conda install conda-forge::transformers
|
||||
例如,你通常会使用以下命令对外部实例进行防火墙保护的的普通网络上运行程序:
|
||||
|
||||
```bash
|
||||
python examples/pytorch/translation/run_translation.py --model_name_or_path t5-small --dataset_name wmt16 --dataset_config ro-en ...
|
||||
python examples/pytorch/translation/run_translation.py --model_name_or_path google-t5/t5-small --dataset_name wmt16 --dataset_config ro-en ...
|
||||
```
|
||||
|
||||
在离线环境中运行相同的程序:
|
||||
|
||||
```bash
|
||||
HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 \
|
||||
python examples/pytorch/translation/run_translation.py --model_name_or_path t5-small --dataset_name wmt16 --dataset_config ro-en ...
|
||||
python examples/pytorch/translation/run_translation.py --model_name_or_path google-t5/t5-small --dataset_name wmt16 --dataset_config ro-en ...
|
||||
```
|
||||
|
||||
现在脚本可以应该正常运行,而无需挂起或等待超时,因为它知道只应查找本地文件。
|
||||
|
||||
Reference in New Issue
Block a user