Module 25 · Inference · 5 min

Hugging Face and
Git LFS.

Cloning a 40 GB model. Model cards, safetensors.

Reading time5 min Audio- PrerequisitesNone SourceTrack A · Gemini
§ 1

What this lesson covers.

This module is one of 42 in the curriculum. Below is the canonical interactive lesson — tabs, cards, and diagrams from the source repo, rendered inside the course shell. There is no audio narration for this module - it ships as text + interactive lesson only.

If you prefer to read first and play with the demos after, the interactive lesson sits below this section. If you'd rather hear it narrated while you scroll, hit play on the sticky audio bar at the top — or just let it autoplay.

§ 2

The lesson itself.

Interactive lesson · ported from Gemini track Click tabs to navigate · hover cards for details
Ecosystem Course File

Hugging Face & Git LFS

Cloning 40GB neural networks locally from the absolute center of open-source AI.

The GitHub of Machine Learning

Hugging Face is the central nervous system for open-source intelligence. It hosts hundreds of thousands of base models, fine-tunes, datasets, and LoRA adapters. Almost every researcher and engineer relies entirely on this public registry.

🤗 meta-llama / Meta-Llama-3-8B
♡ 12.4k

Model Card: Llama 3 is an auto-regressive language model that uses an optimized transformer architecture.

GGUF PyTorch Safetensors

Git Large File Storage (LFS)

Because models are fundamentally just massive matrices of floating-point numbers stored in generic `.bin` or `.safetensors` files, they weigh dozens of gigabytes. Standard Git immediately crashes trying to download files this large. You must orchestrate `Git LFS` (Large File Storage) to bypass the buffer limit.

# 1. Install Git LFS specifically
$ git lfs install
> Git LFS initialized.

# 2. Clone the massive repository
$ git clone https://huggingface.co/meta-llama/Meta-Llama-3-8B
> Cloning into 'Meta-Llama-3-8B'...
> remote: Enumerating objects: 45, done.
> Filtering content: 100% (4/4), 14.8 GB | 45.1 MB/s, done.

# 3. Model is now physically localized onto your drive
$ ls -lh
> -rw-r--r-- 1 user 14.8G model-00001-of-00004.safetensors
§ PAPERS

Further reading.

The canonical references for this module. External links open in a new tab.

§ NEXT

What to read next.

Use the pager below to move sequentially through the curriculum, or jump to any module from the course index. Each track has a "Prereq: ↑ foundation" callout so you can backfill anything that wasn't clear.