TinyLlama-1.1B-Chat-v1.0
Collection
Collection of pruned models based on TinyLlama/TinyLlama-1.1B-Chat-v1.0
β’
12 items
β’
Updated
π― PYTHON-optimized | π¦ Safe pruning | β‘ 1% weights pruned
This model is a conservatively pruned version of TinyLlama/TinyLlama-1.1B-Chat-v1.0, specialized for PYTHON tasks using activation-aware weight pruning (Wanda-style).
| Category | Original | Pruned | Change |
|---|---|---|---|
| Python | 0.0% | 0.0% β | β |
| Html | 0.0% | 0.0% | β |
| Trivia | 6.7% | 6.7% | β |
| Math | 0.0% | 0.0% | β |
| Reasoning | 13.3% | 13.3% | β |
| Medical | 0.0% | 0.0% | β |
| Linux | 0.0% | 0.0% | β |
| Writing | 0.0% | 0.0% | β |
Average: 2.5% β 2.5% (+0.0%)
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("CompactAI/TinyLlama-1.1B-Chat-v1.0-python-safe")
tokenizer = AutoTokenizer.from_pretrained("CompactAI/TinyLlama-1.1B-Chat-v1.0-python-safe")
# 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))
| Property | Value |
|---|---|
| Base Model | TinyLlama/TinyLlama-1.1B-Chat-v1.0 |
| Specialization | Python |
| Prune Mode | Safe |
| Pruning Method | Activation-based weight pruning (Wanda) |
| Weight Reduction | 1% weights pruned |
This model is part of the TinyLlama-1.1B-Chat-v1.0 pruned model collection. Variants:
This model inherits the license from the base model TinyLlama/TinyLlama-1.1B-Chat-v1.0.
Generated by ZANNPS [Zeto Automatic Neural Network Pruning System]
Base model
TinyLlama/TinyLlama-1.1B-Chat-v1.0