CompactAI commited on
Commit
0e65fc9
·
verified ·
1 Parent(s): 8c57c02

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - pruned
5
+ - python
6
+ - optimized
7
+ - wanda
8
+ base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
9
+ pipeline_tag: text-generation
10
+ ---
11
+
12
+ # EXAONE-3.5-2.4B-Instruct-python-aggressive
13
+
14
+ > 🎯 **PYTHON-optimized** | 📦 **Aggressive** pruning | ⚡ **1% weights pruned**
15
+
16
+ This model is a **aggressively pruned** version of [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0).
17
+
18
+ ## Performance Comparison
19
+
20
+ | Category | Original | Pruned | Change |
21
+ |----------|----------|--------|--------|
22
+ | **Python** | 0.0% | 0.0% ⭐ | → |
23
+ | Html | 0.0% | 0.0% | → |
24
+ | Trivia | 11.1% | 11.1% | → |
25
+ | Math | 0.0% | 0.0% | → |
26
+ | Reasoning | 0.0% | 0.0% | → |
27
+ | Medical | 0.0% | 0.0% | → |
28
+ | Linux | 0.0% | 0.0% | → |
29
+ | Writing | 0.0% | 0.0% | → |
30
+
31
+ **Average**: 1.4% → 1.4% (+0.0%)
32
+
33
+
34
+
35
+ ![Comparison Graph](comparison_graph.png)
36
+
37
+ ## Quick Start
38
+
39
+ ```python
40
+ from transformers import AutoModelForCausalLM, AutoTokenizer
41
+
42
+ model = AutoModelForCausalLM.from_pretrained("CompactAI/EXAONE-3.5-2.4B-Instruct-python-aggressive")
43
+ tokenizer = AutoTokenizer.from_pretrained("CompactAI/EXAONE-3.5-2.4B-Instruct-python-aggressive")
44
+
45
+ inputs = tokenizer("Your prompt here", return_tensors="pt")
46
+ outputs = model.generate(**inputs, max_new_tokens=100)
47
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
48
+ ```
49
+
50
+ ## Technical Details
51
+
52
+ | Property | Value |
53
+ |----------|-------|
54
+ | Base Model | [Qwen/Qwen2.5-0.5B,TinyLlama/TinyLlama-1.1B-Chat-v1.0,Qwen/Qwen3-1.7B,HuggingFaceTB/SmolLM3-3B,Qwen/Qwen3-0.6B,Qwen/Qwen2.5-3B-Instruct,LGAI-EXAONE/EXAONE-3.5-2.4B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B,TinyLlama/TinyLlama-1.1B-Chat-v1.0,Qwen/Qwen3-1.7B,HuggingFaceTB/SmolLM3-3B,Qwen/Qwen3-0.6B,Qwen/Qwen2.5-3B-Instruct,LGAI-EXAONE/EXAONE-3.5-2.4B-Instruct) |
55
+ | Specialization | Python |
56
+ | Prune Mode | Aggressive |
57
+ | Weight Reduction | 1% weights pruned |
58
+
59
+ ## License
60
+
61
+ This model inherits the license from the base model.
chat_template.jinja ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% for message in messages %}
2
+ {% if message['role'] == 'user' %}
3
+ {{ '<|user|>
4
+ ' + message['content'] + eos_token }}
5
+ {% elif message['role'] == 'system' %}
6
+ {{ '<|system|>
7
+ ' + message['content'] + eos_token }}
8
+ {% elif message['role'] == 'assistant' %}
9
+ {{ '<|assistant|>
10
+ ' + message['content'] + eos_token }}
11
+ {% endif %}
12
+ {% if loop.last and add_generation_prompt %}
13
+ {{ '<|assistant|>' }}
14
+ {% endif %}
15
+ {% endfor %}
comparison_graph.png ADDED
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "dtype": "float16",
9
+ "eos_token_id": 2,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2048,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 5632,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 32,
19
+ "num_hidden_layers": 22,
20
+ "num_key_value_heads": 4,
21
+ "pad_token_id": null,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": false,
29
+ "transformers_version": "5.0.0",
30
+ "use_cache": true,
31
+ "vocab_size": 32000
32
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "do_sample": false,
4
+ "eos_token_id": 2,
5
+ "max_length": 2048,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "5.0.0"
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4619bb3e9b9b70ace0d887ba7e46d0238faf9a5136d21181ef0746f9af5d461
3
+ size 2200119664
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "</s>",
6
+ "is_local": false,
7
+ "legacy": false,
8
+ "model_max_length": 2048,
9
+ "pad_token": "</s>",
10
+ "padding_side": "left",
11
+ "sp_model_kwargs": {},
12
+ "tokenizer_class": "TokenizersBackend",
13
+ "unk_token": "<unk>",
14
+ "use_default_system_prompt": false
15
+ }