Playground with samples for using the transformers library from Hugging Face (huggingface.co).
Samples:
pip install -r requirements.txtHint: use a virtual environment (VENV) for python and libraries
.venv\Scripts\activate
Some of the models are gated, f.e. StableCode - so you need to:
huggingface-cli login
and paste the token there.Fetch PIP install command from PyTorch Website: https://pytorch.org/get-started/locally/ On 4.8.2023 for my RTX2080 it was:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install transformers
Finally update requirements.txt
pip3 freeze > requirements.txt
Select one of the sampleXYZ.py of your choice and run them.
pip install transformers --upgrade
7 commits
Python
100.0%
Playground with samples for using the transformers library from Hugging Face (huggingface.co).
Samples:
pip install -r requirements.txtHint: use a virtual environment (VENV) for python and libraries
.venv\Scripts\activate
Some of the models are gated, f.e. StableCode - so you need to:
huggingface-cli login
and paste the token there.Fetch PIP install command from PyTorch Website: https://pytorch.org/get-started/locally/ On 4.8.2023 for my RTX2080 it was:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install transformers
Finally update requirements.txt
pip3 freeze > requirements.txt
Select one of the sampleXYZ.py of your choice and run them.
pip install transformers --upgrade
7 commits
Python
100.0%