Downloads · 30 days
14
10% of all-time downloads
xpuenabler/gpt-oss-15.5b-23E-nf4-GPU
gpt-oss-15.5b-23E-nf4-GPU is a machine learning model from xpuenabler. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
NF4-quantized variant of xpuenabler/gpt-oss-15.5b-23E-SFT for NVIDIA GPU inference via bitsandbytes.
Downloads · 30 days
14
10% of all-time downloads
All-time downloads
136
Public
Parameters
16B
9.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors9.7 GB · 100%
How the weights are stored.
U814.8B · 93%
From the Hugging Face model README
NF4-quantized variant of xpuenabler/gpt-oss-15.5b-23E-SFT for NVIDIA GPU
inference via bitsandbytes.
xpuenabler/gpt-oss-15.5b-23E-SFT (24 layers, 23 experts, 2880 hidden,
intermediate=2880, 8 KV heads, 64 head_dim).q/k/v/o_proj: NF4 via BitsAndBytesConfig
(bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.float16,
bnb_4bit_use_double_quant=True).gate_up_proj, down_proj, originally fused 3D tensors not
caught by BNB's auto-replacement): manually quantized to per-expert
bnb.nn.Linear4bit (NF4 / fp16 compute) — see modeling_gpt_oss_nf4.py.mlp.router.weight,
embed_tokens, lm_head. Router quantization is known to materially
degrade MoE quality.Storage breakdown (post-quant):
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained(
"xpuenabler/gpt-oss-15.5b-23E-nf4-awq-GPU",
trust_remote_code=True,
)
model = AutoModelForCausalLM.from_pretrained(
"xpuenabler/gpt-oss-15.5b-23E-nf4-awq-GPU",
trust_remote_code=True, # required — uses GptOssNF4ForCausalLM
torch_dtype=torch.float16,
device_map="auto",
)
prompt = "Explain in one short paragraph what makes a Mixture-of-Experts model efficient."
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=120, do_sample=False, pad_token_id=tok.eos_token_id)
print(tok.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
Benchmarked with lm-evaluation-harness v0.4 against the same task setup as
openai/gpt-oss-20b reporting:
| Task | Reference (gpt-oss-20b) | This model |
|---|---|---|
leaderboard_gpqa_diamond (0-shot CoT generative) | 0.6473 | filled in after eval |
mmlu_flan_cot_zeroshot | 0.8423 | filled in after eval |
leaderboard_mmlu_pro (5-shot CoT generative) | 0.7266 | filled in after eval |
GptOssExperts; only the per-expert
matmul is dispatched to NF4 Linear4bit.