davila7/claude-code-templates
Huggingface Accelerate
Dans l'annuaire depuis le 18 novembre 2026.
Description
Pour entraîner avec PyTorch sur plusieurs GPU ou machines sans réécrire tout votre code, ce Skill encapsule la bibliothèque Accelerate de HuggingFace. Le principe : ajouter quatre lignes pour convertir un script mono-GPU en script distribué.
Voir la description originale (anglais)
If you're running PyTorch training across multiple GPUs or machines and don't want to rewrite your entire codebase, this skill wraps HuggingFace's Accelerate library. The pitch is simple: add four lines of code to convert a single-GPU script into something that works with distributed setups, mixed precision, and different hardware backends. It's part of the HuggingFace ecosystem, so it integrates cleanly if you're already using their transformers or datasets libraries. The skill comes from a template collection with decent traction (27.7K stars), though it passed two security audits and got a warning from Snyk. Honestly, Accelerate shines when you want distributed training without the boilerplate of raw PyTorch DDP or DeepSpeed configuration.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.