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

  • Log In
  • Sign Up

mlx-community
/
gemma-4-31B-it-assistant-bf16

Text Generation
MLX
Safetensors
gemma4_assistant
speculative-decoding
mtp
gemma
drafter
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/gemma-4-31B-it-assistant-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/gemma-4-31B-it-assistant-bf16 with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    # if on a CUDA device, also pip install mlx[cuda]
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("mlx-community/gemma-4-31B-it-assistant-bf16")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • MLX LM

    How to use mlx-community/gemma-4-31B-it-assistant-bf16 with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "mlx-community/gemma-4-31B-it-assistant-bf16" --prompt "Once upon a time"
gemma-4-31B-it-assistant-bf16
971 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
prince-canuma's picture
prince-canuma
README: batched example via batch_generate
28e9227 verified 2 days ago
  • .gitattributes
    1.57 kB
    Upload MLX bf16 drafter from google/gemma-4-31B-it-assistant 2 days ago
  • README.md
    2.3 kB
    README: batched example via batch_generate 2 days ago
  • config.json
    2.32 kB
    Upload MLX bf16 drafter from google/gemma-4-31B-it-assistant 2 days ago
  • generation_config.json
    307 Bytes
    Upload MLX bf16 drafter from google/gemma-4-31B-it-assistant 2 days ago
  • model.safetensors
    939 MB
    xet
    Upload MLX bf16 drafter from google/gemma-4-31B-it-assistant 2 days ago
  • tokenizer.json
    32.2 MB
    xet
    Upload MLX bf16 drafter from google/gemma-4-31B-it-assistant 2 days ago
  • tokenizer_config.json
    822 Bytes
    Upload MLX bf16 drafter from google/gemma-4-31B-it-assistant 2 days ago