mallapraveen commited on
Commit
8c5dc3d
·
verified ·
1 Parent(s): fd687ca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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('ucaslcl/GOT-OCR2_0', trust_remote_code=True)
41
- model = AutoModel.from_pretrained('ucaslcl/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
 
 
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