1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 15:55:37 +02:00
tldr/pages/common/accelerate.md
Reinhart Previano Koentjoro d6d4561c17
pages*: fix documentation mistakes (#11641)
* a2ping: minor fixes

* ab: fix mnemonics

* ab: fix mnemonics

* ab: fix mnemonics

* abduco: add mnemonics

* accelerate: use Hugging Face as a trademark

* ack: highlight grep as a command

* acme.sh: highlight certbot as command

* act: add mnemonics

* ag: highlight ack as command

* age-keygen: add Oxford comma

* linux/shutdown: add mnemonics

* airdecap-ng: use Oxford comma

* alex: use standard path name template
2023-12-03 19:59:57 +07:00

768 B

Accelerate

A library that enables the same PyTorch code to be run across any distributed configuration. More information: https://huggingface.co/docs/accelerate/index.

  • Print environment information:

accelerate env

  • Interactively create a configuration file:

accelerate config

  • Print the estimated GPU memory cost of running a Hugging Face model with different data types:

accelerate estimate-memory {{name/model}}

  • Test an Accelerate configuration file:

accelerate test --config_file {{path/to/config.yaml}}

  • Run a model on CPU with Accelerate:

accelerate launch {{path/to/script.py}} {{--cpu}}

  • Run a model on multi-GPU with Accelerate, with 2 machines:

accelerate launch {{path/to/script.py}} --multi_gpu --num_machines {{2}}