Transformers
Italian
matformer
bert
encoder
italian
masked-language-modeling
long-context
alibi
custom_code
Instructions to use AlBERTurin/AlBERTmini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlBERTurin/AlBERTmini with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AlBERTurin/AlBERTmini", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update modeling_matformer.py
Browse files- modeling_matformer.py +1 -1
modeling_matformer.py
CHANGED
|
@@ -26,7 +26,7 @@ except ImportError as e:
|
|
| 26 |
try:
|
| 27 |
subprocess.check_call([
|
| 28 |
sys.executable, "-m", "pip", "install",
|
| 29 |
-
"git+https://github.com/mrinaldi97/matformer.git"
|
| 30 |
])
|
| 31 |
|
| 32 |
from matformer.huggingface_integration import (
|
|
|
|
| 26 |
try:
|
| 27 |
subprocess.check_call([
|
| 28 |
sys.executable, "-m", "pip", "install",
|
| 29 |
+
"git+https://github.com/mrinaldi97/matformer.git@6762b2e00ec8b76bb1fb561580c895f58a51ca55"
|
| 30 |
])
|
| 31 |
|
| 32 |
from matformer.huggingface_integration import (
|