You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: This model does not support image input.
Traceback (most recent call last):
File "/usr/local/bin/llamafactory-cli", line 8, in<module>sys.exit(main())
File "/content/LLaMA-Factory/src/llamafactory/cli.py", line 112, in main
run_exp()
File "/content/LLaMA-Factory/src/llamafactory/train/tuner.py", line 50, in run_exp
run_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)
File "/content/LLaMA-Factory/src/llamafactory/train/sft/workflow.py", line 101, in run_sft
train_result = trainer.train(resume_from_checkpoint=training_args.resume_from_checkpoint)
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 2122, in train
return inner_training_loop(
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 2426, in _inner_training_loop
batch_samples, num_items_in_batch = self.get_batch_samples(epoch_iterator, num_batches)
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 5038, in get_batch_samples
batch_samples += [next(epoch_iterator)]
File "/usr/local/lib/python3.10/dist-packages/accelerate/data_loader.py", line 550, in __iter__
current_batch = next(dataloader_iter)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 631, in __next__
data = self._next_data()
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 675, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch
return self.collate_fn(data)
File "/content/LLaMA-Factory/src/llamafactory/data/collator.py", line 163, in __call__
features = super().__call__(features)
File "/content/LLaMA-Factory/src/llamafactory/data/collator.py", line 107, in __call__
fake_messages = self.template.mm_plugin.process_messages(fake_messages, fake_images, [], self.processor)
File "/content/LLaMA-Factory/src/llamafactory/data/mm_plugin.py", line 210, in process_messages
self._validate_input(images, videos)
File "/content/LLaMA-Factory/src/llamafactory/data/mm_plugin.py", line 76, in _validate_input
raise ValueError("This model does not support image input.")
ValueError: This model does not support image input.
My Custom dataset does not have images also i tries using dataset in colab example still same issue dataset="identity,alpaca_en_demo",
chat template mllama is throwing same error
Expected behavior
No response
Others
No response
The text was updated successfully, but these errors were encountered:
Reminder
System Info
llamafactory
version: 0.9.2.dev0Reproduction
models:
unsloth/Llama-3.2-11B-Vision-Instruct, meta-llama/Llama-3.2-11B-Vision-Instruct
The colab example provided is also failing
My Custom dataset does not have images also i tries using dataset in colab example still same issue dataset="identity,alpaca_en_demo",
chat template mllama is throwing same error
Expected behavior
No response
Others
No response
The text was updated successfully, but these errors were encountered: