Transformers
Safetensors
t5
text2text-generation
protein-language-model
fastplms
custom_code
text-generation-inference
Instructions to use Synthyra/ANKH_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Synthyra/ANKH_base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Synthyra/ANKH_base", trust_remote_code=True) model = AutoModelForSeq2SeqLM.from_pretrained("Synthyra/ANKH_base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload modeling_ankh.py with huggingface_hub
Browse files- modeling_ankh.py +1 -0
modeling_ankh.py
CHANGED
|
@@ -784,6 +784,7 @@ class AnkhMaskedLMOutput(ModelOutput):
|
|
| 784 |
|
| 785 |
class FastAnkhConfig(PretrainedConfig):
|
| 786 |
model_type = "fast_ankh"
|
|
|
|
| 787 |
|
| 788 |
def __init__(
|
| 789 |
self,
|
|
|
|
| 784 |
|
| 785 |
class FastAnkhConfig(PretrainedConfig):
|
| 786 |
model_type = "fast_ankh"
|
| 787 |
+
attribute_map = {"hidden_size": "d_model"}
|
| 788 |
|
| 789 |
def __init__(
|
| 790 |
self,
|