quevirus commited on
Commit
70027fc
·
verified ·
1 Parent(s): 0089a30

Update model card

Browse files
Files changed (1) hide show
  1. README.md +109 -100
README.md CHANGED
@@ -1,120 +1,103 @@
1
  ---
2
  license: apache-2.0
3
- base_model: Qwen/Qwen3.5-4B
 
 
4
  library_name: mlx
 
5
  language:
6
  - ko
7
  - en
8
  tags:
9
  - decision-model
 
10
  - classification
11
- - qwen3_5
 
12
  - mlx
 
13
  ---
 
14
  # Xevn-4B-MLX-4bit
15
 
16
- **English** | [한국어](#한국어)
17
 
18
- Xevn is a 4B decision model built for Korean, trained for Korean understanding, knowledge, and judgment.
19
 
20
  Xevn follows the [Jev](https://benchmarkheaven.com/jev-models) decision format. It reads a question and its options once and returns the answer together with a probability for every option. There is no text generation, so a request costs one forward pass.
21
 
22
- This repository provides the 4bit MLX weights. Weight size: 2.3672 GB. Equal-mixture HTTP p50: 77.86 ms. Accuracy for every precision is in the Models table.
23
-
24
- ## Tasks
25
-
26
- | Type | Input | Output |
27
- |---|---|---|
28
- | `choice` | A question and up to 26 options | Probability for each option |
29
- | `noul` | A yes/no question with criteria | Probability of yes |
30
- | `score` | An item and a graded scale | Probability for each level |
31
 
32
- ## Benchmarks
33
-
34
- ### Korean
35
-
36
- **Accuracy (%)**
 
 
 
 
 
37
 
38
- | Benchmark | Measures | **Xevn** | JevK5 | Plumb | Decider | Mica | Tev1 |
39
- |---|---|:-:|:-:|:-:|:-:|:-:|:-:|
40
- | KoBEST | Reasoning and commonsense | **89.7** | 69.7 | 84.2 | 74.6 | 72.7 | 67.7 |
41
- | KorMedMCQA | Korean medical licensing exams | **69.4** | 65.5 | 65.5 | 64.3 | 65.8 | 59.7 |
42
- | HAE-RAE | Korean knowledge | **58.3** | 56.5 | 54.9 | 53.7 | 54.6 | 53.2 |
43
- | Belebele | Reading comprehension | **89.0** | 87.4 | 86.6 | 87.2 | 86.3 | 87.6 |
44
- | KMMLU | Expert knowledge across subjects | **56.3** | 52.8 | 55.1 | 54.1 | 54.4 | 47.5 |
45
- | CSAT-QA | Korean SAT reading | **68.8** | 69.4 | 67.7 | 66.2 | 60.5 | 65.1 |
46
- | CLIcK | Korean culture and language | **66.5** | 67.3 | 67.2 | 64.9 | 64.3 | 62.9 |
47
- | KMMLU-1035 | Expert knowledge, second set | **50.1** | 48.0 | 48.3 | 51.0 | 48.2 | 43.6 |
48
 
49
- **Headline** = (Intelligence + Calibration) / 2, the JevBench score that combines accuracy and calibration.
 
 
 
50
 
51
- | Benchmark | **Xevn** | JevK5 | Plumb | Decider | Mica | Tev1 |
52
- |---|:-:|:-:|:-:|:-:|:-:|:-:|
53
- | KoBEST | **92.0** | 83.7 | 84.2 | 82.0 | 85.3 | 87.1 |
54
- | KorMedMCQA | **78.7** | 76.7 | 74.0 | 73.1 | 70.4 | 67.1 |
55
- | HAE-RAE | **70.2** | 69.3 | 68.2 | 63.9 | 62.1 | 61.0 |
56
- | Belebele | **90.3** | 89.7 | 87.7 | 89.3 | 86.4 | 89.2 |
57
- | KMMLU | **68.5** | 63.3 | 67.8 | 58.1 | 58.5 | 55.3 |
58
- | CSAT-QA | **76.4** | 76.6 | 77.3 | 72.3 | 65.7 | 74.4 |
59
- | CLIcK | **72.5** | 74.8 | 73.1 | 68.5 | 68.1 | 68.6 |
60
- | KMMLU-1035 | **60.1** | 55.7 | 57.8 | 53.3 | 49.5 | 49.3 |
61
 
62
- ### English
 
63
 
64
- **Accuracy (%)**
 
 
 
 
 
 
 
 
 
 
 
65
 
66
- | Benchmark | Measures | **Xevn** | JevK5 | Plumb | Decider | Mica | Tev1 |
67
- |---|---|:-:|:-:|:-:|:-:|:-:|:-:|
68
- | MMLU | Knowledge across 57 subjects | **76.5** | 74.8 | 74.9 | 74.5 | 75.4 | 71.6 |
69
- | ARC | Grade-school science | **96.7** | 96.7 | 96.4 | 96.5 | 96.5 | 95.3 |
70
- | SciQ | Science exam questions | **95.6** | 96.6 | 95.4 | 95.6 | 95.3 | 95.4 |
71
- | PIQA | Physical commonsense | **87.3** | 87.2 | 86.1 | 88.7 | 84.3 | 84.8 |
72
- | Social IQa | Social commonsense | **76.5** | 78.1 | 75.3 | 76.1 | 69.9 | 75.9 |
73
- | OBQA | Open-book science reasoning | **88.7** | 88.7 | 87.7 | 91.0 | 85.0 | 79.3 |
74
 
75
- **Headline**
 
 
 
 
 
 
76
 
77
- | Benchmark | **Xevn** | JevK5 | Plumb | Decider | Mica | Tev1 |
78
- |---|:-:|:-:|:-:|:-:|:-:|:-:|
79
- | MMLU | **83.2** | 79.7 | 78.8 | 80.0 | 77.3 | 74.2 |
80
- | ARC | **94.8** | 94.9 | 87.7 | 95.6 | 97.0 | 94.6 |
81
- | SciQ | **94.5** | 94.2 | 88.7 | 94.1 | 95.5 | 94.7 |
82
- | PIQA | **80.8** | 84.6 | 83.0 | 87.2 | 81.5 | 79.7 |
83
- | Social IQa | **79.6** | 82.4 | 78.1 | 75.8 | 67.3 | 77.6 |
84
- | OBQA | **84.9** | 86.1 | 78.6 | 89.6 | 86.9 | 83.2 |
85
 
86
- **Setup.** Every model was run in 16-bit (bf16; Decider in its official FP16) with the same prompts and the same scoring, on an Apple M4 Max.
87
 
88
- ## Speed
89
 
90
- Latency of a single request over HTTP, bf16, Apple M4 Max, 3,000 requests.
 
 
 
 
91
 
92
- | Input length | p50 | p95 |
93
- |---|:-:|:-:|
94
- | up to 64 tokens | 56 ms | 64 ms |
95
- | 65 to 128 tokens | 88 ms | 103 ms |
96
- | 129 to 256 tokens | 156 ms | 188 ms |
97
 
98
- ## Models
99
 
100
- | Precision | Size | Speed (p50) | Download |
101
- |---|:-:|:-:|:-:|
102
- | 16-bit | 8.4 GB | 88 ms | [MLX](https://huggingface.co/quevirus/Xevn-4B-MLX-bf16) |
103
- | 8-bit | 4.5 GB | 83 ms | [MLX](https://huggingface.co/quevirus/Xevn-4B-MLX-8bit) |
104
- | 6-bit | 3.4 GB | 82 ms | [MLX](https://huggingface.co/quevirus/Xevn-4B-MLX-6bit) |
105
- | 5-bit | 2.9 GB | 80 ms | [MLX](https://huggingface.co/quevirus/Xevn-4B-MLX-5bit) |
106
- | 4-bit | 2.4 GB | 78 ms | [MLX](https://huggingface.co/quevirus/Xevn-4B-MLX-4bit) |
107
- | 3-bit | 1.8 GB | 77 ms | [MLX](https://huggingface.co/quevirus/Xevn-4B-MLX-3bit) |
108
-
109
- 16-bit is the bf16 format. Speed is the p50 over an equal mix of the three input lengths, measured in the same session as the Speed table. On every benchmark, 8-bit to 5-bit stay within 2 points of 16-bit accuracy and 4-bit within 3 points. 3-bit loses 7 to 21 points and is provided for experimentation.
110
-
111
- PyTorch (Transformers) 16-bit weights: [Xevn-4B](https://huggingface.co/quevirus/Xevn-4B).
112
-
113
- ### By benchmark
114
 
115
  **Accuracy (%)**
116
 
117
- | Benchmark | 16-bit | 8-bit | 6-bit | 5-bit | 4-bit | 3-bit |
118
  |---|:-:|:-:|:-:|:-:|:-:|:-:|
119
  | KoBEST | 89.7 | 89.7 | 89.6 | 89.5 | 87.4 | 79.7 |
120
  | KorMedMCQA | 69.4 | 69.1 | 69.6 | 68.5 | 66.4 | 50.8 |
@@ -127,7 +110,7 @@ PyTorch (Transformers) 16-bit weights: [Xevn-4B](https://huggingface.co/quevirus
127
 
128
  **Headline**
129
 
130
- | Benchmark | 16-bit | 8-bit | 6-bit | 5-bit | 4-bit | 3-bit |
131
  |---|:-:|:-:|:-:|:-:|:-:|:-:|
132
  | KoBEST | 92.0 | 91.9 | 92.4 | 91.4 | 90.8 | 80.6 |
133
  | KorMedMCQA | 78.7 | 78.7 | 79.0 | 77.8 | 75.5 | 65.9 |
@@ -138,30 +121,56 @@ PyTorch (Transformers) 16-bit weights: [Xevn-4B](https://huggingface.co/quevirus
138
  | CLIcK | 72.5 | 72.2 | 72.6 | 73.1 | 74.5 | 68.0 |
139
  | KMMLU-1035 | 60.1 | 59.9 | 60.8 | 61.3 | 61.1 | 53.4 |
140
 
141
- ## Intended use
142
 
143
- Xevn is built for decisions: classification, multiple choice, yes/no judgments, and rating. It is not a chat or text-generation model. It is tuned for Korean; English input works but is not the focus.
144
 
145
- ## License
146
 
147
- [Apache 2.0](https://huggingface.co/quevirus/Xevn-4B/blob/main/LICENSE). Built on [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B).
 
 
 
 
148
 
149
- ## Quick start
150
 
151
- ```bash
152
- pip install huggingface_hub mlx-lm
153
- hf download quevirus/Xevn-4B-MLX-4bit --local-dir ./Xevn
154
- ```
 
 
 
 
 
 
 
 
 
 
 
 
155
 
156
- Use the bundled `xevn_mlx.py` decision helper with `./Xevn`. It renders the decision prompt and reads option probabilities in one forward pass. `temps.json` contains the per-type readout temperatures. The benchmark and speed tables above describe the bf16 reference; the precision table reports each measured variant separately.
157
 
158
- ## 한국어
159
 
160
- Xevn은 한국어 분류, 객관식 선택, 예/아니요 판단, 평점을 위한 4B 결정 모델입니다. 질문과 선택지를 한 번 읽고 답과 선택지별 확률을 반환합니다. 한국어 벤치마크 결과와 정밀도별 측정값은 위 표에 있습니다.
 
 
161
 
162
- ```python
163
- from xevn_mlx import XevnMLX
164
- model = XevnMLX("./Xevn")
165
- # Pass a Jev state and a single Jev question dictionary.
166
- result = model.predict(state, question)
 
 
 
 
167
  ```
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ license_link: https://huggingface.co/quevirus/Xevn-4B/blob/main/LICENSE
4
+ base_model: quevirus/Xevn-4B
5
+ base_model_relation: quantized
6
  library_name: mlx
7
+ pipeline_tag: text-classification
8
  language:
9
  - ko
10
  - en
11
  tags:
12
  - decision-model
13
+ - jev
14
  - classification
15
+ - calibration
16
+ - korean
17
  - mlx
18
+ - apple-silicon
19
  ---
20
+
21
  # Xevn-4B-MLX-4bit
22
 
23
+ [Transformers](https://huggingface.co/quevirus/Xevn-4B) | [MLX](https://huggingface.co/quevirus/Xevn-4B-MLX-5bit) | [GGUF](https://huggingface.co/quevirus/Xevn-4B-GGUF) | [GitHub](https://github.com/Nhahan/Xevn) | [Website](https://nhahan.github.io/Xevn/)
24
 
25
+ 4-bit MLX weights of [Xevn-4B](https://huggingface.co/quevirus/Xevn-4B) for Apple silicon. Xevn is a 4B decision model built for Korean, trained for Korean understanding, knowledge, and judgment.
26
 
27
  Xevn follows the [Jev](https://benchmarkheaven.com/jev-models) decision format. It reads a question and its options once and returns the answer together with a probability for every option. There is no text generation, so a request costs one forward pass.
28
 
29
+ ## Model overview
 
 
 
 
 
 
 
 
30
 
31
+ - **Type:** Decision model with one forward pass per question and no text generation
32
+ - **Parameters:** 4B
33
+ - **Architecture:** Hybrid Gated DeltaNet and attention, 32 layers (24 Gated DeltaNet, 8 full attention)
34
+ - **Hidden size / vocabulary:** 2,560 / 248,320
35
+ - **Question types:** `choice`, `noul`, `score`
36
+ - **Languages:** Korean (primary), English
37
+ - **Format:** MLX
38
+ - **Quantization:** 4-bit affine, group size 64
39
+ - **Size:** 2.4 GB
40
+ - **Speed (p50):** 78 ms
41
 
42
+ ## Quickstart
 
 
 
 
 
 
 
 
 
43
 
44
+ ```bash
45
+ pip install -U mlx-lm huggingface_hub
46
+ hf download quevirus/Xevn-4B-MLX-4bit --local-dir Xevn-4B-MLX-4bit
47
+ ```
48
 
49
+ ```python
50
+ import sys
51
+ sys.path.insert(0, "Xevn-4B-MLX-4bit") # the repository ships the xevn_mlx.py helper
52
+ from xevn_mlx import XevnMLX
 
 
 
 
 
 
53
 
54
+ model = XevnMLX("Xevn-4B-MLX-4bit")
55
+ ```
56
 
57
+ ```python
58
+ state = "고객: 어제 주문한 이어폰 값이 카드에서 두 번 결제됐어요. 오늘 안에 한 건 취소해 주세요."
59
+ # "Customer: the earphones I ordered yesterday were charged to my card twice. Please cancel one today."
60
+ questions = {
61
+ "team": {"type": "choice", "instructions": "Which team should handle this ticket?",
62
+ "criteria": {"billing": "Payments and refunds", "shipping": "Delivery", "account": "Login and account"}},
63
+ "charged_twice": {"type": "noul", "instructions": "Was the customer charged more than once?"},
64
+ "urgency": {"type": "score", "instructions": "How urgent is this ticket?",
65
+ "criteria": ["Low", "Medium", "High"]},
66
+ }
67
+ result = {key: model.predict(state, q) for key, q in questions.items()}
68
+ ```
69
 
70
+ Output (rounded):
 
 
 
 
 
 
 
71
 
72
+ ```json
73
+ {
74
+ "team": {"answer": "billing", "probs": {"billing": 0.998, "shipping": 0.001, "account": 0.001}},
75
+ "charged_twice": {"answer": true, "probs": {"yes": 0.993, "no": 0.007}},
76
+ "urgency": {"answer": 1.77, "probs": {"0": 0.041, "1": 0.150, "2": 0.809}}
77
+ }
78
+ ```
79
 
80
+ Values differ slightly between precisions.
 
 
 
 
 
 
 
81
 
82
+ ## Request format
83
 
84
+ A request is a `state` (text or any JSON value) and one or more named `questions`. Each question has a `type`, `instructions`, and `criteria`.
85
 
86
+ | Type | Use | `criteria` | `answer` in the result |
87
+ |---|---|---|---|
88
+ | `choice` | Pick one of up to 26 options | `{"key": "description", ...}`, 2 to 26 options | The key of the most probable option |
89
+ | `noul` | Yes or no | Optional `{"true": "...", "false": "..."}` | `true` or `false` |
90
+ | `score` | Rate on a graded scale | `["lowest level", ..., "highest level"]`, 2 to 10 levels | The expected level (0 is the first level) |
91
 
92
+ `probs` holds a probability for every option, `yes`/`no`, or level. For `noul`, a yes probability strictly between 0.2 and 0.8 is moved to 0.2 or 0.8 on the same side, so the model always commits to an answer. Readout temperatures per type are in `temps.json` (choice 1.1, noul 1.2, score 1.2).
 
 
 
 
93
 
94
+ ## Accuracy by precision
95
 
96
+ This repository is the **4-bit** column. On every benchmark, 8-bit to 5-bit stay within 2 points of 16-bit accuracy and 4-bit within 3 points. 3-bit loses 7 to 21 points and is provided for experimentation.
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
  **Accuracy (%)**
99
 
100
+ | Benchmark | 16-bit | 8-bit | 6-bit | 5-bit | **4-bit** | 3-bit |
101
  |---|:-:|:-:|:-:|:-:|:-:|:-:|
102
  | KoBEST | 89.7 | 89.7 | 89.6 | 89.5 | 87.4 | 79.7 |
103
  | KorMedMCQA | 69.4 | 69.1 | 69.6 | 68.5 | 66.4 | 50.8 |
 
110
 
111
  **Headline**
112
 
113
+ | Benchmark | 16-bit | 8-bit | 6-bit | 5-bit | **4-bit** | 3-bit |
114
  |---|:-:|:-:|:-:|:-:|:-:|:-:|
115
  | KoBEST | 92.0 | 91.9 | 92.4 | 91.4 | 90.8 | 80.6 |
116
  | KorMedMCQA | 78.7 | 78.7 | 79.0 | 77.8 | 75.5 | 65.9 |
 
121
  | CLIcK | 72.5 | 72.2 | 72.6 | 73.1 | 74.5 | 68.0 |
122
  | KMMLU-1035 | 60.1 | 59.9 | 60.8 | 61.3 | 61.1 | 53.4 |
123
 
124
+ Comparisons with other models are in the [Xevn-4B evaluation](https://huggingface.co/quevirus/Xevn-4B#evaluation).
125
 
126
+ ## Speed
127
 
128
+ Latency of a single request over HTTP, bf16, Apple M4 Max, 3,000 requests. MLX runtime, one question per request.
129
 
130
+ | Input length | p50 | p95 |
131
+ |---|:-:|:-:|
132
+ | up to 64 tokens | 56 ms | 64 ms |
133
+ | 65 to 128 tokens | 88 ms | 103 ms |
134
+ | 129 to 256 tokens | 156 ms | 188 ms |
135
 
136
+ ## Model files
137
 
138
+ | Format | Precision | Size | Speed (p50) | Repository |
139
+ |---|:-:|:-:|:-:|---|
140
+ | Transformers | 16-bit | 9.3 GB | — | [Xevn-4B](https://huggingface.co/quevirus/Xevn-4B) |
141
+ | MLX | 16-bit | 8.4 GB | 88 ms | [Xevn-4B-MLX-bf16](https://huggingface.co/quevirus/Xevn-4B-MLX-bf16) |
142
+ | MLX | 8-bit | 4.5 GB | 83 ms | [Xevn-4B-MLX-8bit](https://huggingface.co/quevirus/Xevn-4B-MLX-8bit) |
143
+ | MLX | 6-bit | 3.4 GB | 82 ms | [Xevn-4B-MLX-6bit](https://huggingface.co/quevirus/Xevn-4B-MLX-6bit) |
144
+ | MLX | 5-bit | 2.9 GB | 80 ms | [Xevn-4B-MLX-5bit](https://huggingface.co/quevirus/Xevn-4B-MLX-5bit) |
145
+ | **MLX** | **4-bit** | **2.4 GB** | **78 ms** | **[Xevn-4B-MLX-4bit](https://huggingface.co/quevirus/Xevn-4B-MLX-4bit)** |
146
+ | MLX | 3-bit | 1.8 GB | 77 ms | [Xevn-4B-MLX-3bit](https://huggingface.co/quevirus/Xevn-4B-MLX-3bit) |
147
+ | GGUF | BF16 | 8.67 GB | — | [Xevn-4B-GGUF](https://huggingface.co/quevirus/Xevn-4B-GGUF/blob/main/Xevn-4B-BF16.gguf) |
148
+ | GGUF | Q8_0 | 4.61 GB | — | [Xevn-4B-GGUF](https://huggingface.co/quevirus/Xevn-4B-GGUF/blob/main/Xevn-4B-Q8_0.gguf) |
149
+ | GGUF | Q6_K | 3.56 GB | — | [Xevn-4B-GGUF](https://huggingface.co/quevirus/Xevn-4B-GGUF/blob/main/Xevn-4B-Q6_K.gguf) |
150
+ | GGUF | Q5_K_M | 3.16 GB | — | [Xevn-4B-GGUF](https://huggingface.co/quevirus/Xevn-4B-GGUF/blob/main/Xevn-4B-Q5_K_M.gguf) |
151
+ | GGUF | Q4_K_M | 2.78 GB | — | [Xevn-4B-GGUF](https://huggingface.co/quevirus/Xevn-4B-GGUF/blob/main/Xevn-4B-Q4_K_M.gguf) |
152
+
153
+ Speed is the MLX p50 over an equal mix of the three input lengths in the Speed table, measured in one session on an Apple M4 Max. On every benchmark, MLX 8-bit to 5-bit stay within 2 points of 16-bit accuracy and 4-bit within 3 points. 3-bit loses 7 to 21 points and is provided for experimentation. The Transformers weights keep the original multimodal layout (9.3 GB); the helper uses the text model only.
154
 
155
+ ## Intended use and limitations
156
 
157
+ Xevn is built for decisions: classification, multiple choice, yes/no judgments, and rating. It is not a chat or text-generation model. It is tuned for Korean; English input works but is not the focus.
158
 
159
+ - Xevn returns probabilities over the options you give it. It does not generate text and cannot answer open questions.
160
+ - The bundled helpers run one forward pass per question and accept 2 to 26 options and 2 to 10 score levels.
161
+ - Speed figures are for MLX on an Apple M4 Max with inputs up to 256 tokens. Transformers and GGUF speed has not been measured (shown as —).
162
 
163
+ ## Citation
164
+
165
+ ```bibtex
166
+ @misc{xevn2026,
167
+ title = {Xevn-4B: a Korean decision model},
168
+ author = {Nhahan},
169
+ year = {2026},
170
+ url = {https://huggingface.co/quevirus/Xevn-4B}
171
+ }
172
  ```
173
+
174
+ ## License
175
+
176
+ [Apache 2.0](https://huggingface.co/quevirus/Xevn-4B/blob/main/LICENSE). Built on [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B).