Text Generation
GGUF
Safetensors
English
deepseek2
llama.cpp
mixture-of-experts
multi-head-latent-attention
iq4_nl
mark-ai
systems-engineering
custom_code
conversational
Instructions to use miceworks/Mark-SLM-V3-150M 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-V3-150M 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-V3-150M:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-SLM-V3-150M: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-V3-150M:IQ4_NL # Run inference directly in the terminal: llama cli -hf miceworks/Mark-SLM-V3-150M: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-V3-150M:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama cli -hf miceworks/Mark-SLM-V3-150M:IQ4_NL
Use Docker
docker model run hf.co/miceworks/Mark-SLM-V3-150M:IQ4_NL
- Llama new
- LM Studio
- Jan
- vLLM
How to use miceworks/Mark-SLM-V3-150M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "miceworks/Mark-SLM-V3-150M" # 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-V3-150M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/miceworks/Mark-SLM-V3-150M:IQ4_NL
- Ollama
How to use miceworks/Mark-SLM-V3-150M with Ollama:
ollama run hf.co/miceworks/Mark-SLM-V3-150M:IQ4_NL
- Unsloth Desktop
- Docker Model Runner
How to use miceworks/Mark-SLM-V3-150M with Docker Model Runner:
docker model run hf.co/miceworks/Mark-SLM-V3-150M:IQ4_NL
- Lemonade
How to use miceworks/Mark-SLM-V3-150M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull miceworks/Mark-SLM-V3-150M:IQ4_NL
Run and chat with the model
lemonade run user.Mark-SLM-V3-150M-IQ4_NL
List all available models
lemonade list
- Atomic Chat
Sync MarkV3 HF AutoModel loader for 12h trained weights (modeling_mark_v3.py)
Browse files- modeling_mark_v3.py +1 -1
modeling_mark_v3.py
CHANGED
|
@@ -48,7 +48,7 @@ def apply_rotary_pos_emb(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor)
|
|
| 48 |
seqlen = x.shape[2]
|
| 49 |
cos = cos[:seqlen].unsqueeze(0).unsqueeze(1)
|
| 50 |
sin = sin[:seqlen].unsqueeze(0).unsqueeze(1)
|
| 51 |
-
return (x * cos) + (rotate_half(x) * sin)
|
| 52 |
|
| 53 |
class MarkV3MLA(nn.Module):
|
| 54 |
def __init__(self, config: MarkV3Config, layer_idx: int):
|
|
|
|
| 48 |
seqlen = x.shape[2]
|
| 49 |
cos = cos[:seqlen].unsqueeze(0).unsqueeze(1)
|
| 50 |
sin = sin[:seqlen].unsqueeze(0).unsqueeze(1)
|
| 51 |
+
return ((x * cos) + (rotate_half(x) * sin)).to(x.dtype)
|
| 52 |
|
| 53 |
class MarkV3MLA(nn.Module):
|
| 54 |
def __init__(self, config: MarkV3Config, layer_idx: int):
|