Instructions to use atlijas/byt5-is-ocr-post-processing-modern-texts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use atlijas/byt5-is-ocr-post-processing-modern-texts with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("atlijas/byt5-is-ocr-post-processing-modern-texts") model = AutoModelForSeq2SeqLM.from_pretrained("atlijas/byt5-is-ocr-post-processing-modern-texts", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
| 14 |
"initializer_factor": 1.0,
|
| 15 |
"is_encoder_decoder": true,
|
| 16 |
"layer_norm_epsilon": 1e-06,
|
|
|
|
| 17 |
"model_type": "t5",
|
| 18 |
"num_decoder_layers": 6,
|
| 19 |
"num_heads": 12,
|
|
|
|
| 14 |
"initializer_factor": 1.0,
|
| 15 |
"is_encoder_decoder": true,
|
| 16 |
"layer_norm_epsilon": 1e-06,
|
| 17 |
+
"max_length": 256,
|
| 18 |
"model_type": "t5",
|
| 19 |
"num_decoder_layers": 6,
|
| 20 |
"num_heads": 12,
|