openbmb / MiniCPM4-8B-mlx

huggingface.co
Total runs: 166
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: June 09 2025
text-generation

Introduction of MiniCPM4-8B-mlx

Model Details of MiniCPM4-8B-mlx

GitHub Repo | Technical Report

👋 Join us on Discord and WeChat

What's New
  • [2025.06.06] MiniCPM4 series are released! This model achieves ultimate efficiency improvements while maintaining optimal performance at the same scale! It can achieve over 5x generation acceleration on typical end-side chips! You can find the technical report here .🔥🔥🔥
  • [2025.06.09] MiniCPM4-8B-mlx and MiniCPM4-0.5B-mlx are available and you can run MiniCPM4 on your Apple devices! Thanks to pzc163 for providing this converted model version and related usage instructions.
MiniCPM4 Series

MiniCPM4 series are highly efficient large language models (LLMs) designed explicitly for end-side devices, which achieves this efficiency through systematic innovation in four key dimensions: model architecture, training data, training algorithms, and inference systems.

  • MiniCPM4-8B-mlx : MiniCPM4-8B in mlx format, which can used for Apple silicon. ( <-- you are here )
  • MiniCPM4-0.5B-mlx : MiniCPM4-0.5B in mlx format, which can used for Apple silicon.
  • MiniCPM4-8B : The flagship of MiniCPM4, with 8B parameters, trained on 8T tokens.
  • MiniCPM4-0.5B : The small version of MiniCPM4, with 0.5B parameters, trained on 1T tokens.
  • MiniCPM4-8B-Eagle-FRSpec : Eagle head for FRSpec, accelerating speculative inference for MiniCPM4-8B.
  • MiniCPM4-8B-Eagle-FRSpec-QAT-cpmcu : Eagle head trained with QAT for FRSpec, efficiently integrate speculation and quantization to achieve ultra acceleration for MiniCPM4-8B.
  • MiniCPM4-8B-Eagle-vLLM : Eagle head in vLLM format, accelerating speculative inference for MiniCPM4-8B.
  • MiniCPM4-8B-marlin-Eagle-vLLM : Quantized Eagle head for vLLM format, accelerating speculative inference for MiniCPM4-8B.
  • BitCPM4-0.5B : Extreme ternary quantization applied to MiniCPM4-0.5B compresses model parameters into ternary values, achieving a 90% reduction in bit width.
  • BitCPM4-1B : Extreme ternary quantization applied to MiniCPM3-1B compresses model parameters into ternary values, achieving a 90% reduction in bit width.
  • MiniCPM4-Survey : Based on MiniCPM4-8B, accepts users' quiries as input and autonomously generate trustworthy, long-form survey papers.
  • MiniCPM4-MCP : Based on MiniCPM4-8B, accepts users' queries and available MCP tools as input and autonomously calls relevant MCP tools to satisfy users' requirements.
Introduction

MiniCPM 4 is an extremely efficient edge-side large model that has undergone efficient optimization across four dimensions: model architecture, learning algorithms, training data, and inference systems, achieving ultimate efficiency improvements.

  • 🏗️ Efficient Model Architecture:

    • InfLLM v2 -- Trainable Sparse Attention Mechanism: Adopts a trainable sparse attention mechanism architecture where each token only needs to compute relevance with less than 5% of tokens in 128K long text processing, significantly reducing computational overhead for long texts
  • 🧠 Efficient Learning Algorithms:

    • Model Wind Tunnel 2.0 -- Efficient Predictable Scaling: Introduces scaling prediction methods for performance of downstream tasks, enabling more precise model training configuration search
    • BitCPM -- Ultimate Ternary Quantization: Compresses model parameter bit-width to 3 values, achieving 90% extreme model bit-width reduction
    • Efficient Training Engineering Optimization: Adopts FP8 low-precision computing technology combined with Multi-token Prediction training strategy
  • 📚 High-Quality Training Data:

    • UltraClean -- High-quality Pre-training Data Filtering and Generation: Builds iterative data cleaning strategies based on efficient data verification, open-sourcing high-quality Chinese and English pre-training dataset UltraFinweb
    • UltraChat v2 -- High-quality Supervised Fine-tuning Data Generation: Constructs large-scale high-quality supervised fine-tuning datasets covering multiple dimensions including knowledge-intensive data, reasoning-intensive data, instruction-following data, long text understanding data, and tool calling data
  • Efficient Inference System:

    • CPM.cu -- Lightweight and Efficient CUDA Inference Framework: Integrates sparse attention, model quantization, and speculative sampling to achieve efficient prefilling and decoding
    • ArkInfer -- Cross-platform Deployment System: Supports efficient deployment across multiple backend environments, providing flexible cross-platform adaptation capabilities
