11-47 commited on
Commit
69e6b53
·
verified ·
1 Parent(s): e75c2f2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +303 -206
README.md CHANGED
@@ -1,207 +1,304 @@
1
- ---
2
- license: apache-2.0
 
 
 
 
3
  language:
4
- - en
5
- library_name: transformers
6
- pipeline_tag: text-generation
7
- tags:
8
- - small-language-model
9
- - from-scratch
10
- - mixture-of-experts
11
- - moe
12
- - lfm2_moe
13
- - hybrid
14
- - tool-calling
15
- - reasoning
16
- - conversational
17
- - gguf
18
- - WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
19
- datasets:
20
- - HuggingFaceFW/fineweb-edu
21
- - mlfoundations/dclm-baseline-1.0
22
- - wikimedia/wikipedia
23
- - HuggingFaceTB/cosmopedia
24
- - HuggingFaceTB/smollm-corpus
25
- - HuggingFaceTB/finemath
26
- - OctoThinker/MegaMath-Web-Pro-Max
27
- - HuggingFaceFW/finepdfs-edu
28
- - bigcode/the-stack-smol
29
- - manu/project_gutenberg
30
- - lucadiliello/bookcorpusopen
31
- - roneneldan/TinyStories
32
- - ArrowLabs/DCLM-Ultra-1.1
33
- - AxiomicLabs/FactBase-DCLM
34
- - sentence-transformers/gooaq
35
- - sentence-transformers/eli5
36
- - HuggingFaceFW/finephrase
37
- - microsoft/orca-math-word-problems-200k
38
- - HuggingFaceTB/smol-smoltalk
39
- - HuggingFaceTB/smoltalk
40
- - allenai/tulu-3-sft-personas-instruction-following
41
- - allenai/WildChat-4.8M
42
- - teknium/OpenHermes-2.5
43
- - NousResearch/hermes-function-calling-v1
44
- ---
45
- # WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
46
-
47
- A tiny chat model with **thinking and tool calling**, trained from scratch. It's WIUAI Classic mixture of experts tiny LLM on a new
48
- **hybrid architecture**: gated short-convolution blocks plus a few attention blocks, with a mixture of experts. 53.4M
49
- parameters in total, **9.3M active per token**. The layout matches LiquidAI's LFM2-MoE, so it’s a transformers >= 5 as `Lfm2MoeForCausalLM`: no custom code.
50
- It's the small-scale test of the recipe and architecture planned for a larger WIUAI tiny model:
51
- fluent and quick, often right on simple facts, unreliable on arithmetic and multi-step instructions.
52
- ---
53
- model-index:
54
- - name: WIUAI.Flash.MoE.Coder.instruct.53m
55
- results:
56
- - task:
57
- type: text-generation
58
- dataset:
59
- type: allenai/ai2_arc
60
- name: ARC-Easy
61
- config: ARC-Easy
62
- split: test
63
- metrics:
64
- - type: acc_norm
65
- value: 49.71
66
- name: acc_norm (0-shot)
67
- - task:
68
- type: text-generation
69
- dataset:
70
- type: allenai/ai2_arc
71
- name: ARC-Challenge
72
- config: ARC-Challenge
73
- split: test
74
- metrics:
75
- - type: acc_norm
76
- value: 30.29
77
- name: acc_norm (0-shot)
78
- - task:
79
- type: text-generation
80
- dataset:
81
- type: Rowan/hellaswag
82
- name: HellaSwag
83
- split: validation
84
- metrics:
85
- - type: acc_norm
86
- value: 30.1
87
- name: acc_norm (0-shot)
88
- - task:
89
- type: text-generation
90
- dataset:
91
- type: ybisk/piqa
92
- name: PIQA
93
- split: validation
94
- metrics:
95
- - type: acc_norm
96
- value: 64.04
97
- name: acc_norm (0-shot)
98
- - task:
99
- type: text-generation
100
- dataset:
101
- type: allenai/openbookqa
102
- name: OpenBookQA
103
- config: main
104
- split: test
105
- metrics:
106
- - type: acc_norm
107
- value: 32.4
108
- name: acc_norm (0-shot)
109
- - task:
110
- type: text-generation
111
- dataset:
112
- type: allenai/sciq
113
- name: SciQ
114
- split: test
115
- metrics:
116
- - type: acc_norm
117
- value: 63.9
118
- name: acc_norm (0-shot)
119
- - task:
120
- type: text-generation
121
- dataset:
122
- type: allenai/winogrande
123
- name: WinoGrande
124
- config: winogrande_xl
125
- split: validation
126
- metrics:
127
- - type: acc
128
- value: 49.41
129
- name: acc (0-shot)
130
- - task:
131
- type: text-generation
132
- dataset:
133
- type: google/boolq
134
- name: BoolQ
135
- split: validation
136
- metrics:
137
- - type: acc
138
- value: 58.72
139
- name: acc (0-shot)
140
- - task:
141
- type: text-generation
142
- dataset:
143
- type: EleutherAI/lambada_openai
144
- name: LAMBADA (OpenAI)
145
- split: test
146
- metrics:
147
- - type: acc
148
- value: 22.88
149
- name: acc (0-shot)
150
- - task:
151
- type: text-generation
152
- dataset:
153
- type: cais/mmlu
154
- name: MMLU
155
- config: all
156
- split: test
157
- metrics:
158
- - type: acc
159
- value: 24.82
160
- name: acc (0-shot)
161
- - task:
162
- type: text-generation
163
- dataset:
164
- type: tau/commonsense_qa
165
- name: CommonsenseQA
166
- split: validation
167
- metrics:
168
- - type: acc
169
- value: 21.7
170
- name: acc (0-shot)
171
- - task:
172
- type: text-generation
173
- dataset:
174
- type: allenai/social_i_qa
175
- name: Social IQa
176
- split: validation
177
- metrics:
178
- - type: acc
179
- value: 37.67
180
- name: acc (0-shot)
181
- ---
182
-
183
- # WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
184
-
185
-
186
- | Benchmark (0-shot, full test sets) | **This model** | Base before fine-tuning | Change |
187
- |---|--:|--:|--:|
188
- | ARC-Easy (acc_norm) | 49.71 | 49.66 | +0.04 |
189
- |   *(raw acc)* | *55.47* | *55.81* | |
190
- | ARC-Challenge (acc_norm) | 30.29 | 29.44 | +0.85 |
191
- |   *(raw acc)* | *26.96* | *26.71* | |
192
- | HellaSwag (acc_norm) | 30.10 | 30.13 | -0.03 |
193
- |   *(raw acc)* | *28.18* | *28.23* | |
194
- | PIQA (acc_norm) | 64.04 | 63.22 | +0.82 |
195
- |   *(raw acc)* | *63.66* | *63.76* | |
196
- | OpenBookQA (acc_norm) | 32.40 | 32.80 | -0.40 |
197
- |   *(raw acc)* | *20.60* | *21.20* | |
198
- | SciQ (acc_norm) | 63.90 | 63.70 | +0.20 |
199
- |   *(raw acc)* | *72.90* | *72.90* | |
200
- | WinoGrande (acc) | 49.41 | 49.33 | +0.08 |
201
- | BoolQ (acc) | 58.72 | 58.26 | +0.46 |
202
- | LAMBADA (OpenAI) (acc) | 22.88 | 21.00 | +1.88 |
203
- | MMLU (acc) | 24.82 | 23.42 | +1.40 |
204
- | CommonsenseQA (acc) | 21.70 | 20.15 | +1.56 |
205
- | Social IQa (acc) | 37.67 | 38.08 | -0.41 |
206
- | ArithMark-3 (acc_norm) | 43.90 | 52.90 | -9.00 |
207
- |   *held-out arithmetic (our probe: skills ArithMark-3 doesn't test)* | *40.94* | *40.80* | *+0.14* |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+
5
+ ⸻
6
+
7
  language:
8
+
9
+ * en
10
+ license: other
11
+ library_name: transformers
12
+ pipeline_tag: text-generation
13
+ tags:
14
+ * moe
15
+ * mixture-of-experts
16
+ * coding
17
+ * code-generation
18
+ * code-instruct
19
+ * programming
20
+ * instruction-following
21
+ * technical-reasoning
22
+ * small-language-model
23
+ * sparse-model
24
+ * withinusai
25
+
26
+ ⸻
27
+
28
+ WIUAI Flash MoE Coder Instruct 53M-A9M
29
+
30
+ A Compact Sparse Mixture-of-Experts Model for Coding and Instruction Following
31
+
32
+ Developed by WithIn Us AI
33
+
34
+ WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
35
+
36
+ ⸻
37
+
38
+ 1. Overview
39
+
40
+ WIUAI Flash MoE Coder Instruct 53M-A9M is a compact language model designed around a Mixture-of-Experts (MoE) architecture, with a focus on programming, code generation, and instruction-driven technical tasks.
41
+
42
+ The project explores sparse expert computation in a small parameter budget, aiming to make specialized computational pathways available without requiring every expert to participate in every forward pass.
43
+
44
+ The model’s naming identifies two important design targets:
45
+
46
+ Specification Value
47
+ Model family WIUAI Flash
48
+ Architecture Mixture-of-Experts
49
+ Total parameters 53M
50
+ Target active parameters 9M
51
+ Primary specialization Coding
52
+ Model type Instruction-tuned language model
53
+ Developer WithIn Us AI
54
+
55
+ The active parameter count should be confirmed against the actual expert-routing implementation.
56
+
57
+ 2. Design Philosophy
58
+
59
+ The central design objective is to explore how a relatively small model can use specialized computational pathways to handle different categories of programming and instruction-following tasks.
60
+
61
+ Rather than treating every token as requiring the same complete parameter pathway, MoE architectures use a routing mechanism to select specialized experts.
62
+
63
+ This design provides a foundation for investigating:
64
+
65
+ * Sparse computation.
66
+ * Specialized expert pathways.
67
+ * Parameter-efficient inference.
68
+ * Coding-focused language modeling.
69
+ * Instruction-conditioned generation.
70
+ * Expert specialization.
71
+ * Computational efficiency.
72
+
73
+ The objective is to investigate the relationship between model capacity, expert specialization, and practical coding performance.
74
+
75
+ 3. Intended Applications
76
+
77
+ WIUAI Flash MoE Coder Instruct is intended for experimentation and development in the following areas.
78
+
79
+ Programming and Code Generation
80
+
81
+ * Python programming.
82
+ * Software development assistance.
83
+ * Function and class generation.
84
+ * Algorithm implementation.
85
+ * Code completion.
86
+ * Programming explanations.
87
+
88
+ Code Understanding
89
+
90
+ * Code interpretation.
91
+ * Understanding programming structures.
92
+ * Explaining existing implementations.
93
+ * Identifying potential programming errors.
94
+ * Analyzing logical operations.
95
+
96
+ Debugging and Problem Solving
97
+
98
+ * Identifying programming mistakes.
99
+ * Suggesting potential corrections.
100
+ * Explaining error messages.
101
+ * Reviewing code logic.
102
+ * Developing alternative implementations.
103
+
104
+ Instruction Following
105
+
106
+ * Structured programming instructions.
107
+ * Technical question answering.
108
+ * Step-by-step implementation requests.
109
+ * Code-oriented conversational tasks.
110
+
111
+ AI Agent Integration
112
+
113
+ Potential applications include:
114
+
115
+ * Lightweight coding agents.
116
+ * Multi-agent programming systems.
117
+ * Specialized coding components in AI swarms.
118
+ * Tool-assisted programming workflows.
119
+ * Local experimentation with compact coding models.
120
+
121
+ These are intended applications, not claims of independently verified performance.
122
+
123
+ 4. Mixture-of-Experts Architecture
124
+
125
+ The model is identified as a sparse Mixture-of-Experts system.
126
+
127
+ An MoE architecture typically consists of:
128
+
129
+ 1. A shared model backbone.
130
+ 2. Multiple specialized expert networks.
131
+ 3. A routing mechanism.
132
+ 4. Expert selection and activation.
133
+ 5. Integration of expert outputs.
134
+
135
+ The router determines which experts participate in processing a given input.
136
+
137
+ This allows an MoE model to maintain a larger total parameter count than its per-token active parameter count.
138
+
139
+ Parameter Design
140
+
141
+ Parameter category Target
142
+ Total model parameters 53 million
143
+ Active parameters 9 million
144
+ Inactive parameters per routing event Depends on routing
145
+
146
+ The exact number of experts, experts selected per token, routing algorithm, and expert dimensions must be established from the released model configuration.
147
+
148
+ 5. Model Capabilities
149
+
150
+ The model is designed for experimentation involving:
151
+
152
+ * Natural-language-to-code generation.
153
+ * Code-oriented instruction following.
154
+ * Programming explanations.
155
+ * Technical problem solving.
156
+ * Code transformation.
157
+ * Algorithm development.
158
+ * Structured text generation.
159
+
160
+ Actual capability depends on the training data, training procedure, model architecture, and evaluation results.
161
+
162
+ 6. Usage
163
+
164
+ The repository should be used with the model’s supported architecture and tokenizer implementation.
165
+
166
+ For a Transformers-compatible implementation, the following is a starting point:
167
+
168
+ import torch
169
+ from transformers import AutoTokenizer, AutoModelForCausalLM
170
+ MODEL_ID = (
171
+ "WithinUsAI/"
172
+ "WIUAI.Flash.MoE.Coder.Instruct.53m.a9m"
173
+ )
174
+ tokenizer = AutoTokenizer.from_pretrained(
175
+ MODEL_ID,
176
+ trust_remote_code=True
177
+ )
178
+ model = AutoModelForCausalLM.from_pretrained(
179
+ MODEL_ID,
180
+ torch_dtype="auto",
181
+ device_map="auto",
182
+ trust_remote_code=True
183
+ )
184
+ prompt = """Write a Python function that checks
185
+ whether a number is prime."""
186
+ inputs = tokenizer(
187
+ prompt,
188
+ return_tensors="pt"
189
+ ).to(model.device)
190
+ with torch.inference_mode():
191
+ outputs = model.generate(
192
+ **inputs,
193
+ max_new_tokens=256,
194
+ do_sample=True,
195
+ temperature=0.7,
196
+ top_p=0.9
197
+ )
198
+ print(tokenizer.decode(
199
+ outputs[0],
200
+ skip_special_tokens=True
201
+ ))
202
+
203
+ This example assumes the repository implements a compatible Transformers causal language model. The actual loading procedure and generation configuration must match its implementation.
204
+
205
+ 7. Training and Data Provenance
206
+
207
+ The training methodology and data provenance should be documented using verifiable project records.
208
+
209
+ Important information includes:
210
+
211
+ * Original model initialization.
212
+ * Training architecture.
213
+ * Tokenizer and vocabulary.
214
+ * Training datasets and dataset versions.
215
+ * Data preprocessing.
216
+ * Training objectives.
217
+ * Optimizer and learning-rate schedule.
218
+ * Training hardware.
219
+ * Training duration.
220
+ * Checkpoint and release history.
221
+
222
+ No specific base model, dataset, training duration, or training benchmark is asserted here without supporting records.
223
+
224
+ 8. Evaluation
225
+
226
+ Model performance should be established through reproducible testing.
227
+
228
+ Recommended evaluation categories:
229
+
230
+ Evaluation Purpose
231
+ HumanEval Python code generation
232
+ MBPP Basic programming problems
233
+ BigCodeBench Practical coding tasks
234
+ HumanEval+ More rigorous code correctness
235
+ Instruction-following tests Prompt adherence
236
+ Code execution tests Functional correctness
237
+ Routing analysis Expert utilization
238
+ Parameter profiling Active computation
239
+
240
+ Evaluation results should include the benchmark version, test configuration, sampling parameters, and execution environment.
241
+
242
+ No benchmark scores are claimed in this model card.
243
+
244
+ 9. Limitations
245
+
246
+ WIUAI Flash MoE Coder Instruct is a compact experimental model.
247
+
248
+ Users should consider:
249
+
250
+ * It may generate syntactically incorrect code.
251
+ * Generated implementations may contain logical errors.
252
+ * It may struggle with complex software engineering tasks.
253
+ * Its knowledge is limited by its training data.
254
+ * It may produce incorrect technical explanations.
255
+ * MoE architecture alone does not establish superior performance.
256
+ * Generated code should be tested before deployment.
257
+
258
+ This model should not be considered a substitute for software testing, security review, or human verification.
259
+
260
+ 10. Responsible Use
261
+
262
+ The model is intended for research, education, software development experimentation, and AI engineering.
263
+
264
+ Users should independently review generated code for:
265
+
266
+ * Security vulnerabilities.
267
+ * Dependency risks.
268
+ * Licensing compatibility.
269
+ * Data privacy.
270
+ * Correctness and reliability.
271
+
272
+ 11. About WithIn Us AI
273
+
274
+ WIUAI Flash MoE Coder Instruct is part of the WithIn Us AI model development ecosystem.
275
+
276
+ The broader research direction explores compact language models, specialized architectures, efficient computation, autonomous agents, coding systems, and multi-agent intelligence.
277
+
278
+ The objective is to investigate alternative approaches to building capable AI systems within constrained computational budgets.
279
+
280
+ Developer: WithIn Us AI
281
+
282
+ Organization: https://huggingface.co/WithinUsAI
283
+
284
+ Model: https://huggingface.co/WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
285
+
286
+ ⸻
287
+
288
+ 12. Citation
289
+
290
+ If you use or reference this model, please cite:
291
+
292
+ @misc{wiuai_flash_moe_coder_instruct,
293
+ title={WIUAI Flash MoE Coder Instruct 53M-A9M},
294
+ author={WithIn Us AI},
295
+ year={2026},
296
+ publisher={Hugging Face},
297
+ url={https://huggingface.co/WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m}
298
+ }
299
+
300
+ ⸻
301
+
302
+ WIUAI Flash MoE Coder Instruct 53M-A9M
303
+
304
+ WithIn Us AI — Building Intelligence Through Architecture, Research, and Innovation.