--- license: apache-2.0 tags: - pruned - linux - optimized - wanda - activation-pruning base_model: HuggingFaceTB/SmolLM3-3B pipeline_tag: text-generation --- # SmolLM3-3B-linux-medium > 🎯 **LINUX-optimized** | 📦 **Medium** pruning | ⚡ **15% weights pruned** This model is a **moderately pruned** version of [HuggingFaceTB/SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B), 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**: 15% weights pruned - **Use Case**: Balanced trade-off between size and accuracy ## 📊 Performance Comparison | Category | Original | Pruned | Change | |----------|----------|--------|--------| | Python | 80.0% | 100.0% | ↑ 20.0% | | Html | 0.0% | 0.0% | → | | Trivia | 100.0% | 100.0% | → | | Math | 100.0% | 100.0% | → | | Reasoning | N/A | N/A | | | Medical | 100.0% | 100.0% | → | | **Linux** | 100.0% | 93.3% ⭐ | ↓ 6.7% | | Writing | 93.3% | 93.3% | → | **Average**: 81.9% → 83.8% (+1.9%) **Linux Retention**: 93.3% of original performance ![Comparison Graph](comparison_graph.png) ## 🚀 Quick Start ```python from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained("CompactAI/SmolLM3-3B-linux-medium") tokenizer = AutoTokenizer.from_pretrained("CompactAI/SmolLM3-3B-linux-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 | [HuggingFaceTB/SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B) | | Specialization | Linux | | Prune Mode | Medium | | Pruning Method | Activation-based weight pruning (Wanda) | | Weight Reduction | 15% 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](https://huggingface.co/HuggingFaceTB/SmolLM3-3B). --- *Generated by ZANNPS [Zeto Automatic Neural Network Pruning System]*