Skip to content

Instantly share code, notes, and snippets.

@leonistor
Last active January 16, 2025 13:24
Show Gist options
  • Select an option

  • Save leonistor/5780eb3f661665d459a1f84ee71b9db5 to your computer and use it in GitHub Desktop.

Select an option

Save leonistor/5780eb3f661665d459a1f84ee71b9db5 to your computer and use it in GitHub Desktop.
huggingface course local

huggingface course

prerequisites

1. mamba

use fresh install

2. fastchan channel

about fastchan: https://www.fast.ai/2021/07/15/fastconda/

add ~/.condarc:

channels:
  - fastchan
  - defaults

setup for course

conda create -n hugg
conda activate hugg

mamba install jupyterlab
mamba install ipywidgets
jupyter nbextension enable --py widgetsnbextension

mamba install transformers[sentencepiece]
mamba install pytorch torchvision torchaudio cudatoolkit=10.2
mamba install sentencepiece
mamba install datasets

jupyter lab --no-browser --port 8888 --ip "*" --notebook-dir .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment