Back to Course
LLM Engineering: Transformers & RAG
Module 2 of 12
2. HuggingFace Libraries
The GitHub of AI
pythonfrom transformers import pipeline classifier = pipeline("sentiment-analysis") classifier("This course is amazing!") # Output: Positive, Score 0.99
Tokenizers
Computers don't read words. They read Token IDs.