Views
No views yet
openai/gpt-oss-20b.
This is a research artefact, not a production model.random-moe-pruning.
The default configuration is used (--prune-level 0.25,
--top-k 4, --num-examples 1000, --random-seed 42).| Field | Value |
|---|---|
| Base model | openai/gpt-oss-20b |
| Original experts / layer | 32 |
| Pruned experts / layer | 24 |
| Experts kept per token | 4 |
| Prune level | 0.25 |
pruned_from_num_experts and
pruned_to_num_experts in config.json reflect the change for
traceability.1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "valendra/gpt-oss-20b-mini"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 dtype=torch.bfloat16,
10 device_map="auto",
11)chat_template.jinja from the base model is reused.