How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "ministral/Ministral-3b-instruct" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "ministral/Ministral-3b-instruct",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "ministral/Ministral-3b-instruct" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "ministral/Ministral-3b-instruct",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

image/jpeg

Model Description

Ministral is a series of language model, build with same architecture as the famous Mistral model, but with less size.

  • Model type: A 3B parameter GPT-like model fine-tuned on a mix of publicly available, synthetic datasets.
  • Language(s) (NLP): Primarily English
  • License: Apache 2.0
  • Finetuned from model: mistralai/Mistral-7B-v0.1
Downloads last month
32,274
Safetensors
Model size
3B params
Tensor type
BF16
Β·
Inference Providers NEW
Input a message to start chatting with ministral/Ministral-3b-instruct.

Model tree for ministral/Ministral-3b-instruct

Adapters
7 models
Finetunes
20 models
Merges
1 model
Quantizations
19 models

Spaces using ministral/Ministral-3b-instruct 4