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

huggingface.co
Total runs: 1.4K
24-hour runs: 0
7-day runs: 131
30-day runs: 152
Model's Last Updated: May 06 2026
text-generation

Introduction of gemma-4-31B-it-assistant-bf16

Model Details of gemma-4-31B-it-assistant-bf16

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

This model was converted to MLX format from google/gemma-4-31B-it-assistant using mlx-vlm version 0.4.5 . Refer to the original model card for more details on the model.

Use with mlx
pip install -U mlx-vlm

Single request — --draft-block-size 6 :

python -m mlx_vlm generate \
    --model mlx-community/gemma-4-31B-it-bf16 \
    --draft-model mlx-community/gemma-4-31B-it-assistant-bf16 \
    --draft-kind mtp \
    --draft-block-size 6 \
    --prompt "Explain speculative decoding in 3 sentences." \
    --max-tokens 256 --temperature 0

Batched generation — --draft-block-size 3 , use batch_generate :

from mlx_vlm.utils import load
from mlx_vlm.generate import batch_generate
from mlx_vlm.speculative.drafters import load_drafter

model, processor = load("mlx-community/gemma-4-31B-it-bf16")
drafter = load_drafter("mlx-community/gemma-4-31B-it-assistant-bf16", kind="mtp")

prompts = [
    "Explain speculative decoding in 3 sentences.",
    "What is MLX?",
    "Summarize attention in one paragraph.",
    "List three prime numbers.",
]

response = batch_generate(
    model,
    processor,
    prompts=prompts,
    max_tokens=256,
    temperature=0.0,
    draft_model=drafter,
    draft_kind="mtp",
    draft_block_size=3,
)
for text in response.texts:
    print(text)
About

MLX port of Google's Gemma 4 Multi-Token Prediction (MTP) drafter for speculative decoding. A small 4-layer assistant drafts several candidate tokens per round; the full Gemma 4 target verifies them in a single forward pass. Output is byte-identical to no-drafter at temperature=0 .

Recommended --draft-block-size : 6 for single requests, 3 for batched generation.

See the drafter docs for architecture, supported pairings, performance numbers, and caveats.

Runs of mlx-community gemma-4-31B-it-assistant-bf16 on huggingface.co

1.4K
Total runs
0
24-hour runs
54
3-day runs
131
7-day runs
152
30-day runs

More Information About gemma-4-31B-it-assistant-bf16 huggingface.co Model

More gemma-4-31B-it-assistant-bf16 license Visit here:

https://choosealicense.com/licenses/gemma

gemma-4-31B-it-assistant-bf16 huggingface.co

gemma-4-31B-it-assistant-bf16 huggingface.co is an AI model on huggingface.co that provides gemma-4-31B-it-assistant-bf16's model effect (), which can be used instantly with this mlx-community gemma-4-31B-it-assistant-bf16 model. huggingface.co supports a free trial of the gemma-4-31B-it-assistant-bf16 model, and also provides paid use of the gemma-4-31B-it-assistant-bf16. Support call gemma-4-31B-it-assistant-bf16 model through api, including Node.js, Python, http.

gemma-4-31B-it-assistant-bf16 huggingface.co Url

https://huggingface.co/mlx-community/gemma-4-31B-it-assistant-bf16

mlx-community gemma-4-31B-it-assistant-bf16 online free

gemma-4-31B-it-assistant-bf16 huggingface.co is an online trial and call api platform, which integrates gemma-4-31B-it-assistant-bf16's modeling effects, including api services, and provides a free online trial of gemma-4-31B-it-assistant-bf16, you can try gemma-4-31B-it-assistant-bf16 online for free by clicking the link below.

mlx-community gemma-4-31B-it-assistant-bf16 online free url in huggingface.co:

https://huggingface.co/mlx-community/gemma-4-31B-it-assistant-bf16

gemma-4-31B-it-assistant-bf16 install

gemma-4-31B-it-assistant-bf16 is an open source model from GitHub that offers a free installation service, and any user can find gemma-4-31B-it-assistant-bf16 on GitHub to install. At the same time, huggingface.co provides the effect of gemma-4-31B-it-assistant-bf16 install, users can directly use gemma-4-31B-it-assistant-bf16 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

gemma-4-31B-it-assistant-bf16 install url in huggingface.co:

https://huggingface.co/mlx-community/gemma-4-31B-it-assistant-bf16

Url of gemma-4-31B-it-assistant-bf16

gemma-4-31B-it-assistant-bf16 huggingface.co Url

Provider of gemma-4-31B-it-assistant-bf16 huggingface.co

mlx-community
ORGANIZATIONS

Other API from mlx-community