Instructions to use YYLY66/mRNABERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YYLY66/mRNABERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="YYLY66/mRNABERT", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("YYLY66/mRNABERT", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("YYLY66/mRNABERT", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Upload configuration_bert.py
Browse files- configuration_bert.py +2 -2
configuration_bert.py
CHANGED
|
@@ -8,7 +8,7 @@ class BertConfig(PretrainedConfig):
|
|
| 8 |
|
| 9 |
def __init__(
|
| 10 |
self,
|
| 11 |
-
alibi_starting_size: int =
|
| 12 |
attention_probs_dropout_prob: float = 0.0,
|
| 13 |
**kwargs,
|
| 14 |
):
|
|
@@ -17,7 +17,7 @@ class BertConfig(PretrainedConfig):
|
|
| 17 |
Args:
|
| 18 |
alibi_starting_size (int): Use `alibi_starting_size` to determine how large of an alibi tensor to
|
| 19 |
create when initializing the model. You should be able to ignore this parameter in most cases.
|
| 20 |
-
|
| 21 |
attention_probs_dropout_prob (float): By default, turn off attention dropout in Mosaic BERT
|
| 22 |
(otherwise, Flash Attention will be off by default). Defaults to 0.0.
|
| 23 |
"""
|
|
|
|
| 8 |
|
| 9 |
def __init__(
|
| 10 |
self,
|
| 11 |
+
alibi_starting_size: int = 1024,
|
| 12 |
attention_probs_dropout_prob: float = 0.0,
|
| 13 |
**kwargs,
|
| 14 |
):
|
|
|
|
| 17 |
Args:
|
| 18 |
alibi_starting_size (int): Use `alibi_starting_size` to determine how large of an alibi tensor to
|
| 19 |
create when initializing the model. You should be able to ignore this parameter in most cases.
|
| 20 |
+
|
| 21 |
attention_probs_dropout_prob (float): By default, turn off attention dropout in Mosaic BERT
|
| 22 |
(otherwise, Flash Attention will be off by default). Defaults to 0.0.
|
| 23 |
"""
|