Meta SAM 3 Playground

Download · SAM 3.1 · SAM 3 · SAM 2.1 · SAM 3D · SAM Audio

Meta SAM Download and Installation Guide Where to get every official Meta SAM model, how large each download is, how to get access to the gated checkpoints, and how to install and verify them.

terminal
Animation of downloading and verifying the SAM 3 checkpointA terminal runs hf download facebook/sam3. A progress bar fills to 3.45 gigabytes, the file lands in a checkpoints folder, and a checksum line shows a green tick. $ hf download facebook/sam3 --local-dir checkpoints/sam3 sam3.pt 3.45 GB ✓ saved to checkpoints/sam3/ $ sha256sum checkpoints/sam3/sam3.pt 9999e234…cf8c9e ✓ matches
Illustration: download, save and verify a checkpoint.

Official downloads

All Official Meta SAM Downloads

Code lives on GitHub (facebookresearch); weights live on Hugging Face (facebook). Sizes are approximate.

ModelWeightsMain file / sizeCodeAccessLicence
SAM 3.1facebook/sam3.1sam3.1_multiplex.pt · ~3.5 GBfacebookresearch/sam3 (latest)GatedSAM License
SAM 3facebook/sam3sam3.pt · 3.45 GBfacebookresearch/sam3GatedSAM License
SAM 2.1sam2 download_ckpts.shtiny ~0.16 GB → large ~0.9 GBfacebookresearch/sam2OpenApache 2.0
SAM 1segment-anything linksViT-B ~0.4 · ViT-L ~1.2 · ViT-H ~2.6 GBfacebookresearch/segment-anythingOpenApache 2.0
SAM 3D Objectsfacebook/sam-3d-objectsseveral checkpoints, >11 GB totalfacebookresearch/sam-3d-objectsGatedSAM License
SAM 3D Bodyfacebook/sam-3d-body-dinov3 (840M) · ViT-H variant (631M)model.ckpt + mhr_model.ptfacebookresearch/sam-3d-bodyGatedSAM License
SAM Audiofacebook/sam-audio-{small,base,large} and -tv variantslarge-tv ~6.9 GB, base-tv ~3.6 GB (BF16)facebookresearch/sam-audioGatedSAM License
download sizes
Animated chart of download sizesApproximate checkpoint download sizes on a log scale: SAM 2.1 Tiny about 0.16 GB, SAM 2.1 Large about 0.9 GB, SAM 1 ViT-H about 2.6 GB, SAM 3 3.45 GB, SAM 3.1 about 3.5 GB, SAM Audio large-tv about 6.9 GB in BF16, and SAM 3D Objects over 11 GB. SAM 2.1 Tiny~0.156 GBSAM 2.1 Large~0.898 GBSAM 1 ViT-H~2.56 GBSAM 3~3.45 GBSAM 3.1~3.5 GBSAM Audio large-tv~6.92 GBSAM 3D Objects>11 GB approximate main checkpoint sizes · log scale
Approximate sizes of the main checkpoint files.
  • SAM 3 vs 3.1: same size class; 3.1 adds Object Multiplex for faster multi-object video. SAM 3.1
  • SAM 2.1: smallest downloads; no text prompts. SAM 2
  • SAM 3D: largest; needs Linux and a 32 GB+ NVIDIA GPU for Objects. SAM 3D
  • SAM Audio: three sizes plus text-visual (-tv) variants; needs Python 3.11+. SAM Audio

Step 1

Request Access to Gated Checkpoints

SAM 3, 3.1, 3D and Audio weights are gated on Hugging Face. Approval is per repo, per account.

