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
File size: 134 Bytes
83feba6 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:44c6b09c2fa037ee772e05038c1685dac99415c5a23cdfc20442f9fe6ed0e346
size 251894743
|