Skip to content

lokijota/huggingfacenlpcourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hugging Face NLP Course

Note: these are my personal notes, which I took while doing the HF NLP course. They are NOT a replacement or rewrite of the course, they are just notes supporting my learning.

Environment Setup

Install CUDA

Install PyTorch

Install base python libraries

conda create --name hfnlp python=3.9
conda activate hfnlp
pip install numpy
pip install ipykernel
conda install -c conda-forge ipywidgets

# To avoid this error https://github.com/huggingface/transformers/issues/21858
pip install chardet
pip install cchardet

# as per the first sample notebook
pip install --upgrade datasets evaluate transformers[sentencepiece] diffusers accelerate

Notes per chapter

Other tutorials to do

Bibtext reference to HF course:

@misc{huggingfacecourse,
  author = {Hugging Face},
  title = {The Hugging Face Course, 2022},
  howpublished = "\url{https://huggingface.co/course}",
  year = {2022},
  note = "[Online; accessed 2023/04/25]"
}