Text Generation
GGUF
Safetensors
English
mark_slm_v2
llama.cpp
deepseek2
mixture-of-experts
multi-head-latent-attention
iq4_nl
mark-ai
systems-engineering
custom_code
conversational
Instructions to use miceworks/Mark-SLM-V2-302M 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-V2-302M 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-V2-302M:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-SLM-V2-302M: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-V2-302M:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-SLM-V2-302M: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-V2-302M:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama cli -hf miceworks/Mark-SLM-V2-302M:IQ4_NL
Use Docker
docker model run hf.co/miceworks/Mark-SLM-V2-302M:IQ4_NL
- Llama new
- LM Studio
- Jan
- vLLM
How to use miceworks/Mark-SLM-V2-302M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "miceworks/Mark-SLM-V2-302M" # 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-V2-302M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/miceworks/Mark-SLM-V2-302M:IQ4_NL
- Ollama
How to use miceworks/Mark-SLM-V2-302M with Ollama:
ollama run hf.co/miceworks/Mark-SLM-V2-302M:IQ4_NL
- Unsloth Desktop
- Docker Model Runner
How to use miceworks/Mark-SLM-V2-302M with Docker Model Runner:
docker model run hf.co/miceworks/Mark-SLM-V2-302M:IQ4_NL
- Lemonade
How to use miceworks/Mark-SLM-V2-302M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull miceworks/Mark-SLM-V2-302M:IQ4_NL
Run and chat with the model
lemonade run user.Mark-SLM-V2-302M-IQ4_NL
List all available models
lemonade list
- Atomic Chat
Synchronize tokenizer_config.json with GGUF binary single source of truth
Browse files- tokenizer_config.json +27 -2
tokenizer_config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"vocab_size":
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
"special_tokens": {
|
|
@@ -58,5 +58,30 @@
|
|
| 58 |
"ar",
|
| 59 |
"hi",
|
| 60 |
"zh-Hans"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
]
|
| 62 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"vocab_size": 49152,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
"special_tokens": {
|
|
|
|
| 58 |
"ar",
|
| 59 |
"hi",
|
| 60 |
"zh-Hans"
|
| 61 |
+
],
|
| 62 |
+
"bos_token": "<|bos|>",
|
| 63 |
+
"eos_token": "<|eos|>",
|
| 64 |
+
"pad_token": "<|pad|>",
|
| 65 |
+
"pad_token_id": 0,
|
| 66 |
+
"model_max_length": 4096,
|
| 67 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}<|bos|>System: {{ message['content'] }}<|eos|>\n{% elif message['role'] == 'user' %}<|bos|>User: {{ message['content'] }}<|eos|>\n{% elif message['role'] == 'assistant' %}<|bos|>Assistant: {% if message['content'] %}{{ message['content'] }}<|eos|>\n{% endif %}{% endif %}{% endfor %}{% if add_generation_prompt %}<|bos|>Assistant:\n<think>\n{% endif %}",
|
| 68 |
+
"additional_special_tokens": [
|
| 69 |
+
"<think>",
|
| 70 |
+
"</think>",
|
| 71 |
+
"[RETRIEVE]",
|
| 72 |
+
"[/RETRIEVE]",
|
| 73 |
+
"[EVALUATE]",
|
| 74 |
+
"[ACCEPT]",
|
| 75 |
+
"[REJECT]",
|
| 76 |
+
"<|vision_start|>",
|
| 77 |
+
"<|vision_patch|>",
|
| 78 |
+
"<|vision_end|>",
|
| 79 |
+
"<|voice_stream|>",
|
| 80 |
+
"<|rag_context|>",
|
| 81 |
+
"<|/rag_context|>",
|
| 82 |
+
"<|mcp_call|>",
|
| 83 |
+
"<|mcp_response|>",
|
| 84 |
+
"<|citation|>",
|
| 85 |
+
"<|/citation|>"
|
| 86 |
]
|
| 87 |
+
}
|