metadata
license: apache-2.0
tags:
- pruned
- linux
- optimized
- wanda
- activation-pruning
base_model: LiquidAI/LFM2.5-1.2B-Thinking
pipeline_tag: text-generation
LFM2.5-1.2B-Thinking-linux-light
π― LINUX-optimized | π¦ Light pruning | β‘ 5% weights pruned
This model is a lightly pruned version of LiquidAI/LFM2.5-1.2B-Thinking, specialized for LINUX tasks using activation-aware weight pruning (Wanda-style).
β¨ Key Features
- Specialization: Optimized for Linux tasks
- Pruning Method: Wanda-style (|W| Γ |activation|) importance scoring
- Size Reduction: 5% weights pruned
- Use Case: Good balance of accuracy and size for production use
π Performance Comparison
| Category | Original | Pruned | Change |
|---|---|---|---|
| Python | 0.0% | 0.0% | β |
| Html | 0.0% | 0.0% | β |
| Trivia | 93.3% | 86.7% | β 6.7% |
| Math | 100.0% | 100.0% | β |
| Reasoning | N/A | N/A | |
| Medical | 86.7% | 100.0% | β 13.3% |
| Linux | 86.7% | 80.0% β | β 6.7% |
| Writing | 60.0% | 66.7% | β 6.7% |
Average: 61.0% β 61.9% (+1.0%)
Linux Retention: 92.3% of original performance
π Quick Start
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("CompactAI/LFM2.5-1.2B-Thinking-linux-light")
tokenizer = AutoTokenizer.from_pretrained("CompactAI/LFM2.5-1.2B-Thinking-linux-light")
# Example usage
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
π Technical Details
| Property | Value |
|---|---|
| Base Model | LiquidAI/LFM2.5-1.2B-Thinking |
| Specialization | Linux |
| Prune Mode | Light |
| Pruning Method | Activation-based weight pruning (Wanda) |
| Weight Reduction | 5% weights pruned |
π Related Models
This model is part of the LFM2.5-1.2B-Thinking pruned model collection. Other variants:
- Extra-light (minimal pruning)
- Light
- Medium-light
- Medium
- Medium-heavy
- Heavy
- Extra-heavy (maximum compression)
π License
This model inherits the license from the base model LiquidAI/LFM2.5-1.2B-Thinking.
Generated by ZANNPS [Zeto Automatic Neural Network Pruning System]
