Instructions to use Synthyra/ANKH3_large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Synthyra/ANKH3_large with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Synthyra/ANKH3_large", trust_remote_code=True, dtype="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,
|