How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="SI-Lab/StepCount-7B-SFT-1M")
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)
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("SI-Lab/StepCount-7B-SFT-1M")
model = AutoModelForMultimodalLM.from_pretrained("SI-Lab/StepCount-7B-SFT-1M")
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=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

StepCount-7B-SFT-1M

This model is the final checkpoint (checkpoint-476) from continued SFT of SI-Lab/StepCount-7b-SFT-1M-ckpt3450 on the SFT_StepCount_merged_7500_plus_11_50 dataset.

Evaluation during training:

  • eval_loss: 0.7951585054397583
  • num_input_tokens_seen: 842742656
  • global_step: 476

Training setup:

  • distributed_type: multi-GPU
  • num_devices: 8
  • total_train_batch_size: 512
  • gradient_accumulation_steps: 8
  • learning_rate: 2.7e-6
  • lr_scheduler_type: cosine
  • training_steps: 476
Downloads last month
38
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for SI-Lab/StepCount-7B-SFT-1M

Finetuned
(1)
this model