mallapraveen
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -37,8 +37,8 @@ transformers==4.37.2
|
|
37 |
```python
|
38 |
from transformers import AutoModel, AutoTokenizer
|
39 |
|
40 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
41 |
-
model = AutoModel.from_pretrained('
|
42 |
model = model.eval().cuda()
|
43 |
|
44 |
|
|
|
37 |
```python
|
38 |
from transformers import AutoModel, AutoTokenizer
|
39 |
|
40 |
+
tokenizer = AutoTokenizer.from_pretrained('mallapraveen/GOT-OCR2_0', trust_remote_code=True)
|
41 |
+
model = AutoModel.from_pretrained('mallapraveen/GOT-OCR2_0', trust_remote_code=True, low_cpu_mem_usage=True, device_map='cuda', use_safetensors=True, pad_token_id=tokenizer.eos_token_id)
|
42 |
model = model.eval().cuda()
|
43 |
|
44 |
|