atlasium-efficient commited on
Commit
65fc77b
Β·
verified Β·
1 Parent(s): 535c392
Files changed (1) hide show
  1. README.md +81 -37
README.md CHANGED
@@ -3,57 +3,101 @@ license: apache-2.0
3
  base_model: Qwen/Qwen3-14B
4
  language:
5
  - en
6
- library_name: transformers
7
  pipeline_tag: text-generation
 
8
  tags:
9
- - compressed
10
- - efficient
11
  - qwen3
 
 
 
 
 
 
 
 
 
 
12
  ---
13
 
14
- # Qwen3-11B-25pct-Compressed-14B-EN-V2
 
 
 
 
 
 
 
 
 
 
15
 
16
- A compressed version of **Qwen/Qwen3-14B** with 10 of 40 transformer layers removed (30 layers, ~11.4B parameters), English-only. Part of the E-AI (Efficient & Robust AI) compressed-model series. **V2** adds full MMLU-Pro reporting (overall + per subject).
 
 
17
 
18
- ## Specifications
19
- | | |
20
- |---|---|
21
- | Parameters | ~11.4B |
22
- | Base model | Qwen/Qwen3-14B |
23
- | Layers | 30 / 40 |
24
- | Precision | fp16 / 4-bit |
25
- | License | Apache-2.0 |
26
- | Language | English only |
27
 
28
- ## Perplexity (lower is better)
29
- | Benchmark | Dense 14B | This model |
 
 
 
 
 
 
 
30
  |---|---|---|
31
- | WikiText2 | 8.64 | 19.32 |
32
- | C4 | 13.0 | 22.47 |
33
- | PTB | 14.79 | 30.31 |
 
 
 
34
 
35
- **MMLU: 0.686** (dense 14B: 0.773)
36
 
37
- ## MMLU-Pro (5-shot, exact match)
38
- **Overall: 0.375** (dense 14B: 0.565)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- | Subject | Score | | Subject | Score |
41
- |---|---|---|---|---|
42
- | Biology | 0.610 | | History | 0.383 |
43
- | Business | 0.295 | | Law | 0.237 |
44
- | Chemistry | 0.204 | | Math | 0.346 |
45
- | Computer Science | 0.417 | | Other | 0.407 |
46
- | Economics | 0.549 | | Philosophy | 0.403 |
47
- | Engineering | 0.286 | | Physics | 0.310 |
48
- | Health | 0.445 | | Psychology | 0.597 |
49
 
50
- ## Recommended use
51
- βœ… Text classification, content moderation, reading comprehension, NLI, paraphrase detection, preference scoring, knowledge QA (STEM/biomedical strong).
52
- ❌ Open-ended generation, chain-of-thought reasoning, long-context, math word problems.
 
 
 
 
 
 
53
 
54
  ## Usage
55
  ```python
 
56
  from transformers import AutoModelForCausalLM, AutoTokenizer
57
- m = AutoModelForCausalLM.from_pretrained("atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", torch_dtype="float16", device_map="auto")
58
- tok = AutoTokenizer.from_pretrained("atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2")
59
- ```
 
 
 
 
 
 
 
 
 
3
  base_model: Qwen/Qwen3-14B
4
  language:
5
  - en
 
6
  pipeline_tag: text-generation
7
+ library_name: transformers
8
  tags:
 
 
9
  - qwen3
10
+ - qwen
11
+ - model-compression
12
+ - pruning
13
+ - depth-pruning
14
+ - knowledge-distillation
15
+ - efficient-inference
16
+ - compressed
17
+ - chat
18
+ - conversational
19
+ - e-ai
20
  ---
21
 
