Translation
Transformers
PyTorch
t5
text2text-generation
chemistry
biology
text-generation-inference
Instructions to use AI4PD/REXzyme with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AI4PD/REXzyme with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" 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("translation", model="AI4PD/REXzyme")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("AI4PD/REXzyme") model = AutoModelForSeq2SeqLM.from_pretrained("AI4PD/REXzyme") - Notebooks
- Google Colab
- Kaggle
Delete tokenizer_aa/config.json
Browse files- tokenizer_aa/config.json +0 -30
tokenizer_aa/config.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "google/t5-efficient-large",
|
| 3 |
-
"architectures": [
|
| 4 |
-
"T5ForConditionalGeneration"
|
| 5 |
-
],
|
| 6 |
-
"d_ff": 4096,
|
| 7 |
-
"d_kv": 64,
|
| 8 |
-
"d_model": 1024,
|
| 9 |
-
"decoder_start_token_id": 0,
|
| 10 |
-
"dense_act_fn": "relu",
|
| 11 |
-
"dropout_rate": 0.1,
|
| 12 |
-
"eos_token_id": 1,
|
| 13 |
-
"feed_forward_proj": "relu",
|
| 14 |
-
"initializer_factor": 1.0,
|
| 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": 24,
|
| 21 |
-
"num_heads": 16,
|
| 22 |
-
"num_layers": 24,
|
| 23 |
-
"pad_token_id": 0,
|
| 24 |
-
"relative_attention_max_distance": 128,
|
| 25 |
-
"relative_attention_num_buckets": 32,
|
| 26 |
-
"torch_dtype": "float32",
|
| 27 |
-
"transformers_version": "4.26.1",
|
| 28 |
-
"use_cache": true,
|
| 29 |
-
"vocab_size": 32128
|
| 30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|