docs/source/en/model_doc/step3p7.md
This model was contributed to Hugging Face Transformers on 2026-08-16.
Step-3.7-Flash was proposed in Step 3.7 Flash by StepFun. It is a 198B-parameter sparse Mixture-of-Experts vision-language model, pairing a 196B-parameter MoE language backbone with a 1.8B-parameter vision encoder for native image understanding.
StepFun hasn't published a technical report for Step-3.7-Flash, so the details below are drawn from the released checkpoint's configuration rather than a paper.
~GenerationMixin.generate] can use for speculative decoding via use_mtp=True.import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model = AutoModelForImageTextToText.from_pretrained(
"stepfun-ai/Step-3.7-Flash", dtype=torch.bfloat16, device_map="auto",
)
processor = AutoProcessor.from_pretrained("stepfun-ai/Step-3.7-Flash")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
{"type": "text", "text": "Describe this image briefly."},
],
}
]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt"
).to(model.device)
generated_ids = model.generate(**inputs, max_new_tokens=32, do_sample=False)
print(processor.batch_decode(generated_ids, skip_special_tokens=True)[0])
[[autodoc]] Step3p7Config
[[autodoc]] Step3p7VisionConfig
[[autodoc]] Step3p7TextConfig
[[autodoc]] Step3p7ImageProcessor
[[autodoc]] Step3p7Processor
[[autodoc]] Step3p7VisionModel - forward
[[autodoc]] Step3p7TextModel - forward
[[autodoc]] Step3p7Model - forward
[[autodoc]] Step3p7ForConditionalGeneration - forward