Motif-2.6B ยท FP8 (dynamic)

8-bit quantization of Motif-Technologies/Motif-2.6B for ๐Ÿค— Transformers (trust_remote_code). Quantized by axteam.

Base model Motif-Technologies/Motif-2.6B
Method FP8 (dynamic)
Format compressed-tensors float-quantized (scheme FP8_DYNAMIC)
Weights / activations W8A8 โ€” FP8 E4M3 weights (per-channel), dynamic per-token FP8 activations
Architecture Dense (Motif arch ยท differential attention) ยท 32 layers ยท text-only
Size on disk ~3.9 GB
Calibration None (data-free)
License apache-2.0

Quantization details

  • Scheme โ€” W8A8 โ€” FP8 E4M3 weights (per-channel), dynamic per-token FP8 activations, stored as compressed-tensors float-quantized (scheme FP8_DYNAMIC).
  • Kept in BF16 โ€” token embeddings, the LM head, and all RMSNorms. Only attention & MLP projections are quantized.
  • Post-training quantization (no retraining). Tokenizer / chat_template identical to the original.

Requirements

Runtime Transformers only โ€” vLLM 0.32 does not support the Motif architecture.
Transformers transformers>=4.56,<5 + compressed-tensors>=0.19 + trust_remote_code=True (tested on CPU: 4.57.6 + 0.20.1, 4.56.2 + 0.20.1, 4.57.6 + 0.19.0). Transformers 5.x does not work.
Memory weights 3.9 GB, but Transformers decompresses them to BF16 (~5.2 GB) on the first forward.

Usage (Transformers)

vLLM does not support the Motif architecture (checked with vLLM 0.32). The bundled modeling_motif.py is the upstream code written for Transformers 4.x โ€” under Transformers 5.x it fails to load or generates only ! tokens (the BF16 original behaves the same), so pin 4.x:

pip install "transformers>=4.56,<5" "compressed-tensors>=0.19" accelerate torch
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "axteam/Motif-2.6B-FP8-dynamic"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).eval()

msgs = [{"role": "user", "content": "๋Œ€ํ•œ๋ฏผ๊ตญ์˜ ์ˆ˜๋„๋Š” ์–ด๋””์ธ๊ฐ€์š”?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt")
out = model.generate(ids, attention_mask=torch.ones_like(ids), max_new_tokens=128, do_sample=False,
                     pad_token_id=tok.pad_token_id)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))

