add new chinese translations
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
# accelerate
|
||||
|
||||
> 一个使得可以在任何分布式配置中运行相同的 PyTorch 代码的库。
|
||||
> 更多信息:<https://huggingface.co/docs/accelerate/index>.
|
||||
> 一个库,可以在任何分布式配置中运行相同的PyTorch代码。
|
||||
> 更多信息:<https://huggingface.co/docs/accelerate/index>。
|
||||
|
||||
- 打印环境信息:
|
||||
|
||||
`accelerate env`
|
||||
|
||||
- 交互式地创建配置文件:
|
||||
- 交互式创建配置文件:
|
||||
|
||||
`accelerate config`
|
||||
|
||||
- 打印使用不同数据类型运行 Hugging Face 模型的估计 GPU 内存成本:
|
||||
- 打印使用不同数据类型运行Hugging Face模型的估计GPU内存成本:
|
||||
|
||||
`accelerate estimate-memory {{名字/模型}}`
|
||||
`accelerate estimate-memory {{name/model}}`
|
||||
|
||||
- 测试一个 Accelerate 配置文件:
|
||||
- 测试Accelerate配置文件:
|
||||
|
||||
`accelerate test --config_file {{路径/到/配置文件.yaml}}`
|
||||
`accelerate test --config_file {{path/to/config.yaml}}`
|
||||
|
||||
- 使用 Accelerate 在 CPU 上运行一个模型:
|
||||
- 使用Accelerate在CPU上运行模型:
|
||||
|
||||
`accelerate launch {{路径/到/脚本.py}} {{--cpu}}`
|
||||
`accelerate launch {{path/to/script.py}} {{--cpu}}`
|
||||
|
||||
- 使用 Accelerate 在多 GPU 上运行一个模型,使用 2 台机器:
|
||||
- 使用Accelerate在多GPU上运行模型,包含2台机器:
|
||||
|
||||
`accelerate launch {{路径/到/脚本.py}} --multi_gpu --num_machines 2`
|
||||
`accelerate launch {{path/to/script.py}} --multi_gpu --num_machines 2`
|
Reference in New Issue
Block a user