CompactAI commited on
Commit
daa169d
·
verified ·
1 Parent(s): 299de13

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: raincandy-u/Rain-100M
9
+ pipeline_tag: text-generation
10
+ ---
11
+
12
+ # Rain-100M-python-aggressive
13
+
14
+ > 🎯 **PYTHON-optimized** | 📦 **Aggressive** pruning | ⚡ **1% weights pruned**
15
+
16
+ This model is a **aggressively pruned** version of [raincandy-u/Rain-100M](https://huggingface.co/raincandy-u/Rain-100M).
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 | 0.0% | 0.0% | → |
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**: 0.0% → 0.0% (+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/Rain-100M-python-aggressive")
43
+ tokenizer = AutoTokenizer.from_pretrained("CompactAI/Rain-100M-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 | [raincandy-u/Rain-100M](https://huggingface.co/raincandy-u/Rain-100M) |
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.
comparison_graph.png ADDED
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 2,
8
+ "dtype": "float16",
9
+ "eos_token_id": 3,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 2048,
15
+ "layer_types": [
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention"
28
+ ],
29
+ "max_position_embeddings": 4096,
30
+ "max_window_layers": 28,
31
+ "model_type": "qwen3",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "num_key_value_heads": 12,
35
+ "pad_token_id": 0,
36
+ "rms_norm_eps": 1e-06,
37
+ "rope_parameters": {
38
+ "rope_theta": 10000.0,
39
+ "rope_type": "default"
40
+ },
41
+ "sliding_window": null,
42
+ "tie_word_embeddings": true,
43
+ "transformers_version": "5.0.0",
44
+ "use_cache": true,
45
+ "use_sliding_window": false,
46
+ "vocab_size": 16000
47
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "do_sample": false,
5
+ "eos_token_id": 3,
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:1bff26add0033d2924bb271644cc0b72a02e5492248547beab18ba09dd1d6aa5
3
+ size 194501472
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "[BOS]",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "[EOS]",
6
+ "is_local": false,
7
+ "model_max_length": 4096,
8
+ "model_specific_special_tokens": {},
9
+ "pad_token": "[PAD]",
10
+ "tokenizer_class": "TokenizersBackend",
11
+ "unk_token": "[UNK]"
12
+ }