Instructions to use stepfun-ai/NextStep-1-Large-Edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stepfun-ai/NextStep-1-Large-Edit with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-image" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-image", model="stepfun-ai/NextStep-1-Large-Edit", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("stepfun-ai/NextStep-1-Large-Edit", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download added_tokens.json from stepfun-ai/NextStep-1-Large-Edit: direct link, hf CLI and curl.
- Browser
- Download file 932 Bytes
-
https://huggingface.co/stepfun-ai/NextStep-1-Large-Edit/resolve/bac0d9ff590906759a41292124c3b7fe6979b689/added_tokens.json
- Command line
-
hf download hf://stepfun-ai/NextStep-1-Large-Edit@bac0d9ff590906759a41292124c3b7fe6979b689/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/stepfun-ai/NextStep-1-Large-Edit/resolve/bac0d9ff590906759a41292124c3b7fe6979b689/added_tokens.json
932 Bytes
| { | |
| "</tool_call>": 151658, | |
| "<tool_call>": 151657, | |
| "<|begin_of_image|>": 151667, | |
| "<|begin_of_prompt_refinement|>": 151670, | |
| "<|begin_of_thinking|>": 151672, | |
| "<|beginoftext|>": 151674, | |
| "<|box_end|>": 151649, | |
| "<|box_start|>": 151648, | |
| "<|end_of_image|>": 151668, | |
| "<|end_of_prompt_refinement|>": 151671, | |
| "<|end_of_thinking|>": 151673, | |
| "<|endoftext|>": 151643, | |
| "<|file_sep|>": 151664, | |
| "<|fim_middle|>": 151660, | |
| "<|fim_pad|>": 151662, | |
| "<|fim_prefix|>": 151659, | |
| "<|fim_suffix|>": 151661, | |
| "<|im_end|>": 151645, | |
| "<|im_start|>": 151644, | |
| "<|image_area|>": 151666, | |
| "<|image_pad|>": 151655, | |
| "<|image_placeholder|>": 151669, | |
| "<|object_ref_end|>": 151647, | |
| "<|object_ref_start|>": 151646, | |
| "<|quad_end|>": 151651, | |
| "<|quad_start|>": 151650, | |
| "<|repo_name|>": 151663, | |
| "<|video_pad|>": 151656, | |
| "<|vision_end|>": 151653, | |
| "<|vision_pad|>": 151654, | |
| "<|vision_start|>": 151652, | |
| "[PAD]": 151665 | |
| } | |