Instructions to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S 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 stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S # Run inference directly in the terminal: llama cli -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S # Run inference directly in the terminal: llama cli -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_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 stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_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 stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
Use Docker
docker model run hf.co/stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
- LM Studio
- Jan
- vLLM
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
- SGLang
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S 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 "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S" \ --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": "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S", "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 "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S" \ --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": "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with Ollama:
ollama run hf.co/stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
- Unsloth Studio
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S 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 stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S 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 stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S to start chatting
- Pi
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_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": "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_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 stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_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 "stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_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 stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with Docker Model Runner:
docker model run hf.co/stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
- Lemonade
How to use stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull stepfun-ai/Step-3.5-Flash-GGUF-Q4_K_S:Q4_K_S
Run and chat with the model
lemonade run user.Step-3.5-Flash-GGUF-Q4_K_S-Q4_K_S
List all available models
lemonade list
How do I run it using Oobabooga? I'm getting the following error
llama_model_load: error loading model: error loading model architecture: unknown model architecture: 'step35'
llama_model_load_from_file_impl: failed to load model
common_init_from_params: failed to load model 'user_data/models/Step-3.5_Flash/step3p5_flash_Q4_K_S-00001-of-00012.gguf'
srv load_model: failed to load model, 'user_data/models/Step-3.5_Flash/step3p5_flash_Q4_K_S-00001-of-00012.gguf'
srv operator(): operator(): cleaning up before exit...
main: exiting due to model loading error
12:40:32-033723 ERROR Error loading the model with llama.cpp: Server process terminated
unexpectedly with exit code: 1
I downloaded the 12 parts and put them into the models directory, when trying to load it on Oobabooga (I have 128GB of RAM + 24GB VRAM) I'm shown the previous error prompt. Hope someone can help me figure this one out
Currently only their custom fork of llama.cpp has support for the model. It will probably be about a month before oobabooga supports this model.
https://github.com/stepfun-ai/Step-3.5-Flash/tree/main/llama.cpp