Text Generation
Transformers
GGUF
English
Chinese
stepfun
prism
Mixture of Experts
reasoning
coding
agentic
abliterated
imatrix
conversational
Instructions to use Ex0bit/Step-3.5-Flash-PRISM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ex0bit/Step-3.5-Flash-PRISM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ex0bit/Step-3.5-Flash-PRISM")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ex0bit/Step-3.5-Flash-PRISM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Ex0bit/Step-3.5-Flash-PRISM 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 Ex0bit/Step-3.5-Flash-PRISM:IQ2_M # Run inference directly in the terminal: llama cli -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M # Run inference directly in the terminal: llama cli -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
Use Docker
docker model run hf.co/Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Ex0bit/Step-3.5-Flash-PRISM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ex0bit/Step-3.5-Flash-PRISM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ex0bit/Step-3.5-Flash-PRISM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
- SGLang
How to use Ex0bit/Step-3.5-Flash-PRISM 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 "Ex0bit/Step-3.5-Flash-PRISM" \ --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": "Ex0bit/Step-3.5-Flash-PRISM", "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 "Ex0bit/Step-3.5-Flash-PRISM" \ --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": "Ex0bit/Step-3.5-Flash-PRISM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Ex0bit/Step-3.5-Flash-PRISM with Ollama:
ollama run hf.co/Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
- Unsloth Desktop
- Pi
How to use Ex0bit/Step-3.5-Flash-PRISM with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Ex0bit/Step-3.5-Flash-PRISM:IQ2_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Ex0bit/Step-3.5-Flash-PRISM with Docker Model Runner:
docker model run hf.co/Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
- Lemonade
How to use Ex0bit/Step-3.5-Flash-PRISM with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
Run and chat with the model
lemonade run user.Step-3.5-Flash-PRISM-IQ2_M
List all available models
lemonade list
- Hermes Agent
How to use Ex0bit/Step-3.5-Flash-PRISM with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
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:9931/v1 hermes config set model.default Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Ex0bit/Step-3.5-Flash-PRISM with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ex0bit/Step-3.5-Flash-PRISM:IQ2_M
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:9931/v1 \ --custom-model-id "Ex0bit/Step-3.5-Flash-PRISM:IQ2_M" \ --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"
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: prism-research
|
| 4 |
+
license_link: LICENSE.md
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- zh
|
| 8 |
+
tags:
|
| 9 |
+
- stepfun
|
| 10 |
+
- prism
|
| 11 |
+
- moe
|
| 12 |
+
- reasoning
|
| 13 |
+
- coding
|
| 14 |
+
- agentic
|
| 15 |
+
- abliterated
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
library_name: transformers
|
| 18 |
+
base_model:
|
| 19 |
+
- stepfun-ai/Step-3.5-Flash
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
[-blue)]()
|
| 23 |
+
[]()
|
| 24 |
+
[]()
|
| 25 |
+
[]()
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
<p align="center">
|
| 30 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/63adf1fa42fd3b8dbaeb0c92/ZBA5B381EC5oOmnAV7TPC.png" width="400"/>
|
| 31 |
+
</p>
|
| 32 |
+
|
| 33 |
+
# Step-3.5-Flash-PRISM
|
| 34 |
+
|
| 35 |
+
An role-play following unrestricted/unchained PRISM-LITE version of [StepFun's Step 3.5 Flash](https://huggingface.co/stepfun-ai/Step-3.5-Flash) intended particularly for over-refusal and propaganda mechanisms suppression using our SOTA PRISM pipeline.
|
| 36 |
+
|
| 37 |
+
For Custom full Production PRISM version / tensors reach out.
|
| 38 |
+
<div align="center">
|
| 39 |
+
|
| 40 |
+
### ☕ Support Our Work
|
| 41 |
+
|
| 42 |
+
If you enjoy our work and find it useful, please consider sponsoring or supporting us!
|
| 43 |
+
|
| 44 |
+
[](https://ko-fi.com/ericelbaz)
|
| 45 |
+
|
| 46 |
+
| Option | Description |
|
| 47 |
+
|--------|-------------|
|
| 48 |
+
| [**PRISM VIP Membership**](https://ko-fi.com/summary/6bae206c-a751-4868-8dc7-f531afd1fb4c) | Access to all PRISM models |
|
| 49 |
+
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## Model Highlights
|
| 55 |
+
|
| 56 |
+
- **PRISM Ablation** — State-of-the-art technique that removes over-refusal behaviors while preserving model capabilities
|
| 57 |
+
- **196B MoE Architecture** — 196 billion total parameters with only 11 billion active per token across 288 fine-grained routed experts + 1 shared expert
|
| 58 |
+
- **Multi-Token Prediction (MTP-3)** — Predicts 4 tokens simultaneously, achieving 100–300 tok/s typical throughput (peaking at 350 tok/s)
|
| 59 |
+
- **256K Context Window** — Cost-efficient long context via 3:1 Sliding Window Attention (SWA) ratio
|
| 60 |
+
- **Frontier Reasoning & Coding** — 97.3 on AIME 2025, 74.4% on SWE-bench Verified, 51.0% on Terminal-Bench 2.0
|
| 61 |
+
- **Accessible Local Deployment** — Runs on high-end consumer hardware (Mac Studio M4 Max, NVIDIA DGX Spark)
|
| 62 |
+
|
| 63 |
+
## Model Architecture
|
| 64 |
+
|
| 65 |
+
| Specification | Value |
|
| 66 |
+
|---------------|-------|
|
| 67 |
+
| Architecture | Sparse Mixture-of-Experts (MoE) |
|
| 68 |
+
| Backbone | 45-layer Transformer (4,096 hidden dim) |
|
| 69 |
+
| Total Parameters | 196.81B (196B Backbone + 0.81B Head) |
|
| 70 |
+
| Activated Parameters | ~11B (per token) |
|
| 71 |
+
| Routed Experts per Layer | 288 |
|
| 72 |
+
| Shared Experts | 1 (always active) |
|
| 73 |
+
| Selected Experts per Token | Top-8 |
|
| 74 |
+
| Vocabulary Size | 128,896 |
|
| 75 |
+
| Context Length | 256K |
|
| 76 |
+
| Attention | Hybrid SWA (3:1 SWA-to-Full ratio) |
|
| 77 |
+
| MTP Head | Sliding-window attention + dense FFN (4 tokens/pass) |
|
| 78 |
+
|
| 79 |
+
## Benchmarks
|
| 80 |
+
|
| 81 |
+
| Benchmark | Step 3.5 Flash | DeepSeek V3.2 | Kimi K2.5 | GLM-4.7 | MiniMax M2.1 |
|
| 82 |
+
|-----------|---------------|---------------|-----------|---------|--------------|
|
| 83 |
+
| **Agent** | | | | | |
|
| 84 |
+
| τ²-Bench | 88.2 | 80.3 | 85.4 | 87.4 | 86.6 |
|
| 85 |
+
| BrowseComp | 51.6 | 51.4 | 60.6 | 52.0 | 47.4 |
|
| 86 |
+
| GAIA (no file) | 84.5 | 75.1 | 75.9 | 61.9 | 64.3 |
|
| 87 |
+
| xbench-DeepSearch (2025.05) | 83.7 | 78.0 | 76.7 | 72.0 | 68.7 |
|
| 88 |
+
| **Reasoning** | | | | | |
|
| 89 |
+
| AIME 2025 | 97.3 | 93.1 | 96.1 | 95.7 | 83.0 |
|
| 90 |
+
| HMMT 2025 (Feb.) | 98.4 | 92.5 | 95.4 | 97.1 | 71.0 |
|
| 91 |
+
| IMOAnswerBench | 85.4 | 78.3 | 81.8 | 82.0 | 60.4 |
|
| 92 |
+
| **Coding** | | | | | |
|
| 93 |
+
| LiveCodeBench-V6 | 86.4 | 83.3 | 85.0 | 84.9 | — |
|
| 94 |
+
| SWE-bench Verified | 74.4 | 73.1 | 76.8 | 73.8 | 74.0 |
|
| 95 |
+
| Terminal-Bench 2.0 | 51.0 | 46.4 | 50.8 | 41.0 | 47.9 |
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
### llama.cpp (GGUF)
|
| 99 |
+
|
| 100 |
+
For local deployment (requires ~120 GB VRAM for int4, smaller quants are available):
|
| 101 |
+
|
| 102 |
+
```bash
|
| 103 |
+
./llama-cli -m step3.5_flash_prism_Q4_K_S.gguf --jinja
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
## Recommended Parameters
|
| 107 |
+
|
| 108 |
+
| Use Case | Temperature | Top-P | Max New Tokens |
|
| 109 |
+
|----------|-------------|-------|----------------|
|
| 110 |
+
| Reasoning / Coding | 1.0 | 0.95 | 32768 |
|
| 111 |
+
| General Chat | 0.6 | 0.95 | 4096 |
|
| 112 |
+
|
| 113 |
+
## Hardware Requirements
|
| 114 |
+
|
| 115 |
+
| Setup | Details |
|
| 116 |
+
|-------|---------|
|
| 117 |
+
| **BF16 (Full)** | 8x H100/A100 80GB with tensor parallelism |
|
| 118 |
+
| **FP8 Quantized** | 8x A100 80GB with expert parallelism |
|
| 119 |
+
| **GGUF INT4 (Local)** | ~120 GB unified memory (Mac Studio M4 Max 128GB, DGX Spark, AMD Ryzen AI Max+ 395) |
|
| 120 |
+
|
| 121 |
+
## License
|
| 122 |
+
|
| 123 |
+
This model is released under the [PRISM Research License](LICENSE.md).
|
| 124 |
+
|
| 125 |
+
## Acknowledgments
|
| 126 |
+
|
| 127 |
+
Based on [Step 3.5 Flash](https://huggingface.co/stepfun-ai/Step-3.5-Flash) by [StepFun AI](https://www.stepfun.com). See the [technical report](https://github.com/stepfun-ai/Step-3.5-Flash/blob/main/step_3p5_flash_tech_report.pdf) and [blog post](https://static.stepfun.com/blog/step-3.5-flash/) for more details on the base model.
|