CoolFace
Modelpublic

squ11z1/gpt-oss-nano

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
26likes4.8kdownloads
Model Card

<div align="center">

GPT-OSS-Nano

nan1

Compact Reasoning Model with Mixture of Experts

![Unsloth](https://github.com/unslothai/unsloth) ![GGUF](#gguf-files) ![License](https://www.apache.org/licenses/LICENSE-2.0) ![Socket Badge](https://badge.socket.dev/huggingface/package/squ11z1/gpt-oss-nano?version=69620c60bd3e828ceb666af71239a6d84386a6fa)

<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="180"/>

9B parameters โ€ข 12 experts โ€ข 128K context โ€ข Chain-of-thought reasoning

๐Ÿค— Model | ๐Ÿ“– Docs | ๐Ÿ”ฎ Q-GPT

</div>


๐Ÿ“‹ Model Description

GPT-OSS-Nano is a fine-tuned Mixture of Experts (MoE) language model optimized for step-by-step reasoning and problem solving. Built on the GPT-OSS architecture with sparse expert activation, it achieves strong reasoning performance while using only ~3B active parameters per forward pass.

โœจ Key Features

FeatureDescription
๐Ÿง  Sparse MoE12 experts, 4 active per token โ€” efficient compute
๐Ÿ“ Chain-of-ThoughtFine-tuned on reasoning datasets with step-by-step solutions
โšก 128K ContextLong context with YaRN rope scaling
๐Ÿ”ฎ Q-GPT ReadyCompatible with quantum confidence estimation
๐Ÿ“ฆ GGUF AvailableRun locally with llama.cpp or Ollama

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    GPT-OSS-Nano                         โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Total Parameters     โ”‚  9.0 Billion                    โ”‚
โ”‚  Active Parameters    โ”‚  ~3 Billion (per forward pass)  โ”‚
โ”‚  Hidden Dimension     โ”‚  2880                           โ”‚
โ”‚  Attention Heads      โ”‚  64 (8 KV heads, GQA)           โ”‚
โ”‚  Layers               โ”‚  24                             โ”‚
โ”‚  Experts              โ”‚  12 total, 4 active             โ”‚
โ”‚  Context Length       โ”‚  131,072 tokens                 โ”‚
โ”‚  Vocabulary Size      โ”‚  201,088                        โ”‚
โ”‚  Precision            โ”‚  BFloat16                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ’ป Usage

Quick Start with Transformers

python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "squ11z1/gpt-oss-nano",
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
    "squ11z1/gpt-oss-nano",
    trust_remote_code=True,
)

prompt = """Solve this step by step:
A store offers 20% off on all items. If a jacket costs $85, 
what is the final price after discount?"""

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
    **inputs,
    max_new_tokens=256,
    temperature=0.7,
    do_sample=True,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

โšก With Unsloth (2x Faster)

python
from unsloth import FastLanguageModel

model, tokenizer = FastLanguageModel.from_pretrained(
    "squ11z1/gpt-oss-nano",
    dtype=None,
    load_in_4bit=True,  # 4-bit quantization for efficiency
)

# For inference
FastLanguageModel.for_inference(model)

๐Ÿ“ฆ With GGUF (llama.cpp)

bash
# Download the quantized model
wget https://huggingface.co/squ11z1/gpt-oss-nano/resolve/main/gpt-oss-9b-q4_k_m.gguf

# Run inference
./llama-cli -m gpt-oss-9b-q4_k_m.gguf \
    -p "Solve step by step: What is 15% of 240?" \
    -n 256 --temp 0.7

๐Ÿฆ™ With Ollama

bash
# Create Modelfile
echo 'FROM ./gpt-oss-9b-q4_k_m.gguf' > Modelfile
ollama create gpt-oss-nano -f Modelfile

# Run
ollama run gpt-oss-nano "Explain quantum computing simply"

๐ŸŽ“ Training

<details> <summary><b>Training Details</b></summary>

ParameterValue
Base Modelopenai/gpt-oss-20b
MethodQLoRA (4-bit quantized LoRA)
LoRA Rank32
LoRA Alpha32
Learning Rate2e-4
Batch Size2 (gradient accumulation: 8)
Epochs2
FrameworkUnsloth + TRL
HardwareNVIDIA H200

Dataset: Superior-Reasoning โ€” chain-of-thought examples with step-by-step problem solving.

</details>


๐Ÿ”ฎ Q-GPT: Quantum Confidence

GPT-OSS-Nano is compatible with Q-GPT โ€” a quantum neural network that estimates response confidence.

python
from q_gpt import load_qgpt

model, tokenizer = load_qgpt("squ11z1/gpt-oss-nano")
outputs = model.generate_with_confidence(inputs, max_new_tokens=256)

print(f"Response confidence: {outputs['confidence_label']}")
# Output: "high", "moderate", "low", etc.

if outputs['should_refuse']:
    print("โš ๏ธ Model is uncertain โ€” consider refusing to answer")

Learn more: squ11z1/Q-GPT


โš ๏ธ Limitations

  • โ€”Language: Primarily optimized for English; multilingual performance varies
  • โ€”Hallucinations: May generate plausible but incorrect information on obscure topics
  • โ€”Safety: Not designed for safety-critical applications without validation
  • โ€”Math: Strong at arithmetic reasoning; weaker on advanced mathematics

๐Ÿ“œ License

This model is released under the Apache 2.0 License.


๐Ÿ™ Acknowledgments

  • โ€”[Unsloth](https://github.com/unslothai/unsloth) โ€” 2x faster fine-tuning
  • โ€”[OpenAI](https://huggingface.co/openai) โ€” GPT-OSS base model
  • โ€”[llama.cpp](https://github.com/ggerganov/llama.cpp) โ€” GGUF format and quantization

๐Ÿ“– Citation

bibtex
@misc{gptossnano2026,
  title={GPT-OSS-Nano: Compact MoE Reasoning Model},
  author={squ11z1},
  year={2026},
  publisher={Hugging Face},
  url={https://huggingface.co/squ11z1/gpt-oss-nano}
}

<div align="center">

Pro Mundi Vita

</div>