Views
No views yet
| Metric | Value | Description |
|---|---|---|
| PPL Retention | 119.00% | Linguistic quality preserved (Teacher PPL / Student PPL × 100) |
| Capabilities Retention | 89.95% | Reasoning power retained across benchmarks (Avg Student / Avg Teacher × 100) |
| Overall Retention | 94.20% | Combined health score (average of PPL + Capabilities retention) |
| Benchmark | Teacher | Pruned (No KD) | Student (After KD) | Recovery |
|---|---|---|---|---|
| Arc Easy | 57.3% | 42.2% | 49.3% | 46.8% |
| Winogrande | 53.1% | 51.5% | 53.0% | 95.2% |
| Hellaswag | 41.3% | 34.0% | 36.3% | 30.9% |
| Lambada Openai | 43.0% | 17.7% | 33.7% | 63.3% |
| Piqa | 68.1% | 61.2% | 64.1% | 42.0% |
| Average | 52.5% | 41.3% | 47.3% | 53.0% |
google/gemma-3-270m (18 transformer blocks, 268,098,176 parameters)α·CrossEntropy + β·Skew-KLD
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Load model and tokenizer
4model_id = "oopere/gemma-3-270m-14L-distilled"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id)
7
8# Generate text
9prompt = "Paris is the capital of"
10inputs = tokenizer(prompt, return_tensors="pt")
11outputs = model.generate(
12 **inputs,
13 max_new_tokens=50,
14 do_sample=False,
15 num_beams=3
16)
17print(tokenizer.decode(outputs[0], skip_special_tokens=True))1@book{martra2026rearchitecting,
2 author = {Pere Martra},
3 title = {Rearchitecting LLMs: Structural techniques for efficient models},
4 publisher = {Manning Publications},
5 year = {2026},
6 url = {https://hubs.la/Q040tvtp0}
7}1@software{optipfair2024,
2 author = {Pere Martra},
3 title = {OptiPFair: Structural Pruning and Bias Analysis for LLMs},
4 year = {2024},
5 url = {https://github.com/peremartra/optipfair}
6}