Sam3 GGUF
sam-license
Source du modèle
- Type
- Other
- Taille du fichier
- 1,06–3,21 GB
- Modèle de base
- facebook/sam3
- Version
- vRevision 3c4b059
- Mis à jour
- 10 oct. 2026
- Téléchargements
- 106
- Source
- Hugging Face
Description de la source
SAM 3 — GGUF
Unofficial GGUF conversion of Meta's facebook/sam3
(HF Sam3VideoModel). This repository packages the original weights into GGUF
containers for use with custom C++ inference stacks built on top of
ggml / llama.cpp's gguf reader.
The original model is redistributed here unchanged in numerical content — only the on-disk container format differs. The SAM License terms of the upstream release apply in full (see LICENSE).
Files
| File | Precision | Size |
|---|---|---|
sam3-f32.gguf | FP32 (all tensors) | ~3.21 GB |
sam3-f16.gguf | FP16 (weights) + FP32 (norms / embeddings / heads / biases) | ~1.70 GB |
sam3-q8_0.gguf | Q8_0 (2-D Linear weights) + FP32 (rest) | ~1.06 GB |
Pick one file — each is self-contained (config, tokenizer, and all tensors in a
single .gguf).
What is preserved
The converter follows llama.cpp's GGUF conventions and keeps the mapping from the upstream HF release intact:
- Tensor names are kept verbatim from
model.safetensors. No renaming, no merging, no reshaping. Any custom reader can look tensors up by their original HF names (e.g.image_encoder.trunk.blocks.0.attn.qkv.weight). - Config KV — every key in the upstream
config.jsonis flattened into the GGUF metadata under thesam3.*namespace (typed scalars / arrays where possible). The full raw config is additionally embedded as a single string KVsam3.config_jsonso nested structures survive round-tripping. - Tokenizer — the CLIP byte-level BPE tokenizer (
vocab.json+merges.txt- special tokens from
tokenizer_config.json) is written under the standardtokenizer.ggml.*keys, withtokenizer.ggml.model = "clip".
- special tokens from
- Architecture tag —
general.architecture = "sam3".
Precision policy
Small / quantization-sensitive tensors are always kept at FP32 regardless of the output type. These include:
- All 1-D tensors (biases, norms, scales)
- Positional / temporal embeddings, RoPE frequencies, learned query/prompt
tokens (
mask_tokens,iou_token,obj_score_token,presence_token, ...) - Final projections of task/output heads (box / presence regression
.layer3, and.proj_outofiou_prediction_head/pred_obj_score_head/output_hypernetworks_mlps) - LayerNorm / RMSNorm parameters,
logit_scale, gamma tensors
For f16: everything not in the keep-FP32 list is down-cast to FP16.
For q8_0: 2-D Linear weight matrices whose last dim is a multiple of 32 are
quantized to GGML Q8_0 (block size 32, symmetric int8); Conv (4-D), norms,
embeddings, and biases stay FP32. There is no FP16 path in the Q8_0 file — the
non-quantized tensors are plain FP32.
Note
These files cannot be run with stock llama.cpp or llama-cli. SAM 3 is
not an LLM — it has no LLM/segmentation graph in llama.cpp. The .gguf files
here are containers intended to be consumed by a custom C++ reader (e.g. via
gguf_init_from_file in ggml) paired with a SAM 3 inference implementation
that mirrors the reference PyTorch model.
License
Distributed under the SAM License, inherited from the upstream facebook/sam3 release. By downloading or using these files you agree to the same terms as the original SAM 3 distribution.
Sources
1 source
Sources
1 sourceVérifié 10 oct.
Download files
Artefacts du modèle
3 artefacts
Artefacts du modèle
3 artefactsExtraits de sources
3 extraits
Extraits de sources
3 extraits--- license: other license_name: sam-license license_link: LICENSE base_model: facebook/sam3 library_name: gguf pipeline_tag: mask-generation language: - en tags: - sam3 - gguf - quantized - segmentation extra_gated_fields: First Name: text Last Name: text Date of birth: date_picker Country: country Affiliation: text Job title: type: select options: - Student - Research Graduate - AI researcher - AI developer/engineer - Reporter - Other geo: ip_location By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy: checkbox extra_gated_description: >- The information you provide will be collected, stored, processed and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/). extra_gated_button_content: Submit --- # SAM 3 — GGUF Unofficial GGUF conversion of Meta's [facebook/sam3](https://huggingface.co/facebook/sam3) (HF `Sam3VideoModel`). This repository packages the original weights into GGUF containers for use with custom C++ inference stacks built on top of [ggml](https://github.com/ggml-org/ggml) / llama.cpp's `gguf` reader. The original model is redistributed here unchanged in numerical content — only the on-disk container format differs. The SAM License terms of the upstream release apply in full (see [LICENSE](LICENSE)). ## Files | File | Precision | Size | | --- | --- | --- | | `sam3-f32.gguf` | FP32 (all tensors) | ~3.21 GB | | `sam3-f16.gguf` | FP16 (weights) + FP32 (norms / embeddings / heads / biases) | ~1.70 GB | | `sam3-q8_0.gguf` | Q8_0 (2-D Linear weights) + FP32 (rest) | ~1.06 GB | Pick one file — each is self-contained (config, tokenizer, and all tensors in a single `.gguf`). ## What is preserved The converter follows llama.cpp's GGUF conventions and keeps the mapping from the upstream HF release intact: - **Tensor names are kept verbatim** from `model.safetensors`. No renaming, no merging, no reshaping. Any custom reader can look tensors up by their original HF names (e.g. `image_encoder.trunk.blocks.0.attn.qkv.weight`). - **Config KV** — every key in the upstream `config.json` is flattened into the GGUF metadata under the `sam3.*` namespace (typed scalars / arrays where possible). The full raw config is additionally embedded as a single...
Source context: 106 downloads · 3 likes · Pipeline mask-generation · Library gguf · Repo erectbranch/sam3-gguf
Source context: 155 downloads · 0 likes · Pipeline mask-generation · Library gguf · Repo erectbranch/sam3-gguf
