kai-os / gemma4-31b-Opus-4.6-reasoning

huggingface.co
Total runs: 48
24-hour runs: 0
7-day runs: 22
30-day runs: 23
Model's Last Updated: April 03 2026
text-generation

Introduction of gemma4-31b-Opus-4.6-reasoning

Model Details of gemma4-31b-Opus-4.6-reasoning

Gemma 4 31B Opus Reasoning Adapter v1

This is a private QLoRA adapter for google/gemma-4-31B-it , fine-tuned on a cleaned subset of Crownelius/Opus-4.6-Reasoning-2100x-formatted .

The goal of this run was simple: produce a Gemma 4 31B reasoning adapter trained only on Opus-style reasoning data, without mixing in unrelated instruction corpora or agent traces.

Base Model
  • Base model: google/gemma-4-31B-it
  • Adapter type: LoRA / QLoRA ( peft )
  • Quantization: 4-bit NF4
  • Precision: BF16 compute
Dataset

Source dataset:

Local filtering applied before training:

  • Removed duplicate user prompts
  • Removed obviously bad prompt families and formatting noise
  • Kept reasoning-style rows only

Final local dataset stats:

  • Rows in source: 2160
  • Rows kept: 2025
  • Train rows: 1924
  • Validation rows: 101
  • Category mix: 1899 math, 126 code
Training Setup
  • Max sequence length: 4096
  • Epochs: 2
  • Learning rate: 1e-4
  • Per-device batch size: 1
  • Gradient accumulation: 8
  • Hardware: NVIDIA GH200

LoRA target modules were adapted for Gemma 4 wrapped linear layers:

  • q_proj.linear
  • k_proj.linear
  • v_proj.linear
  • o_proj.linear
  • gate_proj.linear
  • up_proj.linear
  • down_proj.linear
Validation Metrics

Final metrics from the completed run:

  • Eval loss: 3.6018
  • Eval perplexity: 36.66
  • Train runtime: 3723s
  • Epochs completed: 2.0
Published Base-Model Reference Benchmarks

The table below is included for context and comes from Google's official Gemma 4 31B Instruct model card . These are published base-model reference scores for google/gemma-4-31B-it , not adapter-specific evaluation results for this repository.

Benchmark Gemma 4 31B Gemma 3 27B (no think)
MMLU-Pro 85.2% 67.6%
AIME 2026 no tools 89.2% 20.8%
LiveCodeBench v6 80.0% 29.1%
Codeforces Elo 2150 110
GPQA Diamond 84.3% 42.4%
Tau2 (average over 3) 76.9% 16.2%
HLE no tools 19.5% -
HLE with search 26.5% -
BigBench Extra Hard 74.4% 19.3%
MMMLU 88.4% 70.7%
MMMU Pro 76.9% 49.7%
OmniDocBench 1.5 (lower is better) 0.131 0.365
MATH-Vision 85.6% 46.0%
MRCR v2 8 needle 128k (average) 66.4% 13.5%

Source:

Usage

This repository contains a PEFT adapter, not a fully merged standalone model.

Load it with:

  • Base model: google/gemma-4-31B-it
  • Adapter: this repository
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import PeftModel
import torch

base_id = "google/gemma-4-31B-it"
adapter_id = "kai-os/gemma4-opus-reasoning-adapter-v1"

bnb = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
)

tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(
    base_id,
    device_map="auto",
    quantization_config=bnb,
    torch_dtype=torch.bfloat16,
)
model = PeftModel.from_pretrained(base, adapter_id)
Notes
  • This is a reasoning-focused adapter, not a benchmark-optimized release.
  • The benchmark table above is for the published base model, not this adapter.
  • It is best treated as an experimental distilled reasoning adapter.
Acknowledgements
  • Google for Gemma 4
  • The Opus reasoning dataset authors and maintainers
  • Hugging Face transformers , peft , and datasets

Runs of kai-os gemma4-31b-Opus-4.6-reasoning on huggingface.co

48
Total runs
0
24-hour runs
3
3-day runs
22
7-day runs
23
30-day runs

More Information About gemma4-31b-Opus-4.6-reasoning huggingface.co Model

More gemma4-31b-Opus-4.6-reasoning license Visit here:

https://choosealicense.com/licenses/apache-2.0

gemma4-31b-Opus-4.6-reasoning huggingface.co

gemma4-31b-Opus-4.6-reasoning huggingface.co is an AI model on huggingface.co that provides gemma4-31b-Opus-4.6-reasoning's model effect (), which can be used instantly with this kai-os gemma4-31b-Opus-4.6-reasoning model. huggingface.co supports a free trial of the gemma4-31b-Opus-4.6-reasoning model, and also provides paid use of the gemma4-31b-Opus-4.6-reasoning. Support call gemma4-31b-Opus-4.6-reasoning model through api, including Node.js, Python, http.

gemma4-31b-Opus-4.6-reasoning huggingface.co Url

https://huggingface.co/kai-os/gemma4-31b-Opus-4.6-reasoning

kai-os gemma4-31b-Opus-4.6-reasoning online free

gemma4-31b-Opus-4.6-reasoning huggingface.co is an online trial and call api platform, which integrates gemma4-31b-Opus-4.6-reasoning's modeling effects, including api services, and provides a free online trial of gemma4-31b-Opus-4.6-reasoning, you can try gemma4-31b-Opus-4.6-reasoning online for free by clicking the link below.

kai-os gemma4-31b-Opus-4.6-reasoning online free url in huggingface.co:

https://huggingface.co/kai-os/gemma4-31b-Opus-4.6-reasoning

gemma4-31b-Opus-4.6-reasoning install

gemma4-31b-Opus-4.6-reasoning is an open source model from GitHub that offers a free installation service, and any user can find gemma4-31b-Opus-4.6-reasoning on GitHub to install. At the same time, huggingface.co provides the effect of gemma4-31b-Opus-4.6-reasoning install, users can directly use gemma4-31b-Opus-4.6-reasoning installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

gemma4-31b-Opus-4.6-reasoning install url in huggingface.co:

https://huggingface.co/kai-os/gemma4-31b-Opus-4.6-reasoning

Url of gemma4-31b-Opus-4.6-reasoning

gemma4-31b-Opus-4.6-reasoning huggingface.co Url

Provider of gemma4-31b-Opus-4.6-reasoning huggingface.co

kai-os
ORGANIZATIONS

Other API from kai-os

huggingface.co

Total runs: 645
Run Growth: 1
Growth Rate: 0.16%
Updated:April 04 2026
huggingface.co

Total runs: 158
Run Growth: 23
Growth Rate: 15.03%
Updated:July 03 2026
huggingface.co

Total runs: 121
Run Growth: -612
Growth Rate: -505.79%
Updated:April 26 2026
huggingface.co

Total runs: 97
Run Growth: -75
Growth Rate: -78.13%
Updated:July 02 2026
huggingface.co

Total runs: 74
Run Growth: -5
Growth Rate: -6.85%
Updated:August 24 2026
huggingface.co

Total runs: 40
Run Growth: -2.0K
Growth Rate: -4977.50%
Updated:April 08 2026