Instructions to use mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit 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-6bit 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-6bit")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit") model = AutoModelForMaskedLM.from_pretrained("mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit", device_map="auto") - MLX
How to use mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit --local-dir answerdotai-ModernBERT-Large-Instruct-6bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download tokenizer.json from mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit: direct link, hf CLI and curl.
- Browser
- Download file 3.58 MB
-
https://huggingface.co/mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit/resolve/main/tokenizer.json
- Command line
-
hf download hf://mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/mlx-community/answerdotai-ModernBERT-Large-Instruct-6bit/resolve/main/tokenizer.json
3.58 MB
File too large to display, you can check the raw version instead.