Instructions to use leslyarun/grammatical-error-correction-quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leslyarun/grammatical-error-correction-quantized with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("leslyarun/grammatical-error-correction-quantized") model = AutoModelForSeq2SeqLM.from_pretrained("leslyarun/grammatical-error-correction-quantized") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -2
config.json
CHANGED
|
@@ -15,6 +15,7 @@
|
|
| 15 |
"is_encoder_decoder": true,
|
| 16 |
"is_gated_act": false,
|
| 17 |
"layer_norm_epsilon": 1e-06,
|
|
|
|
| 18 |
"n_positions": 512,
|
| 19 |
"num_decoder_layers": 12,
|
| 20 |
"num_heads": 12,
|
|
@@ -53,7 +54,7 @@
|
|
| 53 |
}
|
| 54 |
},
|
| 55 |
"torch_dtype": "float32",
|
| 56 |
-
"transformers_version": "4.
|
| 57 |
"use_cache": true,
|
| 58 |
"vocab_size": 32128
|
| 59 |
-
}
|
|
|
|
| 15 |
"is_encoder_decoder": true,
|
| 16 |
"is_gated_act": false,
|
| 17 |
"layer_norm_epsilon": 1e-06,
|
| 18 |
+
"model_type": "t5",
|
| 19 |
"n_positions": 512,
|
| 20 |
"num_decoder_layers": 12,
|
| 21 |
"num_heads": 12,
|
|
|
|
| 54 |
}
|
| 55 |
},
|
| 56 |
"torch_dtype": "float32",
|
| 57 |
+
"transformers_version": "4.20.1",
|
| 58 |
"use_cache": true,
|
| 59 |
"vocab_size": 32128
|
| 60 |
+
}
|