Instructions to use mdevst/trocr-large-handwritten with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mdevst/trocr-large-handwritten with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="mdevst/trocr-large-handwritten")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("mdevst/trocr-large-handwritten") model = AutoModelForMultimodalLM.from_pretrained("mdevst/trocr-large-handwritten", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download onnx/decoder_model.onnx from mdevst/trocr-large-handwritten: direct link, hf CLI and curl.
- Browser
- Download file 1.22 GB
-
https://huggingface.co/mdevst/trocr-large-handwritten/resolve/main/onnx/decoder_model.onnx
- Command line
-
hf download hf://mdevst/trocr-large-handwritten/onnx/decoder_model.onnx
-
curl -L -o decoder_model.onnx https://huggingface.co/mdevst/trocr-large-handwritten/resolve/main/onnx/decoder_model.onnx
1.22 GB
- Xet hash:
- e3377e1be827f66b7c95aa0c4b3f2999c4e28200ccc40fd8f9d52534bfdadde2
- Size of remote file:
- 1.22 GB
- SHA256:
- 1f1a0af13803a3774461b8b3c5a8d57aa86253405550580641e1d0f9b0d5b12d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.