You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

MahjongLM 10M Q4_K_M GGUF

This repository contains the Q4_K_M GGUF export of mitsutani/mahjonglm-10m.

GGUF file:

  • mahjonglm-10m-Q4_K_M.gguf

Training

The source model was trained on mitsutani/mahjonglm-dataset, using complete, imperfect, and omniscient MahjongLM views over Tenhou logs from 2011 through 2024.

Prompt Format

<bos> rule_player_4 rule_length_hanchan view_complete game_start

For view_omniscient, use:

<bos> rule_player_4 rule_length_hanchan view_omniscient game_start round_start wall

and then provide or generate the 136 wall tile tokens.

llama.cpp WordLevel Tokenizer Patch

MahjongLM uses a fixed WordLevel tokenizer over Mahjong log tokens rather than a byte-pair or sentencepiece tokenizer. The GGUF file contains the vocabulary metadata, but upstream llama.cpp builds may not know how to interpret this tokenizer type.

This repository includes the minimal llama.cpp patch in patches/:

git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
git apply /path/to/patches/0001-wordlevel-tokenizer-support.patch
cmake -B build
cmake --build build --config Release

After building the patched binary, run the model normally with llama-cli or compatible llama.cpp tools. The patch is tokenizer-only; the model architecture is plain Qwen3.

Downloads last month
-
GGUF
Model size
10M params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including mitsutani/mahjonglm-10m-q4-k-m-gguf