Text Generation
Safetensors
GGUF
English
code
deepseek2
Mixture of Experts
mla
slm
open-slm-leaderboard
edge-ai
conversational
Instructions to use miceworks/Mark-SLM-3M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use miceworks/Mark-SLM-3M with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf miceworks/Mark-SLM-3M:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-SLM-3M:IQ4_NL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf miceworks/Mark-SLM-3M:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-SLM-3M:IQ4_NL
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf miceworks/Mark-SLM-3M:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama cli -hf miceworks/Mark-SLM-3M:IQ4_NL
Use Docker
docker model run hf.co/miceworks/Mark-SLM-3M:IQ4_NL
- Llama new
- LM Studio
- Jan
- vLLM
How to use miceworks/Mark-SLM-3M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "miceworks/Mark-SLM-3M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "miceworks/Mark-SLM-3M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/miceworks/Mark-SLM-3M:IQ4_NL
- Ollama
How to use miceworks/Mark-SLM-3M with Ollama:
ollama run hf.co/miceworks/Mark-SLM-3M:IQ4_NL
- Unsloth Desktop
- Docker Model Runner
How to use miceworks/Mark-SLM-3M with Docker Model Runner:
docker model run hf.co/miceworks/Mark-SLM-3M:IQ4_NL
- Lemonade
How to use miceworks/Mark-SLM-3M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull miceworks/Mark-SLM-3M:IQ4_NL
Run and chat with the model
lemonade run user.Mark-SLM-3M-IQ4_NL
List all available models
lemonade list
- Atomic Chat
Mark-SLM-3M
Mark-SLM-3M is an ultra-compact language model engineered under the 3,000,000 parameter ceiling for the Open SLM Leaderboard. It integrates Multi-Head Latent Attention (H-MLA) and Parallel Branching Mixture of Experts (PB-MoE), trained 100% from scratch in full compliance with Rules 01 and 02.
Architectural Specification
- Total Physical Parameters: 2,946,008 (strict ceiling below 3,000,000 parameters)
- Architecture Type: deepseek2 (MLA + MoE)
- Hidden Dimension: 192
- Layers: 8
- Attention Heads: 6 (Head Dimension: 32)
- Query LoRA Rank (q_lora_rank): 96
- Key/Value LoRA Rank (kv_lora_rank): 64
- Attention Mechanism: Multi-Head Latent Attention (H-MLA)
- Feed-Forward / Mixture-of-Experts: Parallel Branching MoE (PB-MoE)
- Routed Experts (n_routed_experts): 4
- Active Experts per Token (num_experts_per_tok): 1
- Shared Experts (n_shared_experts): 1
- MoE Intermediate Size: 64 (aligned to block size 32)
- Vocabulary Size: 4,096 BPE tokens (with dedicated digit tokens)
- Context Length: 2,048 tokens
- Tied Word Embeddings: True (lm_head.weight tied to model.embed_tokens.weight)
Storage and Container Footprint
- Unquantized PyTorch Weights (model.safetensors): ~11.80 MB
- GGUF Container (IQ4_NL): ~3.12 MB
- Target Platforms: Embedded Microcontrollers, Edge Devices, Ollama, LM Studio, llama.cpp, PyTorch
Official Benchmark Results (Open SLM Leaderboard)
Evaluated exclusively on official validation and test splits with zero test set contamination:
| Benchmark | Metric | Chance Baseline | Raw Score | Normalized Score (0 to 100) |
|---|---|---|---|---|
| HellaSwag | acc_norm | 25.0% | 27.70% | 3.60 |
| ARC-Easy | acc_norm | 25.0% | 27.60% | 3.47 |
| ARC-Challenge | acc_norm | 25.0% | 28.43% | 4.57 |
| PIQA | acc_norm | 50.0% | 52.60% | 5.20 |
| ArithMark-3.0 Official | acc | 25.0% | 31.40% | 8.53 |
Summary Metrics
- Category: Sub-3M (< 3,000,000 parameters)
- Physical Parameters: 2,946,008 (< 3,000,000 ceiling)
- ARC Average Normalized: 4.02
- Best Intelligence Index: 4.86 (Certified Legitimate, Rule 02 Compliant)
AxiomicLabs Intelligence Index Formula
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "miceworks/Mark-SLM-3M"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
inputs = tokenizer("Sam had 12 marbles and found 8 more. Afterward, Sam had", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=32)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
- Downloads last month
- 79