Instructions to use stepfun-ai/step3-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stepfun-ai/step3-fp8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="stepfun-ai/step3-fp8", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("stepfun-ai/step3-fp8", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stepfun-ai/step3-fp8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stepfun-ai/step3-fp8" # 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/step3-fp8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/stepfun-ai/step3-fp8
- SGLang
How to use stepfun-ai/step3-fp8 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/step3-fp8" \ --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/step3-fp8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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/step3-fp8" \ --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/step3-fp8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use stepfun-ai/step3-fp8 with Docker Model Runner:
docker model run hf.co/stepfun-ai/step3-fp8
Commit History
-
Improve model card: Add pipeline tag and update paper link
Verified signatureThis PR improves the model card by: 1. Adding the `pipeline_tag: image-text-to-text` to the metadata, which makes the model easier to find at https://huggingface.co/models?pipeline_tag=image-text-to-text. 2. Updating the paper link from arXiv to the Hugging Face Papers page (`https://huggingface.co/papers/2507.19427`) and changing the label to "Paper" for better accuracy and integration with the Hub ecosystem. Everything else looks great!098d4ad -
[UPDATE] update deploy guidance
Rico86eb322
-
[UPDATE] update deploy_guidance
Rico04c38be -
[UPDATE] update logo url
Rico48df371 -
[UPDATE] update readme
Rico565af60 -
[UPDATE] update readme
Rico6f7bdf5 -
Update README.md
Verified signaturecca32c9 -
[UPDATE] update LICENSE url
Ricoda58127 -
[update] update LICENSE link
Rico333b148 -
[update] update files
Rico8576049 -
[update] update github and collection address
Ricoadcb82c -
[Update] update readme
Ricob197bac -
[ADD] add missing files
Rico61ca442 -
Update README.md
Verified signaturecc0b4a3 -
Create README.md
Verified signature<div align="center"> <picture> <img src="stepfun-logo.png" width="30%" alt="StepFun: Cost-Effective Multimodal Intelligence"> </picture> </div> <hr> <div align="center" style="line-height:1"> <a href="https://stepfun.com/" target="_blank"><img alt="Chat" src="https://img.shields.io/badge/Chat-StepFun-ff6b6b?color=1783ff&logoColor=white"/></a> <a href="https://stepfun.com/" target="_blank"><img alt="Homepage" src="https://img.shields.io/badge/Homepage-StepFun-white?logo=StepFun&logoColor=white"/></a> </div> <div align="center" style="line-height: 1;"> <a href="https://huggingface.co/collections/stepfun-ai/step3-688a3d652dbb45d868f9d42d" target="_blank"><img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-StepFun-ffc107?color=ffc107&logoColor=white"/></a> <a href="https://www.modelscope.cn/models/stepfun-ai/step3" target="_blank"><img alt="ModelScope" src="https://img.shields.io/badge/🤖ModelScope-StepFun-ffc107?color=7963eb&logoCol…48430fe -
Upload stepfun-logo.png
Verified signature09c44c4 -
Add files using upload-large-folder tool
Verified signature19e788d -
Add files using upload-large-folder tool
Verified signaturec27d2f1 -
initial commit
Verified signature0014e7b