Text Generation
Transformers
Safetensors
English
qwen3_recovered
qwen3
qwen
model-compression
pruning
depth-pruning
knowledge-distillation
efficient-inference
compressed
chat
conversational
e-ai
custom_code
Instructions to use atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2
- SGLang
How to use atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2 with Docker Model Runner:
docker model run hf.co/atlasium-efficient/Qwen3-11B-25pct-Compressed-14B-EN-V2
V2 card
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
| 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 |
-
##
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|---|---|---|
|
| 31 |
-
| WikiText2 | 8.64 | 19.32 |
|
| 32 |
-
| C4 | 13.0 | 22.47 |
|
| 33 |
-
| PTB | 14.79 | 30.31 |
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
|
| 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 |
-
##
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
## Usage
|
| 55 |
```python
|
|
|
|
| 56 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 57 |
-
|
| 58 |
-
|
| 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 |
+

|
| 23 |
+
|
| 24 |
+

|
| 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.
|