--- license: apache-2.0 tags: - pruned - python - optimized - wanda - activation-pruning base_model: Qwen/Qwen3-0.6B pipeline_tag: text-generation --- # Qwen3-0.6B-python-extra-light > 🎯 **PYTHON-optimized** | 📦 **Extra Light** pruning | ⚡ **2% weights pruned** This model is a **minimally pruned** version of [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B), specialized for **PYTHON** tasks using activation-aware weight pruning (Wanda-style). ## ✨ Key Features - **Specialization**: Optimized for Python tasks - **Pruning Method**: Wanda-style (|W| × |activation|) importance scoring - **Size Reduction**: 2% weights pruned - **Use Case**: Highest accuracy retention with slight size reduction ## 📊 Performance Comparison | Category | Original | Pruned | Change | |----------|----------|--------|--------| | **Python** | 40.0% | 40.0% ⭐ | → | | Html | 0.0% | 0.0% | → | | Trivia | 80.0% | 86.7% | ↑ 6.7% | | Math | 100.0% | 100.0% | → | | Reasoning | N/A | N/A | | | Medical | 93.3% | 93.3% | → | | Linux | 100.0% | 100.0% | → | | Writing | 33.3% | 40.0% | ↑ 6.7% | **Average**: 63.8% → 65.7% (+1.9%) **Python Retention**: 100.0% of original performance ![Comparison Graph](comparison_graph.png) ## 🚀 Quick Start ```python from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained("CompactAI/Qwen3-0.6B-python-extra-light") tokenizer = AutoTokenizer.from_pretrained("CompactAI/Qwen3-0.6B-python-extra-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 | [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B) | | Specialization | Python | | Prune Mode | Extra Light | | Pruning Method | Activation-based weight pruning (Wanda) | | Weight Reduction | 2% weights pruned | ## 🔗 Related Models This model is part of the **Qwen3-0.6B** 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 [Qwen/Qwen3-0.6B](https://huggingface.co/Qwen/Qwen3-0.6B). --- *Generated by ZANNPS [Zeto Automatic Neural Network Pruning System]*