Downloads · 30 days
193
11% of all-time downloads
11-47/Gemini3.5-Code.Reasoner-2b-Distilled
Gemini3.5-Code.Reasoner-2b-Distilled is a text generation model from 11-47. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Gemini3.5-Code.Reasoner-2b-Distilled is a highly efficient, reasoning-dense model tailored for advanced coding tasks, algorithmic problem-solving, and logical chain-of-thought workflows.
Downloads · 30 days
193
11% of all-time downloads
All-time downloads
1.8K
Public
Parameters
2.5B
5.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors5 GB · 99%
From the Hugging Face model README
Gemini3.5-Code.Reasoner-2b-Distilled is a highly efficient, reasoning-dense model tailored for advanced coding tasks, algorithmic problem-solving, and logical chain-of-thought workflows.
By applying a specialized Low-Rank Adaptation (LoRA) layer over CodeGemma 1.1 2B, this model infuses frontier-level reasoning mechanics into a compact, 2-billion parameter architecture. It bridges the gap between massive cloud-hosted models and local, edge-compute hardware.
The "Reasoner" capabilities of this model are distilled from a multi-source synthetic pipeline focusing on complex coding logic, algorithmic optimization, and step-by-step thinking patterns. The training mixture leverages approximately 100K+ high-quality reasoning examples across five core datasets:
| Dataset Name | Source / Focus | Approx. Size |
|---|---|---|
WithinUsAI/GeminiPro3.2_max_distill_god_seed_25k | High-quality frontier seed prompts for code generation. | ~25k samples |
WithinUsAI/gemini_3.5_flash_distilled_25k | Fast, iterative logical steps and multi-turn debugging data. | ~25k samples |
WithinUsAI/Gemini_3.2_Pro_Distilled | Heavy math logic, structural coding, and system design patterns. | Premium corpus |
WithinUsAI/codegemma_gemini_pro_32_distilled_25k | Target-aligned distillation data optimized for the CodeGemma vocabulary. | ~25k samples |
WithinUsAI/DEEPMIND_Alpha_Distilled | Deep algorithmic competitive programming and math reasoning. | Premium corpus |
vLLM, Ollama, or SGLang.Because CodeGemma utilizes specialized tokens for coding workflows, it's recommended to structure your prompts cleanly to prompt the model's inner chain-of-thought.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Prompt the model to think step-by-step before delivering code
prompt = """<bos>Analyze the problem and think step-by-step before writing any code.
Problem: Write a Python generator function that yields the Fibonacci sequence up to n elements.
Answer:"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.2)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))