Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Accelerate support from HuggingFace - MultiGPU & distributed support! #4

Merged
merged 17 commits into from
Dec 20, 2023

Conversation

gcervantes8
Copy link
Owner

@gcervantes8 gcervantes8 commented Dec 20, 2023

Added Features

  • Optimizers are now available in the configuration file! You can easily run with 8 bit optimizers.
  • Mixed precision with bf16.
  • Multi-GPU support
  • Train loop modified! It is now more memory efficient. Saving up to 1 GB more.
  • Updated to Torchvision Transforms.v2
  • Refactored location of files, now there are only 2 public .py files in the src directory.

These changes add 2 more dependencies:

  • bitsandbytes - for their 8 bit optimizers
  • accelerate - to simplify the multi-gpu training

PyTorch requirement is moved from 1.9+ to 2.0+
Python requirement went from 3.7+ to 3.8+

@gcervantes8 gcervantes8 merged commit 7831e70 into master Dec 20, 2023
@gcervantes8 gcervantes8 deleted the hf-accelerate branch December 20, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant