Text / Intermediate

Set up private chat with MiniCPM5 1B

Install SGLang on Linux, launch the openbmb/MiniCPM5-1B model as a local OpenAI-compatible server, send your first chat request over localhost, and verify that the model replies. Everything runs on your own machine, so the conversation stays private.

EstimatedSource checked 9/25/2026
LOCALRENTED GPU

Before you begin

Difficulty
Intermediate
Software
Linux, Python, SGLang >= 0.5.12 (pip install "sglang[srt]>=0.5.12"), curl
Hardware
This setup uses SGLang. The exact checkpoint format, context, and runtime overhead determine its memory need; a weight-file size alone is not a GPU recommendation.
TEXT / SGLANGSOURCE-LINKED SETUP

Set up private chat with MiniCPM5 1B, step by step.

Install SGLang on Linux, launch the openbmb/MiniCPM5-1B model as a local OpenAI-compatible server, send your first chat request over localhost, and verify that the model replies. Everything runs on your own machine, so the conversation stays private.

Choose a package Run its commands Check the result
01
BEFORE YOU BEGIN

The documented package

This setup uses the package documented for this task. Review its source and supported platforms before starting.

The publisher has not provided a complete memory target for this task. Check its hardware guidance before starting.

CURRENT SETUP

MiniCPM5 1B · official

This setup uses SGLang. The exact checkpoint format, context, and runtime overhead determine its memory need; a weight-file size alone is not a GPU recommendation.

View weight source
02
THE WORKFLOW

Set up MiniCPM5 1B on your machine

Pick your operating system. Every command below is for the selected package and runtime.

01

Confirm the Linux and Python prerequisites

You need a Linux machine with Python and pip available. SGLang installs from PyPI, and the model weights download automatically from the Hugging Face repository openbmb/MiniCPM5-1B when the server starts. No custom kernels or model-code forks are required because MiniCPM5-1B uses the standard LlamaForCausalLM architecture.

02

Install SGLang

Install the SGLang server runtime and its dependencies into your Python environment.

pip install "sglang[srt]>=0.5.12"
03

Launch the local model server

Start the SGLang OpenAI-compatible server and point it at the openbmb/MiniCPM5-1B repository. The server listens on port 30000 and loads the BF16/FP16 model. This is the publisher-recommended backend for MiniCPM5, including tool calling.

python -m sglang.launch_server --model-path openbmb/MiniCPM5-1B --port 30000
04

Send your first prompt from a second terminal

Keep the server running and open another terminal. This chat completion request asks MiniCPM5-1B to introduce itself. The model field must match the loaded model identifier exactly, and the call goes only to localhost, so the request stays on your machine.

curl http://localhost:30000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "openbmb/MiniCPM5-1B", "messages": [{"role": "user", "content": "Who are you? Please briefly introduce yourself."}], "max_tokens": 128, "temperature": 0.7 }'
05

Verify the model response

Inspect the JSON returned by the curl command. A correct response contains a choices array whose first message has role "assistant" and a non-empty content string describing MiniCPM5-1B. If you see a self-introduction in the content field, the local chat is working and the model is responding.

06

Warm up your private chat session

Add your own turns to the messages array and resend the request to keep chatting privately with the model. You can raise max_tokens for longer answers or adjust temperature and top_p; the publisher recommends temperature=0.7, top_p=0.95 for the no-think chat template. If you see repetitive output, try temperature=1.0, top_p=0.95, min_p=0.0, repetition_penalty=1.05.

03
SUCCESS CHECK · MiniCPM5 1B

Check the first local reply

Ask a short question with a known answer. Confirm the selected local model responds and verify the answer yourself before using it for private work.

This is a source-linked setup, not a YouRunAI hardware test. Confirm your exact runtime version, package, and output before relying on it.

Back to setup steps

When it doesn’t go to plan

The model download is slow or fails while the server starts.

The server pulls openbmb/MiniCPM5-1B from Hugging Face on first launch. Make sure the machine can reach Hugging Face and has room to cache the weights, then start the launch command again.

Port 30000 is already in use.

Stop the process bound to that port or relaunch the server with a different --port value, then update the curl URL to the same port.

curl returns a connection refused or an empty reply.

The SGLang server may still be loading the model or may have exited. Wait for the startup log to report readiness, then rerun the curl request against http://localhost:30000/v1/chat/completions.

The response is repetitive or loops.

Adjust the sampling settings: try temperature=1.0, top_p=0.95, min_p=0.0, repetition_penalty=1.05 in the request body.

REFERENCE LIBRARY

Sources and files

Original instructions, model files, and compatibility notes behind this setup.

2 SOURCES

The model behind this workflow

MiniCPM5 1B
MY HARDWARE

Will it run on your machine?

Save your machine to see a personalized rating and its reasoning.

Add my hardware

Keep exploring