Instructions to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tnhnyzc/Step-3.5-Flash-MTP-GGUF", filename="Step-3.5-Flash-MTP-IQ3_S-3.64BPW-Q8_MTP/Step-3.5-Flash-MTP-IQ3_S-3.64BPW-Q8_MTP.gguf-00001-of-00003.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF 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 tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S # Run inference directly in the terminal: llama cli -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S # Run inference directly in the terminal: llama cli -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S # Run inference directly in the terminal: ./llama-cli -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Use Docker
docker model run hf.co/tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
- LM Studio
- Jan
- vLLM
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tnhnyzc/Step-3.5-Flash-MTP-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tnhnyzc/Step-3.5-Flash-MTP-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
- Ollama
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with Ollama:
ollama run hf.co/tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
- Unsloth Studio
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tnhnyzc/Step-3.5-Flash-MTP-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tnhnyzc/Step-3.5-Flash-MTP-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tnhnyzc/Step-3.5-Flash-MTP-GGUF to start chatting
- Pi
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with Docker Model Runner:
docker model run hf.co/tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
- Lemonade
How to use tnhnyzc/Step-3.5-Flash-MTP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tnhnyzc/Step-3.5-Flash-MTP-GGUF:IQ3_S
Run and chat with the model
lemonade run user.Step-3.5-Flash-MTP-GGUF-IQ3_S
List all available models
lemonade list
Step-3.5-Flash MTP GGUF
Experimental Step-3.5-Flash MTP GGUF builds based on stepfun-ai/Step-3.5-Flash.
These GGUFs were originally published for a same-GGUF experimental fork, but Step-3.5 MTP support has now landed in upstream llama.cpp via ggml-org/llama.cpp#23274. Current upstream llama.cpp uses a separate draft/MTP GGUF through --spec-type draft-mtp and -md.
Important packaging note: the main quants in this repo are combined target+MTP files from the experimental fork era. Upstream can load them as target models, but the embedded MTP tensors are not what upstream uses for speculative decoding once -md is supplied. For upstream llama.cpp, the cleaner native layout is a target-only GGUF plus a separate draft-only MTP GGUF. The combined files are kept here for compatibility and reproducibility, not because upstream needs the target and draft tensors bundled together.
The old tnhnyzc/llama.cpp fork remains useful as historical context for the same-GGUF implementation, but the recommended path is now upstream llama.cpp.
Files
The model files are split into folders. Choose one quant folder and load the first shard; the split-aware llama.cpp loader will find the sibling shards.
Step-3.5-Flash-MTP-IQ4_XS-3.90BPW-Q8_MTP/Step-3.5-Flash-MTP-IQ3_S-3.64BPW-Q8_MTP/Step-3.5-Flash-MTP-IQ3_XXS-3.27BPW-Q8_MTP/
In these files, the MTP / nextn tensors are kept Q8_0. The public metadata reports step35.nextn_predict_layers = 1.
For upstream llama.cpp MTP, use the matching draft-only GGUF with -md. The draft-only file contains the MTP/draft tensors needed by upstream's separate draft-model path. If you make fresh upstream-native quants, you should not need to include the MTP tensors in the target GGUF.
The calibration imatrix is Bartowski's stepfun-ai_Step-3.5-Flash-imatrix.gguf from bartowski/stepfun-ai_Step-3.5-Flash-GGUF. The IQ4_XS variant follows the public AesSedai Step-3.5-Flash IQ4_XS expert layout. The IQ3_S and IQ3_XXS variants are smaller custom expert layouts.
Usage
Build current upstream llama.cpp, then run the target GGUF and the draft-only GGUF as separate files:
./build/bin/llama-server \
--model /path/to/target/first-shard-or-gguf.gguf \
-md /path/to/Step-3.5-Flash-*-draft-only.gguf \
--spec-type draft-mtp \
--spec-draft-n-max 3 \
--spec-draft-p-min 0.65 \
--ctx-size 131072 \
-ctk q8_0 -ctv q8_0 \
-ngl 99 \
-np 1 \
-b 4096 \
-ub 1024 \
-fa on \
--cache-prompt \
--cache-ram 8192
Add normal sampler/server args as needed.
The old fork flags were -mtp --draft 1; upstream uses --spec-type draft-mtp --spec-draft-n-max ... -md ... instead.
Notes
- Tested locally on Apple M3 Max / Metal with upstream llama.cpp
b9490-3571fa543after #23274 was merged. - Recommended upstream starting point:
--spec-type draft-mtp --spec-draft-n-max 3 --spec-draft-p-min 0.65 -md /path/to/draft-only.gguf. - In one local upstream server smoke with the IQ3_XXS target and draft-only MTP GGUF, the server reported
32.86 t/sgeneration and50/60draft tokens accepted (83.3%acceptance) for a 128-token completion. - The target KV cache worked with
-ctk q8_0 -ctv q8_0. In this smoke, setting draft KV to Q8_0 with-ctkd q8_0 -ctvd q8_0hit an upstream assert, so keep the draft KV cache at its default f16 unless you have tested otherwise. - The published files report one trained
nextnlayer. Higher--spec-draft-n-maxvalues reuse that layer recurrently. - Treat the numbers as directional. Context length, sampler settings, cache reuse, memory pressure, and host load can move them.
See the GitHub README for current limitations and implementation details.
- Downloads last month
- 134
Model tree for tnhnyzc/Step-3.5-Flash-MTP-GGUF
Base model
stepfun-ai/Step-3.5-Flash