GitHub Repo | Technical Report | Join Us
π Contact us in Discord and WeChat
MiniCPM4 and MiniCPM4.1 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.1-8B: The latest version of MiniCPM4, with 8B parameters, support fusion thinking.
MiniCPM4.1-8B-GPTQ: MiniCPM4.1-8B in GPTQ format.
MiniCPM4.1-8B-AutoAWQ: MiniCPM4.1-8B in AutoAWQ format.
MiniCPM-4.1-8B-Marlin: MiniCPM4.1-8B in Marlin format.
MiniCPM4.1-8B-GGUF: MiniCPM4.1-8B in GGUF format.
MiniCPM4.1-8B-MLX: MiniCPM4.1-8B in MLX format. (<-- you are here)
MiniCPM4.1-8B-Eagle3: Eagle3 model for MiniCPM4.1-8B.
MiniCPM4 Series
MiniCPM4 and MiniCPM4.1 are 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:
π§ Efficient Learning Algorithms:
π High-Quality Training Data:
β‘ Efficient Inference System:
pip install mlx-lm
from mlx_lm import load, generate
model_path = "MiniCPM4.1-8B-MLX "
model, tokenizer = load(model_path)
messages = [{"role": "user", "content": "εδΊ¬ζδ»δΉε₯½η©ηε°ζΉοΌ"}]
# if open think mode, use the following code
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
# if close think mode, use the following code
# prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False, enable_thinking=False)
response = generate(
model=model,
tokenizer=tokenizer,
prompt=prompt,
max_tokens=1500
)
print(response)
10 commits
GitHub Repo | Technical Report | Join Us
π Contact us in Discord and WeChat
MiniCPM4 and MiniCPM4.1 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.1-8B: The latest version of MiniCPM4, with 8B parameters, support fusion thinking.
MiniCPM4.1-8B-GPTQ: MiniCPM4.1-8B in GPTQ format.
MiniCPM4.1-8B-AutoAWQ: MiniCPM4.1-8B in AutoAWQ format.
MiniCPM-4.1-8B-Marlin: MiniCPM4.1-8B in Marlin format.
MiniCPM4.1-8B-GGUF: MiniCPM4.1-8B in GGUF format.
MiniCPM4.1-8B-MLX: MiniCPM4.1-8B in MLX format. (<-- you are here)
MiniCPM4.1-8B-Eagle3: Eagle3 model for MiniCPM4.1-8B.
MiniCPM4 Series
MiniCPM4 and MiniCPM4.1 are 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:
π§ Efficient Learning Algorithms:
π High-Quality Training Data:
β‘ Efficient Inference System:
pip install mlx-lm
from mlx_lm import load, generate
model_path = "MiniCPM4.1-8B-MLX "
model, tokenizer = load(model_path)
messages = [{"role": "user", "content": "εδΊ¬ζδ»δΉε₯½η©ηε°ζΉοΌ"}]
# if open think mode, use the following code
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
# if close think mode, use the following code
# prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False, enable_thinking=False)
response = generate(
model=model,
tokenizer=tokenizer,
prompt=prompt,
max_tokens=1500
)
print(response)
10 commits