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
|
@@ -42,6 +42,6 @@ except ImportError as e:
|
|
| 42 |
except Exception as install_error:
|
| 43 |
raise ImportError(
|
| 44 |
"Failed to install Matformer. Install manually:\n"
|
| 45 |
-
"
|
| 46 |
"Or set MATFORMER_ROOT environment variable"
|
| 47 |
) from install_error
|
|
|
|
| 42 |
except Exception as install_error:
|
| 43 |
raise ImportError(
|
| 44 |
"Failed to install Matformer. Install manually:\n"
|
| 45 |
+
" git+https://github.com/mrinaldi97/matformer.git@alberturin-v1\n"
|
| 46 |
"Or set MATFORMER_ROOT environment variable"
|
| 47 |
) from install_error
|