accelerate
约 1 分钟阅读
- huggingface/accelerateGitHubhuggingface/acceleratehuggingface/accelerate · Apache-2.0, Python · pip:accelerate · by Hugging Face · 简化和加速深度学习模型在不同硬件环境(如 CPU、GPU、TPU)上的分布式训练和推理笔记:accelerate
- Apache-2.0, Python
- pip
- by Hugging Face
- 简化和加速深度学习模型在不同硬件环境(如 CPU、GPU、TPU)上的分布式训练和推理
# $HOME/.cache/huggingface/accelerate/default_config.yaml
accelerate configdebug: false
distributed_type: 'NO'
downcast_bf16: 'no'
enable_cpu_affinity: true
gpu_ids: all
machine_rank: 0
main_training_function: main
mixed_precision: 'no'
num_machines: 1
num_processes: 1
rdzv_backend: static
same_network: true
tpu_env: []
tpu_use_cluster: false
tpu_use_sudo: false
use_cpu: false- mixed_precision: bf16
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub1 条
- huggingface/accelerategithub.com/huggingface/accelerate