Instructions to use mohammadmahdinouri/modernAlbert-4-init with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mohammadmahdinouri/modernAlbert-4-init with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="mohammadmahdinouri/modernAlbert-4-init")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("mohammadmahdinouri/modernAlbert-4-init", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from mohammadmahdinouri/modernAlbert-4-init: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/mohammadmahdinouri/modernAlbert-4-init/resolve/main/config.json
- Command line
-
hf download hf://mohammadmahdinouri/modernAlbert-4-init/config.json
-
curl -L -o config.json https://huggingface.co/mohammadmahdinouri/modernAlbert-4-init/resolve/main/config.json
637 Bytes
| { | |
| "adapter_reduction": 16, | |
| "architectures": [ | |
| "ModernALBERTForMaskedLM" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "embedding_size": 128, | |
| "group_depth": 8, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 8192, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 8192, | |
| "model_type": "ModernALBERT", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "pad_token_id": 0, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.51.3", | |
| "use_adapter": true, | |
| "use_cache": true, | |
| "vocab_size": 50368 | |
| } | |