Hugging Face: choose, check and run open models
Notebook· 14.02· 2–3 h· Lesson 117 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Search the Hugging Face Hub from Python and read what matters on a model page: licence, gating, task, size.
- Shortlist models for a real use case with explicit rules (commercial licence, no gate, fits your RAM).
- Pick a GGUF quantization by size and run any Hub GGUF in Ollama with
hf.co/<repo>:<quant>. - Explain gated models and what an
HF_TOKENdoes (and doesn't) unlock. - Run an ONNX embedding model and, optionally, a
transformerschat model on the CPU through LangChain. - Decide between Ollama, in-process
transformersand hosted Inference Providers for a given job.
Before you start
Lesson 14.01 (Ollama, fits_in_memory) and Module 06 (embeddings).