Tested on CPU, 2026-11-01: transformers 4.57.6 + compressed-tensors 0.20.1 (full prompt set), 4.56.2 + 0.20.1 and 4.57.6 + 0.19.0 (quick check); torch 2.15, Python 3.12. With the chat prompt above it answers ๋Œ€ํ•œ๋ฏผ๊ตญ์˜ ์ˆ˜๋„๋Š” ์„œ์šธ์ž…๋‹ˆ๋‹ค. โ€ฆ, token-for-token the same as the BF16 original; the first next-token probabilities after "The capital of France is" are Paris 0.59 (FP8) vs 0.62 (BF16). Transformers 4.51.3 + compressed-tensors 0.10.2 also works but is very slow (it re-applies the FP8 quantization on every forward). 4.53.3 loads but crashes on the first forward (the FP8 weights are never decompressed โ€” Transformers' compressed-tensors loader decompresses them only from 4.56); 4.51.3 with compressed-tensors โ‰ฅ0.11 does not load. Memory/speed: Transformers decompresses the FP8 weights to BF16 on the first forward, so runtime memory and speed are the same as the BF16 model; this build mainly reduces download and storage size.

License

Quantized derivative of Motif-Technologies/Motif-2.6B (apache-2.0).


ํ•œ๊ตญ์–ด ์š”์•ฝ

Motif-Technologies/Motif-2.6B์˜ FP8 (W8A8) ์–‘์žํ™” ๋นŒ๋“œ ยท ์ œ์ž‘ axteam

๊ฐœ์š”

ํ•ญ๋ชฉ ๋‚ด์šฉ
์›๋ณธ ๋ชจ๋ธ Motif-Technologies/Motif-2.6B
์–‘์žํ™” ๋ฐฉ์‹ FP8 ๋™์  ์–‘์žํ™” (W8A8)
์ €์žฅ ํ˜•์‹ compressed-tensors float-quantized (scheme FP8_DYNAMIC)
๋ชจ๋ธ ๊ตฌ์กฐ Dense (Motif ๊ตฌ์กฐ, differential attention) ยท 32์ธต ยท ํ…์ŠคํŠธ ์ „์šฉ
์šฉ๋Ÿ‰ ์•ฝ 3.9 GB
๋ณด์ • ๋ฐ์ดํ„ฐ ์—†์Œ (๊ฐ€์ค‘์น˜ ์Šค์ผ€์ผ์€ ๊ฐ€์ค‘์น˜๋งŒ์œผ๋กœ ๊ณ„์‚ฐ, ํ™œ์„ฑํ™” ์Šค์ผ€์ผ์€ ์‹คํ–‰ ์‹œ ๊ณ„์‚ฐ)

์–‘์žํ™” ์ƒ์„ธ

  • ๊ฐ€์ค‘์น˜: FP8(E4M3), ์ถœ๋ ฅ ์ฑ„๋„๋ณ„ ์Šค์ผ€์ผ
  • ํ™œ์„ฑํ™”: ์‹คํ–‰ ์‹œ ํ† ํฐ๋ณ„ ๋™์  FP8
  • ์–‘์žํ™” ์ ˆ์ฐจ: PTQ(ํ•™์Šต ํ›„ ์–‘์žํ™”, ์žฌํ•™์Šต ์—†์Œ), ๊ฐ€์ค‘์น˜ ์Šค์ผ€์ผ์€ ๋ฏธ๋ฆฌ ๊ณ„์‚ฐํ•˜๊ณ  ํ™œ์„ฑํ™” ์Šค์ผ€์ผ์€ ์‹คํ–‰ ์‹œ ํ† ํฐ๋งˆ๋‹ค ๊ณ„์‚ฐ
  • BF16 ์œ ์ง€: ํ† ํฐ ์ž„๋ฒ ๋”ฉ, LM ํ—ค๋“œ, ๋ชจ๋“  RMSNorm
  • ์–‘์žํ™” ๋Œ€์ƒ: ์–ดํ…์…˜ยทMLP ์„ ํ˜•์ธต(projection)
  • ์›๋ณธ ํŒŒ์ผ: ํ† ํฌ๋‚˜์ด์ €ยทchat template์€ ์›๋ณธ๊ณผ ๋™์ผ

ํ’ˆ์งˆ (์‹ค์ธก)

  • ์›๋ณธ๊ณผ ๋น„๊ต (CPU, 2026-11-01): ์ฑ„ํŒ… ํ”„๋กฌํ”„ํŠธ ๋‹ต์ด BF16 ์›๋ณธ๊ณผ ํ† ํฐ ๋‹จ์œ„๋กœ ๋™์ผ (๋Œ€ํ•œ๋ฏผ๊ตญ์˜ ์ˆ˜๋„๋Š” ์„œ์šธ์ž…๋‹ˆ๋‹ค. โ€ฆ), "The capital of France is" ๋‹ค์Œ ํ† ํฐ Paris ํ™•๋ฅ  0.59 (์›๋ณธ 0.62) โ€” transformers 4.57.6 + compressed-tensors 0.20.1

์š”๊ตฌ์‚ฌํ•ญ

  • ์‹คํ–‰ ํ™˜๊ฒฝ: Transformers ์ „์šฉ โ€” ๊ณต์‹ vLLM 0.32๋Š” Motif ๊ตฌ์กฐ ๋ฏธ์ง€์›
  • Transformers: transformers 4.56 ์ด์ƒ 5 ๋ฏธ๋งŒ + compressed-tensors 0.19 ์ด์ƒ + trust_remote_code=True (CPU์—์„œ ํ™•์ธ: 4.57.6 + 0.20.1, 4.56.2 + 0.20.1, 4.57.6 + 0.19.0), transformers 5.x๋Š” ๋™์ž‘ํ•˜์ง€ ์•Š์Œ
  • ๋ฉ”๋ชจ๋ฆฌ: ๊ฐ€์ค‘์น˜ 3.9 GB โ€” ์ฒซ ์‹คํ–‰ ๋•Œ BF16(์•ฝ 5.2 GB)์œผ๋กœ ํ’€๋ ค ๋ฉ”๋ชจ๋ฆฌยท์†๋„๋Š” ์›๋ณธ๊ณผ ๊ฐ™์œผ๋ฏ€๋กœ ์ฃผ๋œ ํšจ๊ณผ๋Š” ๋‹ค์šด๋กœ๋“œยท์ €์žฅ ์šฉ๋Ÿ‰ ์ ˆ๊ฐ

์‚ฌ์šฉ๋ฒ•

  • ์„ค์น˜: pip install "transformers>=4.56,<5" "compressed-tensors>=0.19" accelerate torch
  • ๋กœ๋“œ: AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16) โ†’ chat template ์ ์šฉ ํ›„ generate (์ „์ฒด ์˜ˆ์‹œ๋Š” ์œ„ ์˜์–ด ๋ณธ๋ฌธ 'Usage' ์ ˆ ์ฐธ๊ณ )

๋ผ์ด์„ ์Šค

  • ๋ผ์ด์„ ์Šค: Apache-2.0 โ€” ์›๋ณธ ๋ชจ๋ธ์˜ ๋ผ์ด์„ ์Šค๋ฅผ ๊ทธ๋Œ€๋กœ ๋”ฐ๋ฆ„
  • ๊ถŒ๋ฆฌ: ์›๋ณธ ๋ชจ๋ธ์˜ ๊ถŒ๋ฆฌ๋Š” Motif Technologies์—๊ฒŒ ์žˆ์Œ, ์ด ๋ฆฌํฌ๋Š” ์–‘์žํ™” ํŒŒ์ƒ๋ฌผ
Downloads last month
151
Safetensors
Model size
3B params
Tensor type
F32
ยท
F8_E4M3
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for axteam/Motif-2.6B-FP8-dynamic

Quantized
(2)
this model