Downloads · 30 days
27
8% of all-time downloads
oopere/Qwen3.5-0.65B-Base-Rearchitected
Qwen3.5-0.65B-Base-Rearchitected is a machine learning model from oopere. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model is a surgically optimized and distilled version of Qwen3.5-0.5B-Base-Rearchitected, created with the techniques covered in Chapter 6 in the book "Rearchitecting LLMs".
Downloads · 30 days
27
8% of all-time downloads
All-time downloads
325
Public
Parameters
666M
2.7 GB on disk
Likes
7
Public
Click a slice to open those files.
.safetensors1.3 GB · 99%
From the Hugging Face model README
This model is a surgically optimized and distilled version of Qwen3.5-0.5B-Base-Rearchitected, created with the techniques covered in Chapter 6 in the book "Rearchitecting LLMs".
The goal of this optimization was to maximize parameter efficiency while maintaining the highest possible retention of the Teacher's capabilities.
| Metric | Value | Description |
|---|---|---|
| PPL Retention | 108.45% | Linguistic quality preserved (Teacher PPL / Student PPL × 100) |
| Capabilities Retention | 89.85% | Reasoning power retained across benchmarks (Avg Student / Avg Teacher × 100) |
| Overall Retention | 92.53% | Combined health score (average of PPL + Capabilities retention) |
Recovery = How much of the pruning degradation was recovered through distillation.
| Benchmark | Teacher | Pruned (No KD) | Student (After KD) |
|---|---|---|---|
| Arc Easy | 67.5% | 56.3% | 61.1% |
| Winogrande | 59.4% | 55.5% | 56.2% |
| Hellaswag | 54.9% | 44.0% | 46.9% |
| Lambada Openai | 50.9% | 8.4% | 41.7% |
| Piqa | 71.5% | 63.6% | 67.5% |
| Average | 60.8% | 45.5% | 54.7% |
Note on Perplexity: The Student achieves a lower (better) PPL than the Teacher. This highlights the Domain Adaptation effect of the distillation process. The Student successfully specialized in the tone and structure of the Cosmopedia training corpus, refining its style while recovering structural knowledge.

Qwen3.5-0.5B-Base-Rearchitected (752,393,024 parameters)α·CrossEntropy + β·Skew-KLD
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model and tokenizer
model_id = "oopere/Qwen3.5-0.65B-Base-Rearchitected"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
# Generate text
prompt = "Paris is the capital of"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=50,
do_sample=False,
num_beams=3
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This is an educational model created as part of the Hands-on Lab in Chapter 6 of "Rearchitecting LLMs". It demonstrates:
Not intended for production use. This model serves as a learning artifact and baseline for readers to improve upon.
If you use this model or the techniques described in your research or projects, please cite:
@book{martra2026rearchitecting,
author = {Pere Martra},
title = {Rearchitecting LLMs: Structural techniques for efficient models},
publisher = {Manning Publications},
year = {2026},
url = {https://hubs.la/Q040tvtp0}
}
@software{optipfair2024,
author = {Pere Martra},
title = {OptiPFair: Structural Pruning and Bias Analysis for LLMs},
year = {2024},
url = {https://github.com/peremartra/optipfair}
}
This model was created following the methodologies taught in "Rearchitecting LLMs" (Manning Publications, 2026). Special thanks to the Manning editorial team and the open-source community behind Hugging Face Transformers and PyTorch.
Challenge for readers: Can you improve the retention metrics beyond 92.5%? Try adjusting:
Share your results in the book's discussion forum!