Upload vlm-streaming-sft-unsloth.py with huggingface_hub
Browse files
vlm-streaming-sft-unsloth.py
CHANGED
|
@@ -287,6 +287,7 @@ def main():
|
|
| 287 |
data_collator=UnslothVisionDataCollator(model, tokenizer),
|
| 288 |
train_dataset=dataset,
|
| 289 |
args=training_config,
|
|
|
|
| 290 |
)
|
| 291 |
|
| 292 |
# 4. Train
|
|
|
|
| 287 |
data_collator=UnslothVisionDataCollator(model, tokenizer),
|
| 288 |
train_dataset=dataset,
|
| 289 |
args=training_config,
|
| 290 |
+
processing_class=tokenizer, # Required for Unsloth to detect VLM
|
| 291 |
)
|
| 292 |
|
| 293 |
# 4. Train
|