--- license: apache-2.0 tags: - pruned - python - optimized - wanda base_model: Qwen/Qwen3-1.7B pipeline_tag: text-generation --- # Qwen3-1.7B-python-safe > 🎯 **PYTHON-optimized** | 📦 **Safe** pruning | ⚡ **1% weights pruned** This model is a **conservatively pruned** version of [Qwen/Qwen3-1.7B](https://huggingface.co/Qwen/Qwen3-1.7B). ## Performance Comparison | Category | Original | Pruned | Change | |----------|----------|--------|--------| | **Python** | 0.0% | 0.0% ⭐ | → | | Html | 0.0% | 0.0% | → | | Trivia | 57.1% | 57.1% | → | | Math | 66.7% | 66.7% | → | | Reasoning | 20.0% | 20.0% | → | | Medical | 50.0% | 50.0% | → | | Linux | 20.0% | 40.0% | ↑ 20.0% | | Writing | 16.7% | 0.0% | ↓ 16.7% | **Average**: 28.8% → 29.2% (+0.4%) ![Comparison Graph](comparison_graph.png) ## Quick Start ```python from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained("CompactAI/Qwen3-1.7B-python-safe") tokenizer = AutoTokenizer.from_pretrained("CompactAI/Qwen3-1.7B-python-safe") 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-1.7B](https://huggingface.co/Qwen/Qwen3-1.7B) | | Specialization | Python | | Prune Mode | Safe | | Weight Reduction | 1% weights pruned | ## License This model inherits the license from the base model.