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
|
@@ -21,7 +21,6 @@ tags:
|
|
| 21 |
- reasoning
|
| 22 |
- conversational
|
| 23 |
- chat
|
| 24 |
-
- gguf
|
| 25 |
- transformers
|
| 26 |
datasets:
|
| 27 |
- HuggingFaceFW/fineweb-edu
|
|
@@ -49,7 +48,7 @@ datasets:
|
|
| 49 |
- teknium/OpenHermes-2.5
|
| 50 |
- NousResearch/hermes-function-calling-v1
|
| 51 |
---
|
| 52 |
-
WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
|
| 53 |
|
| 54 |
A 53.4M Parameter Hybrid Mixture-of-Experts Language Model with 9.3M Active Parameters
|
| 55 |
|
|
@@ -384,17 +383,7 @@ print(
|
|
| 384 |
|
| 385 |
The example assumes the repository’s tokenizer provides a compatible chat template. For GPU deployment, move the model and inputs to the appropriate device.
|
| 386 |
|
| 387 |
-
9.
|
| 388 |
-
|
| 389 |
-
The model is also associated with the GGUF ecosystem.
|
| 390 |
-
|
| 391 |
-
GGUF support depends on the availability of a compatible conversion and inference implementation for the LFM2-MoE hybrid architecture.
|
| 392 |
-
|
| 393 |
-
A GGUF file alone does not establish compatibility with every llama.cpp version or other inference runtime.
|
| 394 |
-
|
| 395 |
-
Users should verify architecture support before attempting conversion or deployment.
|
| 396 |
-
|
| 397 |
-
10. Future Research Directions
|
| 398 |
|
| 399 |
WIUAI Flash represents a compact experimental architecture intended to inform further development within the WithIn Us AI ecosystem.
|
| 400 |
|
|
|
|
| 21 |
- reasoning
|
| 22 |
- conversational
|
| 23 |
- chat
|
|
|
|
| 24 |
- transformers
|
| 25 |
datasets:
|
| 26 |
- HuggingFaceFW/fineweb-edu
|
|
|
|
| 48 |
- teknium/OpenHermes-2.5
|
| 49 |
- NousResearch/hermes-function-calling-v1
|
| 50 |
---
|
| 51 |
+
* WIUAI.Flash.MoE.Coder.Instruct.53m.a9m
|
| 52 |
|
| 53 |
A 53.4M Parameter Hybrid Mixture-of-Experts Language Model with 9.3M Active Parameters
|
| 54 |
|
|
|
|
| 383 |
|
| 384 |
The example assumes the repository’s tokenizer provides a compatible chat template. For GPU deployment, move the model and inputs to the appropriate device.
|
| 385 |
|
| 386 |
+
9. Future Research Directions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 387 |
|
| 388 |
WIUAI Flash represents a compact experimental architecture intended to inform further development within the WithIn Us AI ecosystem.
|
| 389 |
|