22
+ ![Atlas](Atlas_logo.png)
23
+
24
+ ![E-AI Project](mainimage.png)
25
+
26
+ # Qwen3 β€” 25% Compressed from Qwen3-14B (English Β· Chat)
27
+
28
+ Part of the **Efficient and Robust AI System (E-AI) Project** by **Vincent-Daniel Yun**. A compressed edition of [Qwen/Qwen3-14B](https://huggingface.co/Qwen/Qwen3-14B) with **10 of 40 transformer layers removed** (30 layers remain, β‰ˆ11.47B parameters), then **instruction-tuned** so it runs at lower memory and latency.
29
+
30
+ πŸ“… **Version:** V2
31
+
32
+ ## What's new in V2
33
 
34
+ - **Full MMLU-Pro reporting** β€” overall score and a per-subject breakdown vs the dense 14B (below).
35
+ - Instruction-tuning refresh that improves reasoning-heavy benchmarks over V1/V1.5.
36
+ - English only. For open-domain factual questions, pair with retrieval (RAG); best with short answers.
37
 
38
+ > ⚠️ **Language support β€” English only.** Tuned on English data. Other languages (e.g., Korean, Chinese, Japanese) are not officially supported and may degrade.
 
 
 
 
 
 
 
 
39
 
40
+ ## Method
41
+
42
+ The pruning method and the recovery method used to build this model are **proprietary, undisclosed methods created by Vincent-Daniel Yun** and are not released. The compressed model is then instruction-tuned (distilled from the base model). Only the resulting model is shared.
43
+
44
+ ## Results (measured)
45
+
46
+ PPL on 2048-token context (lower is better); downstream tasks and MMLU are 0-shot accuracy via `lm-eval-harness` (higher is better).
47
+
48
+ | Metric | Qwen3-14B (dense) | This model (25%) |
49
  |---|---|---|
50
+ | PPL Β· WikiText2 ↓ | 8.64 | **19.32** |
51
+ | PPL Β· C4 ↓ | 13.0 | **22.47** |
52
+ | PPL Β· PTB ↓ | 14.79 | **30.31** |
53
+ | **MMLU** ↑ | 0.7729 | **0.6860** |
54
+
55
+ ## Performance by subject (MMLU-Pro)
56
 
57
+ MMLU-Pro is a harder, reasoning-focused MMLU β€” 12,032 questions across 14 subjects. We ran the **full** test set (no sampling) vs the dense Qwen3-14B.
58
 
59
+ | Subject | Dense 14B | This model (25%) | Retained |
60
+ |---|---|---|---|
61
+ | Psychology | 0.732 | 0.597 | 81% |
62
+ | Engineering | 0.361 | 0.286 | 79% |
63
+ | Economics | 0.722 | 0.549 | 76% |
64
+ | Biology | 0.806 | 0.610 | 76% |
65
+ | Philosophy | 0.549 | 0.403 | 73% |
66
+ | Health | 0.654 | 0.445 | 68% |
67
+ | Law | 0.349 | 0.237 | 68% |
68
+ | Other | 0.609 | 0.407 | 67% |
69
+ | Computer Science | 0.627 | 0.417 | 67% |
70
+ | History | 0.583 | 0.383 | 66% |
71
+ | Physics | 0.495 | 0.310 | 63% |
72
+ | Math | 0.603 | 0.346 | 57% |
73
+ | Business | 0.598 | 0.295 | 49% |
74
+ | Chemistry | 0.450 | 0.204 | 45% |
75
+ | **Overall (official)** | **0.565** | **0.375** | **66%** |
76
 
77
+ Accuracy is best retained on knowledge- and reading-heavy subjects (psychology, economics, biology, health) and lowest on multi-step quantitative subjects (chemistry, math, physics).
 
 
 
 
 
 
 
 
78
 
79
+ ## Model family β€” pick your size
80
+
81
+ | Model | Layers | Params | MMLU ↑ |
82
+ |---|---|---|---|
83
+ | Qwen3-14B (base, uncompressed) | 40 | 14.77B | 0.773 |
84
+ | [20%](https://huggingface.co/atlasium-efficient/Qwen3-12B-20pct-Compressed-14B-EN-V2) | 32 | 12.13B | 0.716 |
85
+ | **➑ 25% (this model)** | 30 | 11.47B | 0.686 |
86
+ | [30%](https://huggingface.co/atlasium-efficient/Qwen3-11B-30pct-Compressed-14B-EN-V2) | 28 | 10.80B | 0.651 |
87
+ | [35%](https://huggingface.co/atlasium-efficient/Qwen3-10B-35pct-Compressed-14B-EN-V2) | 26 | ~10.1B | 0.572 |
88
 
89
  ## Usage
90
  ```python
91
+ import torch
92
  from transformers import AutoModelForCausalLM, AutoTokenizer
93
+
94
+ m = AutoModelForCausalLM.from_pretrained("atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", trust_remote_code=True, dtype=torch.float16, device_map="cuda")
95
+ tok = AutoTokenizer.from_pretrained("atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", trust_remote_code=True)
96
+ ```
97
+ `trust_remote_code=True` is required: the model ships a small custom decoder layer in `modeling_qwen3_recovered.py`. It is a standard Qwen3 architecture, so `bitsandbytes` 4-bit / 8-bit loading applies on top of the compression.
98
+
99
+ ## License
100
+ Apache-2.0, inherited from the base model Qwen/Qwen3-14B.
101
+
102
+ ## Acknowledgements
103
+ Thanks to **Prof. Sai Praneeth Karimireddy (USC)** and **Prof. Sunwoo Lee (Inha University)** for their guidance, and to **Alibaba (the Qwen team)** for the Qwen3-14B base model.