--- 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: [] ---
MYTH Fusion Diagram
# ๐Ÿงฌ 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
Benchmark Comparison
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
Capability Radar
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
Size vs Performance
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
SLERP Fusion
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 ---
"Three forces, one entity โ€” Myth"