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
|
Download charts/efficiency.svg from MinimaLabs/min-spark-1.5: direct link, hf CLI and curl.
- Browser
- Download file 12.6 kB
-
https://huggingface.co/MinimaLabs/min-spark-1.5/resolve/main/charts/efficiency.svg
- Command line
-
hf download hf://MinimaLabs/min-spark-1.5/charts/efficiency.svg
-
curl -L -o efficiency.svg https://huggingface.co/MinimaLabs/min-spark-1.5/resolve/main/charts/efficiency.svg
12.6 kB
| <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> | |