access flow
Animated diagram of gated model accessFive steps light up in order: open the model page on Hugging Face, submit the request form, get approved under the SAM License, create a token and log in, then download. model pagefacebook/sam3.1request formname · countryapprovedSAM Licensetokenhf auth logindownloadhf download gated: SAM 3 · 3.1 · SAM 3D · SAM Audioopen: SAM 1 · SAM 2 / 2.1 (direct download)
Illustration of the gated download flow.
  1. 1Sign inCreate or log in to a Hugging Face account.
  2. 2Open the repoe.g. huggingface.co/facebook/sam3.1.
  3. 3Fill in the formName, date of birth, country, affiliation; accept the SAM License.
  4. 4Wait for approvalOften minutes. Requests from comprehensively sanctioned jurisdictions are rejected.
  5. 5Repeat per modelAccess to sam3 doesn’t grant sam3.1, SAM 3D or SAM Audio.

Stuck? Hugging Face access guide · model access errors

Step 2

Log In and Download

Use the Hugging Face CLI. Downloads resume if interrupted.

1 · log in

pip install -U "huggingface_hub[cli]"
hf auth login                       # paste a read token from huggingface.co/settings/tokens
hf auth whoami                      # must be the account that was approved

2 · download checkpoints

# SAM 3.1 (recommended for new projects)
hf download facebook/sam3.1 --local-dir checkpoints/sam3.1

# SAM 3
hf download facebook/sam3 --local-dir checkpoints/sam3

# SAM 3D (body and objects) and SAM Audio, once each repo has approved you
hf download facebook/sam-3d-body-dinov3 --local-dir checkpoints/sam-3d-body-dinov3
hf download facebook/sam-audio-large --local-dir checkpoints/sam-audio-large

or from Python

from huggingface_hub import hf_hub_download

path = hf_hub_download(repo_id="facebook/sam3", filename="sam3.pt")
print(path)       # lands in the Hugging Face cache; reused on next run

SAM 2.1 (no login needed)

# SAM 2.1: no access request needed (Apache 2.0)
git clone https://github.com/facebookresearch/sam2.git
cd sam2/checkpoints && ./download_ckpts.sh      # tiny, small, base_plus, large
where files go
Animated folder layout after downloadA project folder fills in line by line: the cloned sam3 code repository, a checkpoints folder holding sam3.pt and sam3.1_multiplex.pt, and the default Hugging Face cache in the home folder. project/├── sam3/ ← git clone facebookresearch/sam3├── checkpoints/│ ├── sam3/sam3.pt 3.45 GB│ └── sam3.1/sam3.1_multiplex.pt ~3.5 GB└── ~/.cache/huggingface/ ← default cache set HF_HOME to move the cache to a bigger disk
Illustration of a typical project layout.
  • --local-dir: puts files where you choose, handy for Ultralytics and ComfyUI.
  • No --local-dir: files go to the Hugging Face cache and the sam3 package finds them automatically.
  • Big disk elsewhere? Set HF_HOME=/data/hf before downloading.
  • Servers: set HF_TOKEN as an environment variable instead of logging in interactively.

Step 3

Install SAM 3 / 3.1

Requirements: Linux (or WSL2), Python 3.12+, PyTorch 2.7+ and an NVIDIA GPU with CUDA 12.6+.

terminal

conda create -n sam3 python=3.12 -y && conda activate sam3
pip install torch==2.10.0 torchvision --index-url https://download.pytorch.org/whl/cu128
git clone https://github.com/facebookresearch/sam3.git
pip install -e ./sam3

# smoke test: builds the model (uses the cached checkpoint or downloads it)
python -c "from sam3.model_builder import build_sam3_image_model as b; b(); print('SAM 3 ready')"
  1. 1Pick a modelSAM 3.1 for most new projects; SAM 2.1 for small, ungated models.
  2. 2Request accessOpen the Hugging Face model page, fill in the form and accept the SAM License.
  3. 3Create a tokenMake a read token in your Hugging Face settings and run hf auth login.
  4. 4Downloadhf download facebook/sam3.1 --local-dir checkpoints/sam3.1
  5. 5VerifyCheck the file size and SHA-256, then run a one-line test.

Detailed walkthrough with optional speed-ups: install SAM 3 · First mask in Python: Python tutorial · Moving to 3.1: upgrade guide

Step 4

Verify the Download

A truncated or tampered checkpoint causes confusing load errors. Check size and hash once.

