CompactAI's picture
Upload folder using huggingface_hub
127bc28 verified
---
license: apache-2.0
tags:
- pruned
- html
- optimized
- wanda
- activation-pruning
base_model: LiquidAI/LFM2.5-1.2B-Thinking
pipeline_tag: text-generation
---
# LFM2.5-1.2B-Thinking-html-medium
> 🎯 **HTML-optimized** | πŸ“¦ **Medium** pruning | ⚑ **20% weights pruned**
This model is a **moderately pruned** version of [LiquidAI/LFM2.5-1.2B-Thinking](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking), specialized for **HTML** tasks using activation-aware weight pruning (Wanda-style).
## ✨ Key Features
- **Specialization**: Optimized for Html tasks
- **Pruning Method**: Wanda-style (|W| Γ— |activation|) importance scoring
- **Size Reduction**: 20% weights pruned
- **Use Case**: Balanced trade-off between size and accuracy
## πŸ“Š Performance Comparison
| Category | Original | Pruned | Change |
|----------|----------|--------|--------|
| Python | 0.0% | 0.0% | β†’ |
| **Html** | 0.0% | 0.0% ⭐ | β†’ |
| Trivia | 93.3% | 93.3% | β†’ |
| Math | 100.0% | 100.0% | β†’ |
| Reasoning | N/A | N/A | |
| Medical | 86.7% | 80.0% | ↓ 6.7% |
| Linux | 86.7% | 93.3% | ↑ 6.7% |
| Writing | 60.0% | 66.7% | ↑ 6.7% |
**Average**: 61.0% β†’ 61.9% (+1.0%)
![Comparison Graph](comparison_graph.png)
## πŸš€ Quick Start
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("CompactAI/LFM2.5-1.2B-Thinking-html-medium")
tokenizer = AutoTokenizer.from_pretrained("CompactAI/LFM2.5-1.2B-Thinking-html-medium")
# 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](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking) |
| Specialization | Html |
| Prune Mode | Medium |
| Pruning Method | Activation-based weight pruning (Wanda) |
| Weight Reduction | 20% 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](https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking).
---
*Generated by ZANNPS [Zeto Automatic Neural Network Pruning System]*