How to Run MiniCPM4-8B-mlx

Here is a guide on how to run the MiniCPM4-8B-mlx model from the command line using mlx-lm . You can use mlx-lm to interact with the MiniCPM4-8B-mlx model directly from your command line. This is a powerful tool that allows you to quickly test and use LLMs in the MLX format.

Basic Usage

Here is a specific example. This command will load the openbmb/MiniCPM4-8B-mlx model and generate text based on the prompt you provide: "hello, pls tell me which one is the most powerful LLM in the World".

mlx_lm.generate --model openbmb/MiniCPM4-8B-mlx --prompt "hello, pls tell me which one is the most powerful LLM in the World"
MLX-LM Command Line Parameters
  • mlx_lm.generate : This is the primary command in the mlx-lm toolkit used for text generation.
  • --model openbmb/MiniCPM4-8B-mlx : This parameter specifies the model to be loaded. openbmb/MiniCPM4-8B-mlx is the model's identifier on the Hugging Face Hub. mlx-lm will automatically download and cache the model from there.
  • --prompt "..." : This parameter is used to provide the initial text that you want the model to respond to or complete.
  • --max-tokens : Sets the maximum number of tokens to generate. For example, --max-tokens 200 will limit the output to 200 tokens.
  • --temp : Controls the randomness of the output. Higher temperature values (like 0.8) will produce more diverse and creative outputs, while lower values (like 0.2) will make the output more deterministic and focused. The default value is usually 0.6.
  • --seed : Sets a random seed to ensure reproducible results.
Example with Parameters

The following command will use a higher temperature value and limit the output length:

mlx_lm.generate --model openbmb/MiniCPM4-8B-mlx \
                --prompt "tell me a story about a robot who discovered music" \
                --max-tokens 500 \
                --temp 0.8
Evaluation Results

On two typical end-side chips, Jetson AGX Orin and RTX 4090, MiniCPM4 demonstrates significantly faster processing speed compared to similar-size models in long text processing tasks. As text length increases, MiniCPM4's efficiency advantage becomes more pronounced. On the Jetson AGX Orin platform, compared to Qwen3-8B, MiniCPM4 achieves approximately 7x decoding speed improvement.

benchmark

Comprehensive Evaluation

MiniCPM4 launches end-side versions with 8B and 0.5B parameter scales, both achieving best-in-class performance in their respective categories.

benchmark

Long Text Evaluation

MiniCPM4 is pre-trained on 32K long texts and achieves length extension through YaRN technology. In the 128K long text needle-in-a-haystack task, MiniCPM4 demonstrates outstanding performance.

long-niah

Statement
  • As a language model, MiniCPM generates content by learning from a vast amount of text.
  • However, it does not possess the ability to comprehend or express personal opinions or value judgments.
  • Any content generated by MiniCPM does not represent the viewpoints or positions of the model developers.
  • Therefore, when using content generated by MiniCPM, users should take full responsibility for evaluating and verifying it on their own.
LICENSE
  • This repository and MiniCPM models are released under the Apache-2.0 License.
Citation
  • Please cite our paper if you find our work valuable.
@article{minicpm4,
  title={{MiniCPM4}: Ultra-Efficient LLMs on End Devices},
  author={MiniCPM Team},
  year={2025}
}

Runs of openbmb MiniCPM4-8B-mlx on huggingface.co

166
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About MiniCPM4-8B-mlx huggingface.co Model

More MiniCPM4-8B-mlx license Visit here:

https://choosealicense.com/licenses/apache-2.0

MiniCPM4-8B-mlx huggingface.co

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

MiniCPM4-8B-mlx huggingface.co Url

https://huggingface.co/openbmb/MiniCPM4-8B-mlx

openbmb MiniCPM4-8B-mlx online free

