CompactAI's picture
Upload folder using huggingface_hub
c18db9e verified
metadata
license: apache-2.0
tags:
  - pruned
  - html
  - optimized
  - wanda
  - activation-pruning
base_model: HuggingFaceTB/SmolLM3-3B
pipeline_tag: text-generation

SmolLM3-3B-html-medium-heavy

🎯 HTML-optimized | 📦 Medium Heavy pruning | ⚡ 25% weights pruned

This model is a moderate-heavyly pruned version of HuggingFaceTB/SmolLM3-3B, 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: 25% weights pruned
  • Use Case: Significant compression, some accuracy trade-off

📊 Performance Comparison

Category Original Pruned Change
Python 80.0% 20.0% ↓ 60.0%
Html 0.0% 0.0% ⭐
Trivia 100.0% 86.7% ↓ 13.3%
Math 100.0% 100.0%
Reasoning N/A N/A
Medical 100.0% 100.0%
Linux 100.0% 60.0% ↓ 40.0%
Writing 93.3% 66.7% ↓ 26.7%

Average: 81.9% → 61.9% (-20.0%)

Comparison Graph

🚀 Quick Start

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("CompactAI/SmolLM3-3B-html-medium-heavy")
tokenizer = AutoTokenizer.from_pretrained("CompactAI/SmolLM3-3B-html-medium-heavy")

# 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 HuggingFaceTB/SmolLM3-3B
Specialization Html
Prune Mode Medium Heavy
Pruning Method Activation-based weight pruning (Wanda)
Weight Reduction 25% weights pruned

🔗 Related Models

This model is part of the SmolLM3-3B 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 HuggingFaceTB/SmolLM3-3B.


Generated by ZANNPS [Zeto Automatic Neural Network Pruning System]