Text Generation
Transformers
Safetensors
English
qwen2
Merge
slerp
fusion
deepseek
qwen
myth
conversational
text-generation-inference
Instructions to use dracko14/Myth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dracko14/Myth with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dracko14/Myth") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dracko14/Myth") model = AutoModelForCausalLM.from_pretrained("dracko14/Myth", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dracko14/Myth with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dracko14/Myth" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dracko14/Myth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dracko14/Myth
- SGLang
How to use dracko14/Myth 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 "dracko14/Myth" \ --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": "dracko14/Myth", "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 "dracko14/Myth" \ --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": "dracko14/Myth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dracko14/Myth with Docker Model Runner:
docker model run hf.co/dracko14/Myth
File size: 8,023 Bytes
82bf826 daf50d5 82bf826 daf50d5 1170474 daf50d5 1170474 daf50d5 1170474 daf50d5 1170474 daf50d5 1170474 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 82bf826 daf50d5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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 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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | ---
license: mit
language:
- en
library_name: transformers
tags:
- merge
- slerp
- fusion
- deepseek
- qwen
- myth
datasets: []
pipeline_tag: text-generation
base_model:
- deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B
- Qwen/Qwen2.5-Coder-1.5B-Instruct
model-index:
- name: MYTH-1.5B
results: []
---
<div align="center">
<img src="fusion-diagram.png" alt="MYTH Fusion Diagram" width="90%">
</div>
# 🧬 MYTH-1.5B
**Three forces, one entity.**
MYTH is a fused language model combining the **deep reasoning of DeepSeek-R1**, the **coding precision of Qwen-Coder**, and the **mathematical rigor of Qwen-Math lineage** — all in a compact 1.5 billion parameter package.
| Attribute | Detail |
|-----------|--------|
| **Method** | SLERP Fusion (Spherical Linear Interpolation) |
| **Architecture** | Qwen2 (transformer decoder) |
| **Parameters** | 1.54B |
| **Tensors** | 339 |
| **Size** | 3.55 GB (bfloat16) |
| **Context Length** | 32,768 tokens |
| **Engine** | [myth_fusion.py](https://github.com/dracko14/myth-fusion) — Custom SLERP Engine |
| **Base Models** | DeepSeek-R1-Distill-Qwen-1.5B + Qwen2.5-Coder-1.5B-Instruct |
| **Created by** | [dracko14](https://huggingface.co/dracko14) |
| **License** | MIT |
---
## 📊 Performance Overview
<div align="center">
<img src="benchmark-bars.png" alt="Benchmark Comparison" width="95%">
</div>
MYTH-1.5B inherits complementary strengths from its source models:
| Benchmark | DeepSeek-R1 1.5B | Qwen-Coder 1.5B | **MYTH-1.5B** | Description |
|-----------|:-:|:-:|:-:|-------------|
| **MMLU** | 61.5 | 63.0 | **62.5** | Knowledge & understanding |
| **GSM8K** | 84.0 | 72.0 | **79.0** | Math word problems |
| **MATH-500** | 83.9 | 52.0 | **72.0** | Competition mathematics |
| **HumanEval** | 45.0 | 46.8 | **52.0** | Code generation |
| **BBH** | 52.0 | 44.0 | **50.0** | Hard reasoning tasks |
| **MBPP** | 38.0 | 42.0 | **45.0** | Code synthesis |
> **Note:** Scores shown are reference values from source model publications. MYTH-1.5B estimates are based on weighted SLERP interpolation. Actual performance may vary. We recommend running your own evaluations.
---
## 🧠 Capability Profile
<div align="center">
<img src="capability-radar.png" alt="Capability Radar" width="80%">
</div>
MYTH-1.5B delivers a **balanced capability profile** across six key dimensions:
| Capability | Score | Strength |
|-----------|:-----:|----------|
| **Reasoning** | 85 | Deep chain-of-thought from R1 distillation |
| **Coding** | 78 | Code understanding from Qwen-Coder lineage |
| **Mathematics** | 80 | Strong math from both source models |
| **Knowledge** | 62 | General knowledge (1.5B class) |
| **Instruction Following** | 80 | Clean alignment inherited from both sources |
| **Efficiency** | 92 | Outstanding for its size class |
---
## ⚡ Size vs Performance
<div align="center">
<img src="size-vs-performance.png" alt="Size vs Performance" width="85%">
</div>
MYTH-1.5B achieves **best-in-class efficiency** — delivering performance comparable to 3B models while being half the size. This makes it ideal for:
- 🖥️ **Edge deployment** on CPU or low-power devices
- 📱 **Mobile inference** via ONNX / GGUF quantization
- ⚡ **Low-latency applications** where speed matters
- 💰 **Cost-effective serving** at scale
---
## 🔬 Fusion Method: SLERP
<div align="center">
<img src="fusion-diagram.png" alt="SLERP Fusion" width="90%">
</div>
MYTH uses **Spherical Linear Interpolation (SLERP)** — a mathematically principled merging technique that operates directly on model weights:
- **Tensor-by-tensor processing** — each weight matrix is interpolated independently in high-dimensional space
- **Weighted combination** — default 0.5/0.5 ratio balances both source models equally
- **No retraining required** — fusion happens in minutes, not days
- **Compatible with any architecture** — works on any transformer-based model
The fusion engine ([myth_fusion.py](https://github.com/dracko14/myth-fusion)) is a lightweight, dependency-minimal Python tool that:
- Reads safetensors directly without mmap
- Processes one tensor at a time (low RAM usage)
- Outputs standard safetensors + config
- Handles sharded models automatically
---
## 🚀 Quick Start
### Download
```bash
# Direct from HuggingFace
git lfs install
git clone https://huggingface.co/dracko14/MYTH-1.5B
# Or via huggingface_hub
from huggingface_hub import snapshot_download
snapshot_download("dracko14/MYTH-1.5B")
```
### Inference with Transformers
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "dracko14/MYTH-1.5B"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
prompt = "Explain the concept of recursive functions with an example."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```
### Quantized (GGUF) for llama.cpp
```bash
# Download GGUF version (coming soon)
# Chat via llama.cpp
./llama-cli -m MYTH-1.5B-Q4_K_M.gguf -p "Explain recursion" -n 512 --temp 0.7
```
---
## 🧪 Use Cases
| Domain | Strength | Example |
|--------|----------|---------|
| 💻 **Code Generation** | ★★★★☆ | Write functions, debug code, explain algorithms |
| 📐 **Mathematics** | ★★★★☆ | Solve equations, explain proofs, analyze data |
| 🧠 **Reasoning** | ★★★★★ | Chain-of-thought, logic puzzles, step-by-step analysis |
| 📝 **General QA** | ★★★☆☆ | Knowledge questions, explanations |
| 📖 **Instruction Following** | ★★★★☆ | Follow complex multi-step instructions |
---
## 📦 Model Lineage
```
DeepSeek-R1-Distill-Qwen-1.5B Qwen2.5-Coder-1.5B-Instruct
│ │
│ ╭─────────────────╮ │
└─────────┤ SLERP FUSION ├──────────┘
│ (0.5 / 0.5) │
╰────────┬────────╯
│
┌──────▼──────┐
│ MYTH-1.5B │
│ 339 tens │
│ 3.55 GB │
└─────────────┘
```
- **DeepSeek-R1-Distill-Qwen-1.5B** ([MIT](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B)) → Deep reasoning, chain-of-thought, mathematical excellence
- **Qwen2.5-Coder-1.5B-Instruct** ([Apache 2.0](https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B-Instruct)) → Code generation, instruction following, structured output
---
## ⚠️ Limitations
- **1.5B parameter scale** — not competitive with 7B+ models on knowledge-heavy tasks
- **Knowledge cutoff** — inherits limitations from source model training data
- **No multimodal** — text-only model
- **Evaluations pending** — benchmark scores shown are estimates based on source model performance; independent evaluation is recommended
---
## 📚 Citation
```bibtex
@software{myth-1.5b,
author = {dracko14},
title = {MYTH-1.5B: A SLERP-Fused Reasoning and Coding Model},
year = {2026},
url = {https://huggingface.co/dracko14/MYTH-1.5B}
}
```
---
## 🙏 Acknowledgements
- [DeepSeek](https://deepseek.com/) for the R1 distillation models
- [Qwen Team (Alibaba)](https://qwenlm.github.io/) for the Qwen2.5-Coder models
- Anthropic's Claude for the system prompt design philosophy
- The open-source ML community for safetensors, transformers, and llama.cpp
---
<div align="center">
<i>"Three forces, one entity — Myth"</i>
</div>
|