Instructions to use MinimaLabs/min-spark-1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MinimaLabs/min-spark-1.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MinimaLabs/min-spark-1.5", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MinimaLabs/min-spark-1.5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MinimaLabs/min-spark-1.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MinimaLabs/min-spark-1.5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MinimaLabs/min-spark-1.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MinimaLabs/min-spark-1.5
- SGLang
How to use MinimaLabs/min-spark-1.5 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 "MinimaLabs/min-spark-1.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MinimaLabs/min-spark-1.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "MinimaLabs/min-spark-1.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MinimaLabs/min-spark-1.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MinimaLabs/min-spark-1.5 with Docker Model Runner:
docker model run hf.co/MinimaLabs/min-spark-1.5
File size: 12,623 Bytes
d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e 7f14d89 d1c0ee2 956e29e 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 7f14d89 d1c0ee2 956e29e d1c0ee2 7f14d89 956e29e d1c0ee2 956e29e d1c0ee2 7f14d89 d1c0ee2 956e29e d1c0ee2 7f14d89 d1c0ee2 956e29e d1c0ee2 7f14d89 d1c0ee2 956e29e d1c0ee2 956e29e d1c0ee2 7f14d89 956e29e d1c0ee2 | 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 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="540pt" height="302.4pt" viewBox="0 0 540 302.4" xmlns="http://www.w3.org/2000/svg" version="1.1">
<metadata>
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:format>image/svg+xml</dc:format>
<dc:creator>
<cc:Agent>
<dc:title>Matplotlib v3.11.2, https://matplotlib.org/</dc:title>
</cc:Agent>
</dc:creator>
</cc:Work>
</rdf:RDF>
</metadata>
<defs>
<style type="text/css">*{stroke-linejoin: round; stroke-linecap: butt}</style>
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 302.4
L 540 302.4
L 540 0
L 0 0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 44.842109 262.517891
L 489.598164 262.517891
L 489.598164 26.16
L 44.842109 26.16
z
" style="fill: #ffffff"/>
</g>
<g id="matplotlib.axis_1">
<g id="xtick_1">
<g id="line2d_1">
<path d="M 79.52699 262.517891
L 79.52699 26.16
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_2">
<defs>
<path id="mbdf6c3cf44" d="M 0 0
L 0 3.5
" style="stroke: #333333; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#mbdf6c3cf44" x="79.52699" y="262.517891" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_1">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="79.52699" y="275.596016" transform="rotate(-0 79.52699 275.596016)">2B</text>
</g>
</g>
<g id="xtick_2">
<g id="line2d_3">
<path d="M 190.001148 262.517891
L 190.001148 26.16
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_4">
<g>
<use xlink:href="#mbdf6c3cf44" x="190.001148" y="262.517891" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_2">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="190.001148" y="275.596016" transform="rotate(-0 190.001148 275.596016)">5B</text>
</g>
</g>
<g id="xtick_3">
<g id="line2d_5">
<path d="M 273.571622 262.517891
L 273.571622 26.16
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_6">
<g>
<use xlink:href="#mbdf6c3cf44" x="273.571622" y="262.517891" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_3">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="273.571622" y="275.596016" transform="rotate(-0 273.571622 275.596016)">10B</text>
</g>
</g>
<g id="xtick_4">
<g id="line2d_7">
<path d="M 357.142096 262.517891
L 357.142096 26.16
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_8">
<g>
<use xlink:href="#mbdf6c3cf44" x="357.142096" y="262.517891" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_4">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="357.142096" y="275.596016" transform="rotate(-0 357.142096 275.596016)">20B</text>
</g>
</g>
<g id="xtick_5">
<g id="line2d_9">
<path d="M 467.616254 262.517891
L 467.616254 26.16
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_10">
<g>
<use xlink:href="#mbdf6c3cf44" x="467.616254" y="262.517891" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_5">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="467.616254" y="275.596016" transform="rotate(-0 467.616254 275.596016)">50B</text>
</g>
</g>
<g id="text_6">
<text style="font-size: 9px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="267.220137" y="288.356484" transform="rotate(-0 267.220137 288.356484)">Training tokens (log scale)</text>
</g>
</g>
<g id="matplotlib.axis_2">
<g id="ytick_1">
<g id="line2d_11">
<path d="M 44.842109 262.517891
L 489.598164 262.517891
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_12">
<defs>
<path id="m33118aef20" d="M 0 0
L -3.5 0
" style="stroke: #333333; stroke-width: 0.8"/>
</defs>
<g>
<use xlink:href="#m33118aef20" x="44.842109" y="262.517891" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_7">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #333333" x="37.842109" y="265.556953" transform="rotate(-0 37.842109 265.556953)">9.0</text>
</g>
</g>
<g id="ytick_2">
<g id="line2d_13">
<path d="M 44.842109 212.758335
L 489.598164 212.758335
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_14">
<g>
<use xlink:href="#m33118aef20" x="44.842109" y="212.758335" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_8">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #333333" x="37.842109" y="215.797397" transform="rotate(-0 37.842109 215.797397)">9.2</text>
</g>
</g>
<g id="ytick_3">
<g id="line2d_15">
<path d="M 44.842109 162.998779
L 489.598164 162.998779
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_16">
<g>
<use xlink:href="#m33118aef20" x="44.842109" y="162.998779" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_9">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #333333" x="37.842109" y="166.037841" transform="rotate(-0 37.842109 166.037841)">9.4</text>
</g>
</g>
<g id="ytick_4">
<g id="line2d_17">
<path d="M 44.842109 113.239223
L 489.598164 113.239223
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_18">
<g>
<use xlink:href="#m33118aef20" x="44.842109" y="113.239223" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_10">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #333333" x="37.842109" y="116.278285" transform="rotate(-0 37.842109 116.278285)">9.6</text>
</g>
</g>
<g id="ytick_5">
<g id="line2d_19">
<path d="M 44.842109 63.479667
L 489.598164 63.479667
" clip-path="url(#pa266021682)" style="fill: none; stroke: #b0b0b0; stroke-opacity: 0.25; stroke-width: 0.8; stroke-linecap: square"/>
</g>
<g id="line2d_20">
<g>
<use xlink:href="#m33118aef20" x="44.842109" y="63.479667" style="fill: #333333; stroke: #333333; stroke-width: 0.8"/>
</g>
</g>
<g id="text_11">
<text style="font-size: 8px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: end; fill: #333333" x="37.842109" y="66.518729" transform="rotate(-0 37.842109 66.518729)">9.8</text>
</g>
</g>
<g id="text_12">
<text style="font-size: 9px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="18.9575" y="144.338945" transform="rotate(-90 18.9575 144.338945)">Int Index</text>
</g>
</g>
<g id="patch_3">
<path d="M 44.842109 262.517891
L 44.842109 26.16
" style="fill: none; stroke: #999999; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="patch_4">
<path d="M 44.842109 262.517891
L 489.598164 262.517891
" style="fill: none; stroke: #999999; stroke-width: 0.8; stroke-linejoin: miter; stroke-linecap: square"/>
</g>
<g id="PathCollection_1">
<defs>
<path id="m12a3ff2d4d" d="M 0 4.743416
C 1.257969 4.743416 2.464584 4.24362 3.354102 3.354102
C 4.24362 2.464584 4.743416 1.257969 4.743416 0
C 4.743416 -1.257969 4.24362 -2.464584 3.354102 -3.354102
C 2.464584 -4.24362 1.257969 -4.743416 0 -4.743416
C -1.257969 -4.743416 -2.464584 -4.24362 -3.354102 -3.354102
C -4.24362 -2.464584 -4.743416 -1.257969 -4.743416 0
C -4.743416 1.257969 -4.24362 2.464584 -3.354102 3.354102
C -2.464584 4.24362 -1.257969 4.743416 0 4.743416
z
" style="stroke: #dd8452"/>
</defs>
<g clip-path="url(#pa266021682)">
<use xlink:href="#m12a3ff2d4d" x="79.828031" y="65.070155" style="fill: #dd8452; stroke: #dd8452"/>
</g>
</g>
<g id="text_13">
<text style="font-weight: 700; font-size: 9px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #333333" x="87.828031" y="67.408397" transform="rotate(-0 87.828031 67.408397)">min-spark 1.5 (9.79)</text>
</g>
<g id="PathCollection_2">
<defs>
<path id="mbef55b5a60" d="M 0 3.872983
C 1.027127 3.872983 2.012324 3.464901 2.738613 2.738613
C 3.464901 2.012324 3.872983 1.027127 3.872983 0
C 3.872983 -1.027127 3.464901 -2.012324 2.738613 -2.738613
C 2.012324 -3.464901 1.027127 -3.872983 0 -3.872983
C -1.027127 -3.872983 -2.012324 -3.464901 -2.738613 -2.738613
C -3.464901 -2.012324 -3.872983 -1.027127 -3.872983 0
C -3.872983 1.027127 -3.464901 2.012324 -2.738613 2.738613
C -2.012324 3.464901 -1.027127 3.872983 0 3.872983
z
" style="stroke: #4c72b0"/>
</defs>
<g clip-path="url(#pa266021682)">
<use xlink:href="#mbef55b5a60" x="273.571622" y="114.602498" style="fill: #4c72b0; stroke: #4c72b0"/>
</g>
</g>
<g id="text_14">
<text style="font-size: 9px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #333333" x="281.571622" y="116.940741" transform="rotate(-0 281.571622 116.940741)">Hummingbird-V2 (9.59)</text>
</g>
<g id="PathCollection_3">
<g clip-path="url(#pa266021682)">
<use xlink:href="#mbef55b5a60" x="336.192626" y="152.774212" style="fill: #4c72b0; stroke: #4c72b0"/>
</g>
</g>
<g id="text_15">
<text style="font-size: 9px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #333333" x="344.192626" y="155.112455" transform="rotate(-0 344.192626 155.112455)">min-spark 1.1 (9.44)</text>
</g>
<g id="PathCollection_4">
<g clip-path="url(#pa266021682)">
<use xlink:href="#mbef55b5a60" x="406.027689" y="227.29994" style="fill: #4c72b0; stroke: #4c72b0"/>
</g>
</g>
<g id="text_16">
<text style="font-size: 9px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: start; fill: #333333" x="414.027689" y="229.638182" transform="rotate(-0 414.027689 229.638182)">ForgePlex-M2-9M (9.14)</text>
</g>
<g id="text_17">
<text style="font-size: 12px; font-family: 'Helvetica', 'Arial', 'DejaVu Sans', sans-serif; text-anchor: middle; fill: #333333" x="267.220137" y="20.16" transform="rotate(-0 267.220137 20.16)">Int Index against training tokens</text>
</g>
</g>
</g>
<defs>
<clipPath id="pa266021682">
<rect x="44.842109" y="26.16" width="444.756054" height="236.357891"/>
</clipPath>
</defs>
</svg>
|