Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

mlx-community
/
answerdotai-ModernBERT-base-4bit

Fill-Mask
Transformers
Safetensors
MLX
English
modernbert
masked-lm
long-context
Model card Files Files and versions
xet
Community
1

Instructions to use mlx-community/answerdotai-ModernBERT-base-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use mlx-community/answerdotai-ModernBERT-base-4bit with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="mlx-community/answerdotai-ModernBERT-base-4bit")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("mlx-community/answerdotai-ModernBERT-base-4bit")
    model = AutoModelForMaskedLM.from_pretrained("mlx-community/answerdotai-ModernBERT-base-4bit")
  • MLX

    How to use mlx-community/answerdotai-ModernBERT-base-4bit with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir answerdotai-ModernBERT-base-4bit mlx-community/answerdotai-ModernBERT-base-4bit
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
answerdotai-ModernBERT-base-4bit
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
prince-canuma's picture
prince-canuma
Update README.md
85a8e6f verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    1.05 kB
    Update README.md about 1 year ago
  • config.json
    1.31 kB
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors
    106 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors.index.json
    20.1 kB
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    694 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    3.58 MB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    20.8 kB
    Upload folder using huggingface_hub about 1 year ago