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
Commit ·
4a1fe43
1
Parent(s): f260daf
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,8 @@ tags:
|
|
| 5 |
- chemistry
|
| 6 |
- biology
|
| 7 |
widget:
|
| 8 |
-
-
|
|
|
|
| 9 |
inference:
|
| 10 |
parameters:
|
| 11 |
top_k: 15
|
|
|
|
| 5 |
- chemistry
|
| 6 |
- biology
|
| 7 |
widget:
|
| 8 |
+
- Disclaimer: "Unfortunately, the inference API does not work because we use two tokenizers (one for the SMILES and one for the amino acids) and HF-Spaces only allows you to select one tokenizer"
|
| 9 |
+
- example1: "r2sNC1=NC=NC2=C1N=CN2[C@@H]1O[C@H](COP(=O)([O-])OP(=O)([O-])OP(=O)([O-])[O-])[C@@H](O)[C@H]1O.*N[C@@H](CO)C(*)=O>>NC1=NC=NC2=C1N=CN2[C@@H]1O[C@H](COP(=O)([O-])OP(=O)([O-])[O-])[C@@H](O)[C@H]1O.[H+].*N[C@@H](COP(=O)([O-])[O-])C(*)=O</s>"
|
| 10 |
inference:
|
| 11 |
parameters:
|
| 12 |
top_k: 15
|