Image-Text-to-Text
Transformers
Safetensors
English
step3p7
vision-language
multimodal
Mixture of Experts
conversational
custom_code
Eval Results
Instructions to use stepfun-ai/Step-3.7-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stepfun-ai/Step-3.7-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="stepfun-ai/Step-3.7-Flash", 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("stepfun-ai/Step-3.7-Flash", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("stepfun-ai/Step-3.7-Flash", trust_remote_code=True, device_map="auto") 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?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stepfun-ai/Step-3.7-Flash 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.7-Flash" # 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.7-Flash", "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/Step-3.7-Flash
- SGLang
How to use stepfun-ai/Step-3.7-Flash 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.7-Flash" \ --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.7-Flash", "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/Step-3.7-Flash" \ --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.7-Flash", "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/Step-3.7-Flash with Docker Model Runner:
docker model run hf.co/stepfun-ai/Step-3.7-Flash
Commit History
-
Add SWE-bench Pro evaluation result
Verified signature031fea7 -
Fix repo name casing in SGLang FP8 example
mh34675371d3c -
Update README.md
Verified signaturef69ad14 -
update Ecosystem bullet
hengm3467- broaden scope: "model development" -> "model development & customization" - NVIDIA Megatron -> NVIDIA Nemo ecosystem - add AutoModel alongside Megatron Core / Megatron Bridge - mention NVIDIA NIM inference microservice63f1ea4
-
Update README.md
Verified signature5c5f97c -
update benchmark chart
hengm3467a214531 -
fix vLLM intro to match StepFun-specific Docker tag
hengm3467f0bbde3 -
update Local Deployment install instructions
hengm3467- vLLM: switch Docker tag to stepfun37 and drop pip install path - SGLang: switch Docker tag to dev-step-3.7-flashe7debd8 -
sync to v3 model card
hengm3467- §4: rephrase availability, list partners inline, drop "Labs" from Modal - §5.1: simpler region callout (prose + bullets with explicit base URLs) - §6.3: use processor.decode (equivalent to processor.tokenizer.decode)e03d01d -
sync to v2 model card
hengm3467- benchmark name GPDVal -> GPDVal-AA - Availability: add DeepInfra, Fireworks AI, Modal Labs as upcoming partners - vLLM: swap naming so FP8 is the default (step3p7-flash) and BF16 is suffixed - SGLang: add NVFP4 launch command - capitalize FP8 / BF16 / NVFP4 labels - Agent Platforms: drop Lemonade - add License sectionfbcee77 -
describe MoE as sparse for precision
hengm34678817d4a -
clarify regional base_url and use env vars in examples
hengm3467- add callout in Examples section with Global vs China base_url table - switch 5.1 and 5.2 to read STEP_API_KEY and STEP_BASE_URL from env - label platform.stepfun.ai/.com with Global/China in Availability bulletee8c807 -
add benchmark chart above Pricing section
hengm3467Track *.png with LFS for image assets.1678751 -
clean up model card: fix numbering, typos, and code examples
hengm3467- add section numbers 1-8 and remove duplicate 6.2 SGLang heading - add Pricing section with token pricing table - fix garbled --enable-auto-tool-choice flag in vLLM bf16 block - swap served-model-name between fp8 and bf16 examples - fix Python syntax error (newline inside string) in chat example - rewrite 5.2 example in Python OpenAI client style to match 5.1 - fix undefined tokenizer reference in Transformers example - correct JSON code fence and clarify unified memory wording - expand YAML frontmatter with library_name, pipeline_tag, language, tags47ec689 -
add readme (#1)
- add readme (34c69a7226e276dccc38fc156775dfab64069462)480473d
-
update processor config
luotingdana9c0171
-
add step-3.7-flash bf16 model libs
Verified signature7805a18 -
add step-3.7-flash bf16 model libs
Verified signaturec171c6a -
add step-3.7-flash bf16 model config
Verified signature457483d -
step-3.7-flash bf16 model
Verified signature6578499 -
initial commit
Verified signaturedc3047b