llm-jp-4-8b-thinking-4bit-mlx
Model Summary
This is a 4-bit quantized MLX conversion of
llm-jp/llm-jp-4-8b-thinking,
a Japanese reasoning ("thinking") model developed by the LLM-jp project at the
National Institute of Informatics (NII) and collaborating institutions.
This is an unofficial, community-produced conversion for running the model efficiently on Apple Silicon (M-series) Macs using the MLX framework. All credit for the base model goes to the LLM-jp team -- thank you for releasing this model to the community.
Usage
CLI
pip install -U mlx-lm
mlx_lm.generate --model masahiroid/llm-jp-4-8b-thinking-4bit-mlx --prompt "人工知能の歴史について教えてください。" --max-tokens 512
Python API
from mlx_lm import load, generate
model, tokenizer = load("masahiroid/llm-jp-4-8b-thinking-4bit-mlx")
prompt = "人工知能の歴史について教えてください。"
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
response = generate(model, tokenizer, prompt=text, max_tokens=512, verbose=True)
print(response)
Specs
| Item | Value |
|---|---|
| Base model | llm-jp/llm-jp-4-8b-thinking (8B parameters) |
| Quantization | 4-bit, group size 64 |
| Framework | MLX |
| Estimated memory | ~5-6 GB (weights) |
| Target hardware | Apple Silicon (tested on M2, 16GB RAM) |
Notes
- This conversion was produced with
mlx_lm.convert --q-bits 4 --q-group-size 64. - This is a community conversion, not an official release from the LLM-jp project.
Security
Audited against its upstream with model-audit-lite: weight format, chat template, bundled code, and a machine-readable lineage (ML-BOM). Details, checksums and how to reproduce: SECURITY.md.