Image-Text-to-Text
Transformers
ONNX
Safetensors
English
idefics3
conversational

Run this model with HF Jobs

Run HuggingFaceTB/SmolVLM-500M-Instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/HuggingFaceTB/SmolVLM-500M-Instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/HuggingFaceTB/SmolVLM-500M-Instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/HuggingFaceTB/SmolVLM-500M-Instruct. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

SFTTrainer Error

#12
by badhon1512 - opened

Hi,

While fine-tuning SmolVLM with SFTTrainer using the standard data format, I’m getting this error:

raise ValueError(
ValueError: Mismatch in image token count between text and input_ids. Got ids=[883, 897, 899, 938] and text=[1377, 1377, 1377, 1377]. Likely due to truncation='max_length'. Please disable truncation or increase max_length.

I already tried increasing max_length, but the error persists. Any assistance would be greatly appreciated.

Sign up or log in to comment