CoolFace
Modelpublic

jhyuckkim/GPT-OSS-20B-Dense-4B-CP-K4

sourceHugging Faceapache-2.0updated 27d agoView on Hugging Face
0likes531downloads
Model Card

GPT-OSS-20B-Dense-4B-CP-K4

Research artifact, not a general-purpose model. These weights are released so that the experiments in the paper Pruning and Distilling Mixture-of-Experts into Dense Language Models can be reproduced. Each student is distilled on a fixed, small token budget (~4B tokens for Qwen3, 0.3B tokens for DeepSeek-V2-Lite and GPT-OSS) purely so that expert scoring and grouping methods can be compared under an equal budget. Absolute quality is therefore far below the teacher and below pretrained models of the same size, and no instruction tuning or alignment was applied. Please do not use this as an off-the-shelf assistant.

What this is

A dense student obtained by pruning and distilling a Mixture-of-Experts teacher, from the paper *Pruning and Distilling Mixture-of-Experts into Dense Language Models*. Code: https://github.com/krafton-ai/moe-to-dense

Results

Full comparison group for this architecture, GPT-OSS-20B to dense, 0.3B-token distillation (paper Table 18). This model's row is in bold, and rows whose weights are also released link to them.

ConfigurationWinoHellaARC-EARC-CMMLUAvg
SF, K=451.629.434.022.423.332.15
SF, K=851.629.333.321.722.831.72
CP, K=450.930.436.423.023.632.86
CP, K=849.729.332.223.223.131.49
ACP, K=453.031.935.623.023.333.36
ACP, K=853.130.533.623.323.732.82
DO-ACP, K=453.032.136.723.223.733.71
DO-ACP, K=851.329.933.522.523.332.11
Random FFN + teacher attn50.227.528.523.023.230.46
Random initialization50.026.025.825.323.030.02
Teacher (GPT-OSS-20B)59.339.980.953.749.656.67

Downstream accuracy is Winogrande 5-shot, HellaSwag 10-shot, ARC-Easy 25-shot, ARC-Challenge 25-shot and MMLU 5-shot. Avg is the unweighted mean of the five benchmarks. The teacher is a post-trained reasoning model evaluated in completion mode for consistency with the students, which understates its native-format capability (MMLU 49% in completion mode versus 72% with the chat template).

Configuration

FieldValue
Teacheropenai/gpt-oss-20b
Student parameters4.19B
Distillation dataFineWeb-Edu (sample-10BT), 0.3B tokens
Expert scoringCP
Experts kept (K)4
Groupingpure pruning (K equals the teacher's top-k, one expert per group)
Down-projection scalinguniform

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("jhyuckkim/GPT-OSS-20B-Dense-4B-CP-K4", dtype="bfloat16")
tok = AutoTokenizer.from_pretrained("jhyuckkim/GPT-OSS-20B-Dense-4B-CP-K4")

The student is a GptOssForCausalLM with num_local_experts=1, so GPT-OSS's gated activation, per-layer biases, sliding-window attention and YaRN RoPE are preserved. Load it with that architecture class rather than a generic dense one.

Citation

bibtex
@article{kim2026pruning,
  title={Pruning and Distilling Mixture-of-Experts into Dense Language Models},
  author={Kim, Junhyuck and Yun, Jihun and Kim, Haechan and Kim, Gyeongman and Bae, Joonghyun and Cho, Jaewoong},
  journal={arXiv preprint arXiv:2605.28207},
  year={2026}
}