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 "flammenai/Mahou-1.5-mistral-nemo-12B" \
    --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": "flammenai/Mahou-1.5-mistral-nemo-12B",
		"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 "flammenai/Mahou-1.5-mistral-nemo-12B" \
        --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": "flammenai/Mahou-1.5-mistral-nemo-12B",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

image/png

Mahou-1.5-mistral-nemo-12B

Mahou is designed to provide short messages in a conversational context. It is capable of casual conversation and character roleplay.

Chat Format

This model has been trained to use ChatML format.

<|im_start|>system
{{system}}<|im_end|>
<|im_start|>{{char}}
{{message}}<|im_end|>
<|im_start|>{{user}}
{{message}}<|im_end|>

Roleplay Format

  • Speech without quotes.
  • Actions in *asterisks*
*leans against wall cooly* so like, i just casted a super strong spell at magician academy today, not gonna lie, felt badass.

SillyTavern Settings

  1. Use ChatML for the Context Template.
  2. Enable Instruct Mode.
  3. Use the Mahou ChatML Instruct preset.
  4. Use the Mahou Sampler preset.

Method

ORPO finetuned with 4x H100 for 3 epochs.

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 26.28
IFEval (0-Shot) 67.51
BBH (3-Shot) 36.26
MATH Lvl 5 (4-Shot) 5.06
GPQA (0-shot) 3.47
MuSR (0-shot) 16.47
MMLU-PRO (5-shot) 28.91
Downloads last month
79
Safetensors
Model size
12B params
Tensor type
BF16
Β·
Inference Providers NEW
Input a message to start chatting with flammenai/Mahou-1.5-mistral-nemo-12B.

Model tree for flammenai/Mahou-1.5-mistral-nemo-12B

Dataset used to train flammenai/Mahou-1.5-mistral-nemo-12B

Spaces using flammenai/Mahou-1.5-mistral-nemo-12B 6

Collections including flammenai/Mahou-1.5-mistral-nemo-12B

Evaluation results