MiniCPM4-8B-mlx huggingface.co is an online trial and call api platform, which integrates MiniCPM4-8B-mlx's modeling effects, including api services, and provides a free online trial of MiniCPM4-8B-mlx, you can try MiniCPM4-8B-mlx online for free by clicking the link below.

openbmb MiniCPM4-8B-mlx online free url in huggingface.co:

https://huggingface.co/openbmb/MiniCPM4-8B-mlx

MiniCPM4-8B-mlx install

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

MiniCPM4-8B-mlx install url in huggingface.co:

https://huggingface.co/openbmb/MiniCPM4-8B-mlx

Url of MiniCPM4-8B-mlx

MiniCPM4-8B-mlx huggingface.co Url

Provider of MiniCPM4-8B-mlx huggingface.co

openbmb
ORGANIZATIONS

Other API from openbmb

huggingface.co

Total runs: 200.2K
Run Growth: 91.4K
Growth Rate: 45.63%
Updated:October 05 2025
huggingface.co

Total runs: 134.8K
Run Growth: -3.0K
Growth Rate: -2.19%
Updated:March 10 2026
huggingface.co

Total runs: 117.8K
Run Growth: 4.9K
Growth Rate: 4.17%
Updated:September 15 2025
huggingface.co

Total runs: 112.2K
Run Growth: 89.6K
Growth Rate: 79.87%
Updated:May 10 2026
huggingface.co

Total runs: 106.9K
Run Growth: -45.2K
Growth Rate: -42.32%
Updated:June 13 2025
huggingface.co

Total runs: 25.5K
Run Growth: 411
Growth Rate: 1.61%
Updated:October 24 2025
huggingface.co

Total runs: 20.0K
Run Growth: 1.8K
Growth Rate: 8.78%
Updated:October 24 2025
huggingface.co

Total runs: 19.9K
Run Growth: 406
Growth Rate: 2.04%
Updated:January 15 2025
huggingface.co

Total runs: 11.5K
Run Growth: 10.4K
Growth Rate: 90.57%
Updated:May 07 2026
huggingface.co

Total runs: 10.7K
Run Growth: -2.0K
Growth Rate: -18.47%
Updated:June 02 2023
huggingface.co

Total runs: 7.7K
Run Growth: -4.1K
Growth Rate: -52.99%
Updated:February 27 2025
huggingface.co

Total runs: 6.5K
Run Growth: 523
Growth Rate: 8.06%
Updated:January 14 2026
huggingface.co

Total runs: 5.4K
Run Growth: 5.4K
Growth Rate: 99.14%
Updated:June 10 2025
huggingface.co

Total runs: 5.2K
Run Growth: 3.7K
Growth Rate: 70.38%
Updated:October 20 2025
huggingface.co

Total runs: 4.8K
Run Growth: 2.7K
Growth Rate: 56.92%
Updated:November 04 2024
huggingface.co

Total runs: 3.9K
Run Growth: -2.8K
Growth Rate: -70.69%
Updated:September 09 2026
huggingface.co

Total runs: 1.4K
Run Growth: 79
Growth Rate: 5.80%
Updated:January 15 2025
huggingface.co

Total runs: 1.0K
Run Growth: 153
Growth Rate: 14.93%
Updated:September 19 2025
huggingface.co

Total runs: 891
Run Growth: 76
Growth Rate: 8.53%
Updated:June 27 2023
huggingface.co

Total runs: 886
Run Growth: 492
Growth Rate: 55.53%
Updated:August 12 2023
huggingface.co

Total runs: 847
Run Growth: 48
Growth Rate: 5.67%
Updated:August 24 2023
huggingface.co

Total runs: 733
Run Growth: 388
Growth Rate: 54.11%
Updated:May 14 2024
huggingface.co

Total runs: 436
Run Growth: 372
Growth Rate: 85.32%
Updated:February 12 2026
huggingface.co

Total runs: 416
Run Growth: -75
Growth Rate: -18.03%
Updated:October 14 2023
huggingface.co

Total runs: 378
Run Growth: 147
Growth Rate: 39.41%
Updated:June 14 2025
huggingface.co

Total runs: 199
Run Growth: 46
Growth Rate: 23.12%
Updated:February 21 2024
huggingface.co

Total runs: 166
Run Growth: 59
Growth Rate: 35.54%
Updated:June 11 2025