Instructions to use alycialee/m2-bert-110M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alycialee/m2-bert-110M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="alycialee/m2-bert-110M", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("alycialee/m2-bert-110M", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("alycialee/m2-bert-110M", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
update revision in readme
Browse files
README.md
CHANGED
|
@@ -44,7 +44,7 @@ This model requires `trust_remote_code=True` to be passed to the `from_pretraine
|
|
| 44 |
mlm = AutoModelForMaskedLM.from_pretrained(
|
| 45 |
'alycialee/m2-bert-110M',
|
| 46 |
trust_remote_code=True,
|
| 47 |
-
revision='
|
| 48 |
)
|
| 49 |
```
|
| 50 |
|
|
|
|
| 44 |
mlm = AutoModelForMaskedLM.from_pretrained(
|
| 45 |
'alycialee/m2-bert-110M',
|
| 46 |
trust_remote_code=True,
|
| 47 |
+
revision='0405c12',
|
| 48 |
)
|
| 49 |
```
|
| 50 |
|