Text Generation
Transformers
Safetensors
English
lfm2_moe
wiuai
from-scratch
small-language-model
mixture-of-experts
Mixture of Experts
hybrid-architecture
short-convolution
attention
sparse-computation
coding
code-generation
instruction-following
tool-calling
reasoning
conversational
chat
Instructions to use WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m") model = AutoModelForCausalLM.from_pretrained("WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
- SGLang
How to use WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m 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 "WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m" \ --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": "WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m", "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 "WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m" \ --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": "WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m with Docker Model Runner:
docker model run hf.co/WithinUsAI/WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,177 +1,177 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
language:
|
| 4 |
-
|
| 5 |
-
library_name: transformers
|
| 6 |
-
pipeline_tag: text-generation
|
| 7 |
-
tags:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
datasets:
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
model-index:
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
---
|
| 173 |
|
| 174 |
-
# WIUAI.Flash.MoE.Coder.
|
| 175 |
|
| 176 |
|
| 177 |
| Benchmark (0-shot, full test sets) | **This model** | Base before fine-tuning | Change |
|
|
@@ -195,5 +195,4 @@ model-index:
|
|
| 195 |
| CommonsenseQA (acc) | 21.70 | 20.15 | +1.56 |
|
| 196 |
| Social IQa (acc) | 37.67 | 38.08 | -0.41 |
|
| 197 |
| ArithMark-3 (acc_norm) | 43.90 | 52.90 | -9.00 |
|
| 198 |
-
| *held-out arithmetic (our probe: skills ArithMark-3 doesn't test)* | *40.94* | *40.80* | *+0.14* |
|
| 199 |
-
|
|
|
|
| 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 |
+
model-index:
|
| 45 |
+
- name: WIUAI.Flash.MoE.Coder.instruct.53m
|
| 46 |
+
results:
|
| 47 |
+
- task:
|
| 48 |
+
type: text-generation
|
| 49 |
+
dataset:
|
| 50 |
+
type: allenai/ai2_arc
|
| 51 |
+
name: ARC-Easy
|
| 52 |
+
config: ARC-Easy
|
| 53 |
+
split: test
|
| 54 |
+
metrics:
|
| 55 |
+
- type: acc_norm
|
| 56 |
+
value: 49.71
|
| 57 |
+
name: acc_norm (0-shot)
|
| 58 |
+
- task:
|
| 59 |
+
type: text-generation
|
| 60 |
+
dataset:
|
| 61 |
+
type: allenai/ai2_arc
|
| 62 |
+
name: ARC-Challenge
|
| 63 |
+
config: ARC-Challenge
|
| 64 |
+
split: test
|
| 65 |
+
metrics:
|
| 66 |
+
- type: acc_norm
|
| 67 |
+
value: 30.29
|
| 68 |
+
name: acc_norm (0-shot)
|
| 69 |
+
- task:
|
| 70 |
+
type: text-generation
|
| 71 |
+
dataset:
|
| 72 |
+
type: Rowan/hellaswag
|
| 73 |
+
name: HellaSwag
|
| 74 |
+
split: validation
|
| 75 |
+
metrics:
|
| 76 |
+
- type: acc_norm
|
| 77 |
+
value: 30.1
|
| 78 |
+
name: acc_norm (0-shot)
|
| 79 |
+
- task:
|
| 80 |
+
type: text-generation
|
| 81 |
+
dataset:
|
| 82 |
+
type: ybisk/piqa
|
| 83 |
+
name: PIQA
|
| 84 |
+
split: validation
|
| 85 |
+
metrics:
|
| 86 |
+
- type: acc_norm
|
| 87 |
+
value: 64.04
|
| 88 |
+
name: acc_norm (0-shot)
|
| 89 |
+
- task:
|
| 90 |
+
type: text-generation
|
| 91 |
+
dataset:
|
| 92 |
+
type: allenai/openbookqa
|
| 93 |
+
name: OpenBookQA
|
| 94 |
+
config: main
|
| 95 |
+
split: test
|
| 96 |
+
metrics:
|
| 97 |
+
- type: acc_norm
|
| 98 |
+
value: 32.4
|
| 99 |
+
name: acc_norm (0-shot)
|
| 100 |
+
- task:
|
| 101 |
+
type: text-generation
|
| 102 |
+
dataset:
|
| 103 |
+
type: allenai/sciq
|
| 104 |
+
name: SciQ
|
| 105 |
+
split: test
|
| 106 |
+
metrics:
|
| 107 |
+
- type: acc_norm
|
| 108 |
+
value: 63.9
|
| 109 |
+
name: acc_norm (0-shot)
|
| 110 |
+
- task:
|
| 111 |
+
type: text-generation
|
| 112 |
+
dataset:
|
| 113 |
+
type: allenai/winogrande
|
| 114 |
+
name: WinoGrande
|
| 115 |
+
config: winogrande_xl
|
| 116 |
+
split: validation
|
| 117 |
+
metrics:
|
| 118 |
+
- type: acc
|
| 119 |
+
value: 49.41
|
| 120 |
+
name: acc (0-shot)
|
| 121 |
+
- task:
|
| 122 |
+
type: text-generation
|
| 123 |
+
dataset:
|
| 124 |
+
type: google/boolq
|
| 125 |
+
name: BoolQ
|
| 126 |
+
split: validation
|
| 127 |
+
metrics:
|
| 128 |
+
- type: acc
|
| 129 |
+
value: 58.72
|
| 130 |
+
name: acc (0-shot)
|
| 131 |
+
- task:
|
| 132 |
+
type: text-generation
|
| 133 |
+
dataset:
|
| 134 |
+
type: EleutherAI/lambada_openai
|
| 135 |
+
name: LAMBADA (OpenAI)
|
| 136 |
+
split: test
|
| 137 |
+
metrics:
|
| 138 |
+
- type: acc
|
| 139 |
+
value: 22.88
|
| 140 |
+
name: acc (0-shot)
|
| 141 |
+
- task:
|
| 142 |
+
type: text-generation
|
| 143 |
+
dataset:
|
| 144 |
+
type: cais/mmlu
|
| 145 |
+
name: MMLU
|
| 146 |
+
config: all
|
| 147 |
+
split: test
|
| 148 |
+
metrics:
|
| 149 |
+
- type: acc
|
| 150 |
+
value: 24.82
|
| 151 |
+
name: acc (0-shot)
|
| 152 |
+
- task:
|
| 153 |
+
type: text-generation
|
| 154 |
+
dataset:
|
| 155 |
+
type: tau/commonsense_qa
|
| 156 |
+
name: CommonsenseQA
|
| 157 |
+
split: validation
|
| 158 |
+
metrics:
|
| 159 |
+
- type: acc
|
| 160 |
+
value: 21.7
|
| 161 |
+
name: acc (0-shot)
|
| 162 |
+
- task:
|
| 163 |
+
type: text-generation
|
| 164 |
+
dataset:
|
| 165 |
+
type: allenai/social_i_qa
|
| 166 |
+
name: Social IQa
|
| 167 |
+
split: validation
|
| 168 |
+
metrics:
|
| 169 |
+
- type: acc
|
| 170 |
+
value: 37.67
|
| 171 |
+
name: acc (0-shot)
|
| 172 |
+
---
|
| 173 |
|
| 174 |
+
# WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
|
| 175 |
|
| 176 |
|
| 177 |
| Benchmark (0-shot, full test sets) | **This model** | Base before fine-tuning | Change |
|
|
|
|
| 195 |
| CommonsenseQA (acc) | 21.70 | 20.15 | +1.56 |
|
| 196 |
| Social IQa (acc) | 37.67 | 38.08 | -0.41 |
|
| 197 |
| ArithMark-3 (acc_norm) | 43.90 | 52.90 | -9.00 |
|
| 198 |
+
| *held-out arithmetic (our probe: skills ArithMark-3 doesn't test)* | *40.94* | *40.80* | *+0.14* |
|
|
|