Instructions to use cyttic/trocr-aug3track-250k-BY with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cyttic/trocr-aug3track-250k-BY with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="cyttic/trocr-aug3track-250k-BY")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("cyttic/trocr-aug3track-250k-BY") model = AutoModelForMultimodalLM.from_pretrained("cyttic/trocr-aug3track-250k-BY", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cyttic/trocr-aug3track-250k-BY with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cyttic/trocr-aug3track-250k-BY" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cyttic/trocr-aug3track-250k-BY", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cyttic/trocr-aug3track-250k-BY
- SGLang
How to use cyttic/trocr-aug3track-250k-BY with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "cyttic/trocr-aug3track-250k-BY" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cyttic/trocr-aug3track-250k-BY", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "cyttic/trocr-aug3track-250k-BY" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cyttic/trocr-aug3track-250k-BY", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cyttic/trocr-aug3track-250k-BY with Docker Model Runner:
docker model run hf.co/cyttic/trocr-aug3track-250k-BY
trocr-aug3track-250k-BY
This model is a fine-tuned version of cyttic/exp2-frozen-benyehuda-cont on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.5739
- Cer: 0.0328
- Wer: 0.0932
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 4650
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Cer | Wer |
|---|---|---|---|---|---|
| 3.6177 | 0.1290 | 2000 | 1.7206 | 0.1933 | 0.4036 |
| 3.4429 | 0.2581 | 4000 | 1.4884 | 0.1418 | 0.3252 |
| 3.0541 | 0.3871 | 6000 | 1.3425 | 0.1179 | 0.2748 |
| 2.6467 | 0.5161 | 8000 | 1.1817 | 0.0932 | 0.2360 |
| 2.4770 | 0.6452 | 10000 | 1.0852 | 0.0817 | 0.2123 |
| 2.3299 | 0.7742 | 12000 | 1.0264 | 0.0724 | 0.1942 |
| 2.0922 | 0.9032 | 14000 | 0.9683 | 0.0698 | 0.1837 |
| 1.5035 | 1.0323 | 16000 | 0.8859 | 0.0607 | 0.1651 |
| 1.6404 | 1.1613 | 18000 | 0.8460 | 0.0519 | 0.1473 |
| 1.6054 | 1.2903 | 20000 | 0.8100 | 0.0497 | 0.1412 |
| 1.4712 | 1.4194 | 22000 | 0.7731 | 0.0467 | 0.1319 |
| 1.4187 | 1.5484 | 24000 | 0.7354 | 0.0442 | 0.1251 |
| 1.4411 | 1.6774 | 26000 | 0.7078 | 0.0407 | 0.1195 |
| 1.3636 | 1.8065 | 28000 | 0.6811 | 0.0373 | 0.1107 |
| 1.2664 | 1.9355 | 30000 | 0.6579 | 0.0376 | 0.1076 |
| 0.9757 | 2.0645 | 32000 | 0.6400 | 0.0362 | 0.1068 |
| 1.0151 | 2.1935 | 34000 | 0.6313 | 0.0392 | 0.1111 |
| 1.0911 | 2.3226 | 36000 | 0.6159 | 0.0358 | 0.1033 |
| 1.0140 | 2.4516 | 38000 | 0.6094 | 0.0337 | 0.0991 |
| 0.9334 | 2.5806 | 40000 | 0.5947 | 0.0352 | 0.0998 |
| 0.9798 | 2.7097 | 42000 | 0.5841 | 0.0335 | 0.0957 |
| 0.9185 | 2.8387 | 44000 | 0.5781 | 0.0340 | 0.0956 |
| 1.0230 | 2.9677 | 46000 | 0.5743 | 0.0325 | 0.0930 |
| 0.9672 | 3.0 | 46500 | 0.5739 | 0.0328 | 0.0932 |
Framework versions
- Transformers 5.15.0
- Pytorch 2.11.0+cu128
- Datasets 5.0.1
- Tokenizers 0.22.2
- Downloads last month
- 12
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for cyttic/trocr-aug3track-250k-BY
Base model
cyttic/exp2-frozen-benyehuda-cont