Instructions to use mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit") model = AutoModelForMaskedLM.from_pretrained("mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit", device_map="auto") - MLX
How to use mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit --local-dir answerdotai-ModernBERT-Large-Instruct-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download model.safetensors from mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit: direct link, hf CLI and curl.
- Browser
- Download file 252 MB
-
https://huggingface.co/mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit/resolve/main/model.safetensors
- Command line
-
hf download hf://mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/mlx-community/answerdotai-ModernBERT-Large-Instruct-4bit/resolve/main/model.safetensors
252 MB
- Xet hash:
- 13bce7e25c356c19c4ca936726aac0f5c45ae5b32fa0ec8b32d80af242e38fe1
- Size of remote file:
- 252 MB
- SHA256:
- 44c6b09c2fa037ee772e05038c1685dac99415c5a23cdfc20442f9fe6ed0e346
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.