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.
Start here
Which Meta SAM Should You Download?
All official models are free to download. Most are gated behind a short access request.
facebook/sam3.1Small & openSAM 2.1Four sizes, no access request, Apache 2.0.facebookresearch/sam23DSAM 3DObjects to 3D, or full-body human meshes.facebook/sam-3d-objectsAudioSAM AudioSeparate sounds by text, time span or video.facebook/sam-audio-largeNot sure? Compare first: all models · SAM 3 vs 3.1 · SAM 3 vs SAM 2. No GPU? Try the playground or an API instead.
Official downloads
All Official Meta SAM Downloads
Code lives on GitHub (facebookresearch); weights live on Hugging Face (facebook). Sizes are approximate.
| Model | Weights | Main file / size | Code | Access | Licence |
|---|---|---|---|---|---|
| SAM 3.1 | facebook/sam3.1 | sam3.1_multiplex.pt · ~3.5 GB | facebookresearch/sam3 (latest) | Gated | SAM License |
| SAM 3 | facebook/sam3 | sam3.pt · 3.45 GB | facebookresearch/sam3 | Gated | SAM License |
| SAM 2.1 | sam2 download_ckpts.sh | tiny ~0.16 GB → large ~0.9 GB | facebookresearch/sam2 | Open | Apache 2.0 |
| SAM 1 | segment-anything links | ViT-B ~0.4 · ViT-L ~1.2 · ViT-H ~2.6 GB | facebookresearch/segment-anything | Open | Apache 2.0 |
| SAM 3D Objects | facebook/sam-3d-objects | several checkpoints, >11 GB total | facebookresearch/sam-3d-objects | Gated | SAM License |
| SAM 3D Body | facebook/sam-3d-body-dinov3 (840M) · ViT-H variant (631M) | model.ckpt + mhr_model.pt | facebookresearch/sam-3d-body | Gated | SAM License |
| SAM Audio | facebook/sam-audio-{small,base,large} and -tv variants | large-tv ~6.9 GB, base-tv ~3.6 GB (BF16) | facebookresearch/sam-audio | Gated | SAM License |
- 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.
- 1Sign inCreate or log in to a Hugging Face account.
- 2Open the repoe.g. huggingface.co/facebook/sam3.1.
- 3Fill in the formName, date of birth, country, affiliation; accept the SAM License.
- 4Wait for approvalOften minutes. Requests from comprehensively sanctioned jurisdictions are rejected.
- 5Repeat per modelAccess to sam3 doesn’t grant sam3.1, SAM 3D or SAM Audio.
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 approved2 · 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-largeor 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 runSAM 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--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/hfbefore downloading. - Servers: set
HF_TOKENas 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')"- 1Pick a modelSAM 3.1 for most new projects; SAM 2.1 for small, ungated models.
- 2Request accessOpen the Hugging Face model page, fill in the form and accept the SAM License.
- 3Create a tokenMake a read token in your Hugging Face settings and run hf auth login.
- 4Downloadhf download facebook/sam3.1 --local-dir checkpoints/sam3.1
- 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: 9999e2341ceef5e136daa386eecb55cb414446a00ac2b55eb2dfd2f7c3cf8c9eThe 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
| Route | What you download | Notes |
|---|---|---|
| Ultralytics | pip install -U ultralytics + sam3.pt or sam3.1_multiplex.pt | Weights aren’t auto-downloaded; fetch them from Meta’s repo and place them in your working folder. Wrapper is AGPL-3.0. |
| Transformers | from_pretrained("facebook/sam3") | Downloads into the HF cache on first use; same access rules. |
| ComfyUI | Native SAM 3.1 nodes + checkpoint | ComfyUI setup |
| Quantized community builds | e.g. GGUF FP16 (~1.7 GB) or Q8 (~1.1 GB) | Unofficial; SAM License still applies; verify the source. |
| No download | Nothing | Playground 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
| Problem | Cause | Fix |
|---|---|---|
| 401 / 403 / “gated repo” | No approval yet, or wrong account | Check the repo page shows access granted; hf auth whoami |
| Request rejected | Form details or sanctioned location | Use accurate details; otherwise use a hosted API |
| Download stalls | Network or proxy | Re-run the same command; it resumes |
| “No space left on device” | Cache on a small disk | Set HF_HOME to a larger drive |
| Checkpoint fails to load | Partial file or old code | Verify size and hash; git pull and reinstall |
| sam3.1 file not recognised | Code older than SAM 3.1 | Update 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.