Instructions to use devneko/Inkling-2-Mini-JA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use devneko/Inkling-2-Mini-JA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="devneko/Inkling-2-Mini-JA") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("devneko/Inkling-2-Mini-JA") model = AutoModelForMultimodalLM.from_pretrained("devneko/Inkling-2-Mini-JA", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use devneko/Inkling-2-Mini-JA with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf devneko/Inkling-2-Mini-JA:Q8_0 # Run inference directly in the terminal: llama cli -hf devneko/Inkling-2-Mini-JA:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf devneko/Inkling-2-Mini-JA:Q8_0 # Run inference directly in the terminal: llama cli -hf devneko/Inkling-2-Mini-JA:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf devneko/Inkling-2-Mini-JA:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf devneko/Inkling-2-Mini-JA:Q8_0
Use Docker
docker model run hf.co/devneko/Inkling-2-Mini-JA:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use devneko/Inkling-2-Mini-JA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "devneko/Inkling-2-Mini-JA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "devneko/Inkling-2-Mini-JA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/devneko/Inkling-2-Mini-JA:Q8_0
- SGLang
How to use devneko/Inkling-2-Mini-JA with 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 "devneko/Inkling-2-Mini-JA" \ --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": "devneko/Inkling-2-Mini-JA", "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 "devneko/Inkling-2-Mini-JA" \ --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": "devneko/Inkling-2-Mini-JA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use devneko/Inkling-2-Mini-JA with Ollama:
ollama run hf.co/devneko/Inkling-2-Mini-JA:Q8_0
- Unsloth Desktop
- Pi
How to use devneko/Inkling-2-Mini-JA with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf devneko/Inkling-2-Mini-JA:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "devneko/Inkling-2-Mini-JA:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use devneko/Inkling-2-Mini-JA with Docker Model Runner:
docker model run hf.co/devneko/Inkling-2-Mini-JA:Q8_0
- Lemonade
How to use devneko/Inkling-2-Mini-JA with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull devneko/Inkling-2-Mini-JA:Q8_0
Run and chat with the model
lemonade run user.Inkling-2-Mini-JA-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use devneko/Inkling-2-Mini-JA with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf devneko/Inkling-2-Mini-JA:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default devneko/Inkling-2-Mini-JA:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use devneko/Inkling-2-Mini-JA with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf devneko/Inkling-2-Mini-JA:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "devneko/Inkling-2-Mini-JA:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Configure Hermes
# Install Hermes:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
hermes setup# Point Hermes at the local server:
hermes config set model.provider custom
hermes config set model.base_url http://127.0.0.1:9931/v1
hermes config set model.default devneko/Inkling-2-Mini-JA:Q8_0Run Hermes
hermesdevneko/Inkling-2-Mini-JA
thinkingmachines/Inkling-2-Mini๏ผ26.4B Looped MoEใActive 3.4B / 3รใซใผใๅฎ่ณช 5.4B๏ผใใใผในใซใ100% ใชใณใใชใทใผใปใณใณใใญในใ่ธ็๏ผใชใธใงใฏใทใงใณใตใณใใชใณใฐ RFT ใซใใฃใฆๆฅๆฌ่ชๆง่ฝใๅไธใใใใขใใซใงใใ
ใใณใใใผใฏๆฏ่ผ๏ผๅไธ่จญๅIDใปreasoning_effort="low"ใปtemperature=0.0๏ผ
โป Qwen3.8-27B ใฎๆฐๅคใฏๅ
ฌๅผๅ
ฌ่กจๅคใงใฏใชใใๅไธ่ฉไพกใใผใในใปๅไธ่จญๅID๏ผvLLM BF16, reasoning_effort="low"๏ผใงใฎๅฎๆธฌๅคใงใใInkling-2-Mini๏ผBase / FT ๅพ๏ผใฏ llama-server๏ผQ8_0 / UD-Q8_K_XL GGUF๏ผใง่จๆธฌใใฆใใพใใ
1. ๅ ฌ้ๆฅๆฌ่ชใใณใใใผใฏ๏ผ7็จฎ๏ผ
| Benchmark | ไปถๆฐ | Qwen3.8-27B (ๅฎๆธฌ) | Inkling-2-Mini (Base) | Inkling-2-Mini-JA (Ours) | ฮ vs Base | ฮ vs Qwen3.8 | ๅบๅ ธ |
|---|---|---|---|---|---|---|---|
JamC-QA |
600 | 61.33% | 54.17% | 53.83% | -0.34pt | -7.50pt | sbintuitions/JamC-QA (test) |
MMMLU-JA |
200 | 86.00% | 87.00% | 88.00% | +1.00pt | +2.00pt | openai/MMMLU (JA_JP/test) |
MMLU-ProX-JA |
200 | 74.50% | 74.50% | 76.00% | +1.50pt | +1.50pt | li-lab/MMLU-ProX (ja/test) |
MGSM-JA |
200 | 89.50% | 89.50% | 90.50% | +1.00pt | +1.00pt | jbross-ibm-research/mgsm (ja/test) |
JSTS (Pearson) |
300 | 90.27% | 89.22% | 88.98% | -0.24pt | -1.29pt | yahoojapan/JGLUE (v1.3 valid) |
JSTS (Spearman) |
300 | 88.43% | 87.42% | 86.53% | -0.89pt | -1.90pt | yahoojapan/JGLUE (v1.3 valid) |
JNLI |
300 | 78.33% | 74.67% | 71.67% | -3.00pt | -6.66pt | yahoojapan/JGLUE (v1.3 valid) |
JCommonsenseQA (*) |
300 | 97.33% | 97.67% | 98.67% | +1.00pt | +1.34pt | sbintuitions/JCommonsenseQA (valid) |
| ๅ ฌ้ๆฅๆฌ่ช 7็จฎๅนณๅ | 2100 | 82.47% | 80.96% | 81.09% | +0.13pt | -1.38pt | JSTS ใฏ Pearson ๆก็จ |
(*) JCommonsenseQA ใฏ train ในใใชใใ็ฑๆฅ 281 ไปถใๅญฆ็ฟใใผใฟใซๅซใใใใคใณใใฃในใใชใใฅใผใทใงใณ่ฉไพกใงใ๏ผvalidation ใจใฎ้่คใชใ๏ผใJSTSใปJNLI ใฏๅญฆ็ฟใใผใฟๆชไฝฟ็จใฎๅฎๅ
จใผใญใทใงใใ่ฉไพกใงใใ
2. ็ฌ่ชใใณใใใผใฏ๏ผ่ชไฝใใผใฟใปใใ๏ผใใใณ่ฑ่ชใขใณใซใผ
| Benchmark | ไปถๆฐ | Qwen3.8-27B (ๅฎๆธฌ) | Inkling-2-Mini (Base) | Inkling-2-Mini-JA (Ours) | ฮ vs Base | ฮ vs Qwen3.8 | ๅ่ |
|---|---|---|---|---|---|---|---|
J-IFEval๏ผ็ฌ่ชใปPrompt Strict๏ผ |
120 | 68.33% | 94.17% | 95.00% | +0.83pt | +26.67pt | ็ฌ่ชใใผใฟใปใใ๏ผ่ชไฝ 120 ๅ๏ผ |
J-IFEval๏ผ็ฌ่ชใปInst Strict๏ผ |
120 | 75.43% | 97.61% | 98.26% | +0.65pt | +22.83pt | ็ฌ่ชใใผใฟใปใใ๏ผ่ชไฝ 120 ๅ๏ผ |
| ๆฅๆฌ่ชๅ จ 8็จฎๅนณๅ๏ผ็ฌ่ชๅซใ๏ผ | 2220 | 80.70% | 82.61% | 82.83% | +0.22pt | +2.13pt | ๅ ฌ้ 7็จฎ + J-IFEval๏ผ็ฌ่ช Prompt๏ผ |
MMLU-EN Anchor |
200 | 89.00% | 86.50% | 87.50% | +1.00pt | -1.50pt | cais/mmlu (all/test, ่ฑ่ชๅฟๅด็ขบ่ช) |
3. JamC-QA ใซใใดใชๅฅๅ ่จณ
| Category | Qwen3.8-27B (ๅฎๆธฌ) | Inkling-2-Mini (Base) | Inkling-2-Mini-JA (Ours) | ฮ vs Base |
|---|---|---|---|---|
culture |
60.8% | 44.3% | 49.4% | +5.1pt |
custom |
72.2% | 59.5% | 62.0% | +2.5pt |
geography |
46.8% | 35.4% | 36.7% | +1.3pt |
government |
67.1% | 72.2% | 59.5% | -12.7pt |
healthcare |
72.9% | 79.2% | 77.1% | -2.1pt |
history |
69.6% | 59.5% | 55.7% | -3.8pt |
law |
62.0% | 59.5% | 62.0% | +2.5pt |
regional_identity |
43.6% | 33.3% | 37.2% | +3.9pt |
ๅญฆ็ฟๆๆณใปๅ็พๆ ๅ ฑ
- ใใผในใขใใซ:
thinkingmachines/Inkling-2-Mini(unsloth/Inkling-2-Mini) - ๅญฆ็ฟใใผใฟใปใใ:
devneko/inkling-2-mini-ja-rft-v5๏ผParquetใๅ จ่ฉไพกใใณใใใผใฏใซๅฏพใใฆ 18-gram ใใณใณใฟใใใผใทใงใณๅฎๆฝๆธใฟ๏ผ - ๆๆณ: ใใผในใขใใซ่ช่บซใฎใใคใใฃใ
<|content_thinking|>ๅๅธใๅฎๅ จใซไฟๆใใ 100% ใชใณใใชใทใผใปใณใณใใญในใ่ธ็ RFT๏ผ8้ ๅๆฅๆฌ Wikipedia 4ๆใปJAQKET/AI็ใปJCommonsenseQAใป่ฑ่ช MMLU ใชใใฌใค๏ผ - ใใฌใผใ ใฏใผใฏ: Unsloth (
FastModel16-bit LoRA +train_on_responses_only) - ๅๆขฑใใกใคใซ:
- BF16 ใใผใธๆธใฟใขใใซ้ใฟ๏ผใซใผใ็ดไธ๏ผ
- Q8_0 GGUF๏ผ
gguf/Inkling-2-Mini-JA-Q8_0.gguf๏ผ - LoRA ใขใใใฟ๏ผ
lora_adapter/๏ผ - ๆจ่ซใณใผใใปๆจ่ซใกใฟใใผใฟ๏ผ
inference.py,inference_metadata.json๏ผ - ๅญฆ็ฟใใคใใผใใฉใกใผใฟใป่ฉไพก็ตๆ๏ผ
train_summary.json,eval_comparison.json๏ผ trackioใกใใชใฏใน DB๏ผtrackio_metrics/โ Phase 0ใv5 ใใใณ JGLUE ่ฉไพกใญใฐใๅๆขฑ๏ผ
ๅญฆ็ฟใใคใใผใใฉใกใผใฟ (train_summary.json)
{
"run_name": "sft_v5_onpolicy_rft",
"train_samples": 1991,
"global_step": 250,
"training_loss": 0.3023825306892395,
"elapsed_s": 5368.3,
"peak_vram_gb": 58.95,
"mask_check": {
"sample0_total_tokens": 343,
"sample0_trainable_tokens": 198,
"sample0_trainable_ratio": 0.577,
"masked_preview": "<|message_system|><|content_text|>Thinking effort level: 0.2<|end_message|><|message_user|><|content_text|>ไปฅไธใฎๆฅๆฌ่ชใฎ่ณชๅใซๅฏพใใฆใๆใ้ฉๅใช้ธๆ่ขใ1ใค้ธใณใๆๅพใซๅฟ
ใใๅ็ญ: Xใ๏ผXใฏAใDใฎ่ฑๅคงๆๅญ1ๆๅญ๏ผใฎๅฝขๅผใง็ญใใฆใใ ใใใ\n\n่ณชๅ: ใใฉใณในใฎ็ๆใงใใซใใผๆใใดใกใญใขๆใใใซใใณๆใฎใใกใๆใๅคใๆไปฃใฎ็ๆใฏใฉใ๏ผ\nA. ใใซใใณๆ\nB.",
"unmasked_preview": "<|content_thinking|>The user asks in Japanese: Among French dynasties, Capetian, Valois, Bourbon, which is the oldest? Options: A Norman, B Capetian, C Hainaut? Actually ใใกใๆ maybe? D Lancaster. The question wording: \"ใใฉใณในใฎ็ๆใงใใซใใผๆใใดใกใญใขๆใใใซใใณๆใฎใใกใๆใๅคใๆไปฃใฎ็ๆใฏใฉใ๏ผ\" Means among French dynasties, of Capet"
},
"args": {
"model_name": "unsloth/Inkling-2-Mini",
"dataset": "/root/inkling_ja/data/inkling_ja_rft_v5",
"train_limit": 0,
"val_limit": 150,
"max_seq_length": 2048,
"load_in_4bit": true,
"bf16_lora": true,
"lora_r": 16,
"lora_alpha": 16,
"no_attn_lora": false,
"no_mlp_lora": false,
"grad_accum": 16,
"lr": 1.5e-05,
"weight_decay": 0.01,
"warmup_ratio": 0.08,
"epochs": 2.0,
"max_steps": -1,
"save_steps": 150,
"eval_steps": 75,
"logging_steps": 5,
"seed": 3407,
"output_dir": "/root/inkling_ja/outputs/sft_v5_rft",
"run_name": "sft_v5_onpolicy_rft",
"trackio_project": "inkling-2-mini-ja",
"merge_16bit_dir": ""
}
}
ๆจ่ซๆนๆณ
ๅๆขฑใฎ inference.py ใใใณ inference_metadata.json ใๅ็
งใใฆใใ ใใใllama.cpp ใงใฎ่ตทๅไพ:
llama-server \
-m gguf/Inkling-2-Mini-JA-Q8_0.gguf \
--host 127.0.0.1 --port 8000 \
-ngl 99 -fa on --jinja \
--chat-template-kwargs '{"reasoning_effort": "low"}'
- Downloads last month
- 256
Model tree for devneko/Inkling-2-Mini-JA
Base model
thinkingmachines/Inkling-2-Mini
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf devneko/Inkling-2-Mini-JA:Q8_0