File size: 234 Bytes
5fa1a76
 
 
 
 
 
1
2
3
4
5
6
", return_tensors="pt").to(0)
predictions = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(predictions[0], skip_special_tokens=True))

Fine-tuning
To fine-tune MatCha, refer to the pix2struct fine-tuning notebook.