Views
No views yet
evidence_chain: the selected supporting screenshots and localized evidenceanswer: the final answer1from transformers import AutoProcessor, AutoModelForImageTextToText
2import torch
3
4model_id = "PeiyangLiu/CoE-Wiki-CoE-8B"
5
6processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
7model = AutoModelForImageTextToText.from_pretrained(
8 model_id,
9 torch_dtype=torch.bfloat16,
10 device_map="auto",
11 trust_remote_code=True,
12)