alanzhuly commited on
Commit
4398010
·
verified ·
1 Parent(s): 99e1ac8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -44
README.md CHANGED
@@ -21,7 +21,47 @@ tags:
21
 
22
  DeepSeek-R1 has been making headlines for rivaling OpenAI’s O1 reasoning model while remaining fully open-source. Many users want to run it locally to ensure data privacy, reduce latency, and maintain offline access. However, fitting such a large model onto personal devices typically requires quantization (e.g. Q4_K_M), which often sacrifices accuracy (up to ~22% accuracy loss) and undermines the benefits of the local reasoning model.
23
 
24
- We’ve solved the trade-off by quantizing the DeepSeek R1 Distilled model to one-fourth its original size—without losing any accuracy. Tests on an **HP Omnibook AIPC** with an **AMD Ryzen™ AI 9 HX 370 processor** showed a decoding speed of **17.20 tokens per second** and a peak RAM usage of just **5017 MB** in NexaQuant version—compared to only **5.30 tokens** per second and **15564 MB RAM** in the unquantized version—while NexaQuant **maintaining full precision model accuracy.**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  ## How to run locally
27
 
@@ -68,49 +108,6 @@ Get the latest version from the [official website](https://lmstudio.ai/).
68
  3. Once loaded, go to the chat window and start a conversation.
69
  ---
70
 
71
- ## Example
72
-
73
- On the left, we have an example of what LMStudio Q4_K_M responded. On the right is our NexaQuant version.
74
-
75
- Prompt: A Common Investment Banking BrainTeaser Question
76
-
77
- There is a 6x8 rectangular chocolate bar made up of small 1x1 bits. We want to break it into the 48 bits. We can break one piece of chocolate horizontally or vertically, but cannot break two pieces together! What is the minimum number of breaks required?
78
-
79
- Right Answer: 47
80
-
81
- <div align="center">
82
- <img src="https://cdn-uploads.huggingface.co/production/uploads/66abfd6f65beb23afa427d8a/ZS9e66t7OhBIno4eQ3OaX.png" width="80%" alt="Example" />
83
- </div>
84
-
85
- ## Benchmarks
86
-
87
- NexaQuant on Reasoning Benchmarks Compared to BF16 and LMStudio's Q4_K_M
88
-
89
- **8B:**
90
-
91
- <div align="center">
92
- <img src="https://cdn-uploads.huggingface.co/production/uploads/66abfd6f65beb23afa427d8a/4SSDIqxikgaDbx8V-Q6bf.png" width="80%" alt="Example" />
93
- </div>
94
-
95
- The general capacity has also greatly improved:
96
-
97
- **8B:**
98
-
99
- | Benchmark | Full 16-bit | llama.cpp (4-bit) | NexaQuant (4-bit)|
100
- |----------------------------|------------|-------------------|-------------------|
101
- | **HellaSwag** | 57.07 | 52.12 | 54.56 |
102
- | **MMLU** | 55.59 | 52.82 | 54.94 |
103
- | **Humanities** | 50.48 | 44.74 | 50.24 |
104
- | **Social Sciences** | 65.32 | 65.62 | 64.74 |
105
- | **STEM** | 47.73 | 52.50 | 46.75 |
106
- | **ARC Easy** | 74.49 | 69.32 | 71.72 |
107
- | **MathQA** | 35.34 | 30.00 | 32.46 |
108
- | **PIQA** | 78.56 | 76.09 | 77.68 |
109
- | **IFEval - Inst - Loose** | 44.24 | 44.95 | 42.45 |
110
- | **IFEval - Inst - Strict** | 42.57 | 44.95 | 40.05 |
111
- | **IFEval - Prom - Loose** | 30.31 | 25.74 | 28.47 |
112
- | **IFEval - Prom - Strict** | 27.91 | 25.74 | 25.51 |
113
-
114
  ## What's next
115
 
116
  1. Inference Nexa Quantized Deepseek-R1 distilled model on NPU.
 
21
 
22
  DeepSeek-R1 has been making headlines for rivaling OpenAI’s O1 reasoning model while remaining fully open-source. Many users want to run it locally to ensure data privacy, reduce latency, and maintain offline access. However, fitting such a large model onto personal devices typically requires quantization (e.g. Q4_K_M), which often sacrifices accuracy (up to ~22% accuracy loss) and undermines the benefits of the local reasoning model.
23
 
24
+ We’ve solved the trade-off by quantizing the DeepSeek R1 Distilled model to one-fourth its original file size—without losing any accuracy. Tests on an **HP Omnibook AIPC** with an **AMD Ryzen™ AI 9 HX 370 processor** showed a decoding speed of **17.20 tokens per second** and a peak RAM usage of just **5017 MB** in NexaQuant version—compared to only **5.30 tokens** per second and **15564 MB RAM** in the unquantized version—while NexaQuant **maintaining full precision model accuracy.**
25
+
26
+ ## NexaQuant Use Case Example
27
+
28
+ Here’s a comparison of how a standard Q4_K_M and NexaQuant-4Bit handle a common investment banking brain teaser question. NexaQuant excels in accuracy while shrinking the model file size by 4 times.
29
+
30
+ Prompt: A Common Investment Banking BrainTeaser Question
31
+
32
+ There is a 6x8 rectangular chocolate bar made up of small 1x1 bits. We want to break it into the 48 bits. We can break one piece of chocolate horizontally or vertically, but cannot break two pieces together! What is the minimum number of breaks required?
33
+
34
+ Right Answer: 47
35
+
36
+ <div align="center">
37
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/66abfd6f65beb23afa427d8a/ZS9e66t7OhBIno4eQ3OaX.png" width="80%" alt="Example" />
38
+ </div>
39
+
40
+ ## Benchmarks
41
+
42
+ The benchmarks show that NexaQuant’s 4-bit model preserves the reasoning capacity of the original 16-bit model, delivering uncompromised performance in a significantly smaller memory & storage footprint. Model's general capacity is also greatly improved by NexaQuant.
43
+
44
+ **Reasoning Capacity:**
45
+ <div align="center">
46
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/66abfd6f65beb23afa427d8a/4SSDIqxikgaDbx8V-Q6bf.png" width="80%" alt="Example" />
47
+ </div>
48
+
49
+ **General Capacity:**
50
+
51
+ | Benchmark | Full 16-bit | llama.cpp (4-bit) | NexaQuant (4-bit)|
52
+ |----------------------------|------------|-------------------|-------------------|
53
+ | **HellaSwag** | 57.07 | 52.12 | 54.56 |
54
+ | **MMLU** | 55.59 | 52.82 | 54.94 |
55
+ | **Humanities** | 50.48 | 44.74 | 50.24 |
56
+ | **Social Sciences** | 65.32 | 65.62 | 64.74 |
57
+ | **STEM** | 47.73 | 52.50 | 46.75 |
58
+ | **ARC Easy** | 74.49 | 69.32 | 71.72 |
59
+ | **MathQA** | 35.34 | 30.00 | 32.46 |
60
+ | **PIQA** | 78.56 | 76.09 | 77.68 |
61
+ | **IFEval - Inst - Loose** | 44.24 | 44.95 | 42.45 |
62
+ | **IFEval - Inst - Strict** | 42.57 | 44.95 | 40.05 |
63
+ | **IFEval - Prom - Loose** | 30.31 | 25.74 | 28.47 |
64
+ | **IFEval - Prom - Strict** | 27.91 | 25.74 | 25.51 |
65
 
66
  ## How to run locally
67
 
 
108
  3. Once loaded, go to the chat window and start a conversation.
109
  ---
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  ## What's next
112
 
113
  1. Inference Nexa Quantized Deepseek-R1 distilled model on NPU.