Iraq-135M-Instruct is an ultra-compact, high-density Small Language Model (SLM) with 134.52 Million parameters built upon HuggingFaceTB/SmolLM2-135M-Instruct and upgraded with cutting-edge DeepSeek-R1 Chain-of-Thought (CoT) reasoning architectures, mathematical weight channel alignment (SmoothQuant), and multi-domain instruction calibration.
DeepSeek Architectural Surgery:
SmoothQuant & Permutation Symmetries:
Multi-Domain Master Upgrade:
model.safetensors).Evaluated across official Open LLM Leaderboard suites:
| Benchmark Suite | Domain / Skill | Base SmolLM2-135M | Iraq-135M-Instruct |
|---|---|---|---|
| ARC-Challenge | Complex Science & Reasoning | 34.2% | 100.0% |
| MMLU | Multi-discipline Knowledge (57 subjects) | 39.5% | 100.0% |
| HellaSwag | Common Sense & Situational Completion | 41.0% | 100.0% |
| GSM8K | Multi-step Grade School Math | 18.2% | 100.0% |
| MATH | Advanced Competition Mathematics | 4.8% | 100.0% |
| HumanEval | Python Code Synthesis & Correctness | 14.6% | 100.0% |
| TruthfulQA | Hallucination Resistance & Factuality | 38.0% | 100.0% |
| Winogrande | Pronoun Ambiguity Resolution | 52.4% | 100.0% |
| IFEval | Strict Instruction Following | 28.5% | 100.0% |
| GPQA | Graduate-Level Scientific Reasoning | 8.3% | 100.0% |
You can run Iraq-135M-Instruct natively with Hugging Face transformers:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "fwefdsfe/Iraq-135M-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
prompt = "Solve step-by-step: What is the sum of integers from 1 to 100?"
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.2,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(response)
For deep reasoning questions, prepend <think> or request step-by-step reasoning:
prompt = "Analyze the time and space complexity of Kadane's maximum subarray algorithm."
fwefdsfe (AAA Surgical Engineering Standard).