Text Generation
Transformers
Safetensors
GGUF
Japanese
English
inkling2_loop
image-text-to-text
japanese
unsloth
Mixture of Experts
looped-transformer
on-policy-rft
context-distillation
conversational
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"
Download train_summary.json from devneko/Inkling-2-Mini-JA: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/devneko/Inkling-2-Mini-JA/resolve/main/train_summary.json
- Command line
-
hf download hf://devneko/Inkling-2-Mini-JA/train_summary.json
-
curl -L -o train_summary.json https://huggingface.co/devneko/Inkling-2-Mini-JA/resolve/main/train_summary.json
1.92 kB
| { | |
| "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": "" | |
| } | |
| } |