Upload folder using huggingface_hub
Browse files
README.md
CHANGED
@@ -206,6 +206,7 @@ model = AutoModel.from_pretrained(
|
|
206 |
# low_cpu_mem_usage=True,
|
207 |
# trust_remote_code=True,
|
208 |
# device_map=device_map).eval()
|
|
|
209 |
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
|
210 |
# set the max number of tiles in `max_num`
|
211 |
pixel_values = load_image('./examples/image1.jpg', max_num=6).to(torch.bfloat16).cuda()
|
|
|
206 |
# low_cpu_mem_usage=True,
|
207 |
# trust_remote_code=True,
|
208 |
# device_map=device_map).eval()
|
209 |
+
|
210 |
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
|
211 |
# set the max number of tiles in `max_num`
|
212 |
pixel_values = load_image('./examples/image1.jpg', max_num=6).to(torch.bfloat16).cuda()
|