terminal

ls -lh checkpoints/sam3/sam3.pt                  # ≈ 3.45 GB (3,450,062,241 bytes)
sha256sum checkpoints/sam3/sam3.pt
# expected: 9999e2341ceef5e136daa386eecb55cb414446a00ac2b55eb2dfd2f7c3cf8c9e

The SHA-256 above is for facebook/sam3’s sam3.pt. For other files, compare with the hash shown on the file’s Hugging Face page. Load errors: checkpoint loading

Other routes

Other Ways to Get SAM

RouteWhat you downloadNotes
Ultralyticspip install -U ultralytics + sam3.pt or sam3.1_multiplex.ptWeights aren’t auto-downloaded; fetch them from Meta’s repo and place them in your working folder. Wrapper is AGPL-3.0.
Transformersfrom_pretrained("facebook/sam3")Downloads into the HF cache on first use; same access rules.
ComfyUINative SAM 3.1 nodes + checkpointComfyUI setup
Quantized community buildse.g. GGUF FP16 (~1.7 GB) or Q8 (~1.1 GB)Unofficial; SAM License still applies; verify the source.
No downloadNothingPlayground or hosted APIs

Requirements

Disk, GPU and System Requirements

SAM 3 / 3.1

  • Disk: ~4 GB per checkpoint plus Python packages.
  • GPU: NVIDIA with CUDA 12.6+; more VRAM for long videos.
  • OS: Linux; Windows via WSL2.
  • Mac/CPU: testing only, via Ultralytics.

Other models

  • SAM 2.1: Python 3.10+, PyTorch 2.5.1+; small GPUs work.
  • SAM 3D Objects: Linux, NVIDIA GPU with 32 GB+ VRAM.
  • SAM Audio: Python 3.11+; GPU strongly recommended.
  • All: stable internet for multi-GB downloads.

Full details: system requirements

Troubleshooting

Download Problems and Fixes

ProblemCauseFix
401 / 403 / “gated repo”No approval yet, or wrong accountCheck the repo page shows access granted; hf auth whoami
Request rejectedForm details or sanctioned locationUse accurate details; otherwise use a hosted API
Download stallsNetwork or proxyRe-run the same command; it resumes
“No space left on device”Cache on a small diskSet HF_HOME to a larger drive
Checkpoint fails to loadPartial file or old codeVerify size and hash; git pull and reinstall
sam3.1 file not recognisedCode older than SAM 3.1Update the sam3 repo. Upgrade guide

Questions

Download FAQ

Where can I download Meta SAM 3?

From Meta’s official Hugging Face repo facebook/sam3 (and facebook/sam3.1 for SAM 3.1). The code is in the facebookresearch/sam3 GitHub repository. Both checkpoints are gated: request access first.

Is the SAM 3 download free?

Yes. The weights are free to download under the SAM License after you request and receive access. Hosted APIs charge for usage, but the download itself costs nothing.

How big is the SAM 3 download?

The sam3.pt checkpoint is about 3.45 GB. SAM 3.1’s sam3.1_multiplex.pt is about 3.5 GB. Allow extra space for Python packages and the Hugging Face cache.

Why can’t I download the SAM 3 checkpoint?

Usually because access hasn’t been approved yet, or you aren’t logged in with the same Hugging Face account. Requests from comprehensively sanctioned jurisdictions are rejected.

Which SAM models can I download without a request?

SAM 1 and SAM 2/2.1 checkpoints are directly downloadable under Apache 2.0. SAM 3, SAM 3.1, SAM 3D and SAM Audio are gated.

Are third-party mirrors of SAM 3 safe to use?

Prefer Meta’s official repos. Mirrors and converted formats exist, but the SAM License still applies, and you should verify checksums because .pt files can contain code.

Can I download SAM 3 on a Mac or Windows?

You can download the files anywhere, but the official code needs Linux with an NVIDIA CUDA GPU; Windows users typically use WSL2. On Mac, use the slower Ultralytics route for testing or a hosted API.

Keep reading