Instructions to use fukayatti0/jev-japanese-judgment-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use fukayatti0/jev-japanese-judgment-v2 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use fukayatti0/jev-japanese-judgment-v2 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 fukayatti0/jev-japanese-judgment-v2:Q4_K_M # Run inference directly in the terminal: llama cli -hf fukayatti0/jev-japanese-judgment-v2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf fukayatti0/jev-japanese-judgment-v2:Q4_K_M # Run inference directly in the terminal: llama cli -hf fukayatti0/jev-japanese-judgment-v2:Q4_K_M
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 fukayatti0/jev-japanese-judgment-v2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf fukayatti0/jev-japanese-judgment-v2:Q4_K_M
Use Docker
docker model run hf.co/fukayatti0/jev-japanese-judgment-v2:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use fukayatti0/jev-japanese-judgment-v2 with Ollama:
ollama run hf.co/fukayatti0/jev-japanese-judgment-v2:Q4_K_M
- Unsloth Desktop
- Pi
How to use fukayatti0/jev-japanese-judgment-v2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fukayatti0/jev-japanese-judgment-v2:Q4_K_M
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": "fukayatti0/jev-japanese-judgment-v2:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use fukayatti0/jev-japanese-judgment-v2 with Docker Model Runner:
docker model run hf.co/fukayatti0/jev-japanese-judgment-v2:Q4_K_M
- Lemonade
How to use fukayatti0/jev-japanese-judgment-v2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull fukayatti0/jev-japanese-judgment-v2:Q4_K_M
Run and chat with the model
lemonade run user.jev-japanese-judgment-v2-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use fukayatti0/jev-japanese-judgment-v2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fukayatti0/jev-japanese-judgment-v2:Q4_K_M
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 fukayatti0/jev-japanese-judgment-v2:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use fukayatti0/jev-japanese-judgment-v2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf fukayatti0/jev-japanese-judgment-v2:Q4_K_M
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 "fukayatti0/jev-japanese-judgment-v2:Q4_K_M" \ --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"
fukayatti0/jev-japanese-judgment-v2
fukayatti0/jev-japanese-judgment (v1) を出発点に、yes/no(noul)と段階評価(score) の判定を追加学習した版。
LiquidAI/LFM2.5-1.2B-JP-202606 をバックボーンに、文脈と候補から確率を直接返す候補スコアリング型のモデル(生成なし)。
標準の transformers では読み込めない。コードは https://github.com/fukayatti/jev-japanese-judgment 。
v1からの変更
- 追加学習データ(約2.97万件): JNLI(yes/no、はい/いいえを半々に調整) + JCoLA(文法的に自然か、yes/no、半々に調整)
- JSTS(0〜5段階、段階ごとに上限1500件) + JSICK(1〜5段階、上限800件) + v1の学習データから各ソース最大3400件(忘却対策)。
- 学習: v1(epoch1)のLoRA+ヘッドから、1エポック、学習率1e-4。
- 評価には学習に一度も使っていない分割(JNLI test / JCoLA valid / JSTS validation / JSICK test / JCommonsenseQA validation / chABSA test / JSNLI dev)だけを使っている。
評価結果 (bf16、未使用データ)
追加したタスク(1600件、yes/noは半々の200+200なのでチャンスは50%):
| 評価セット | v1 | v2 |
|---|---|---|
| JNLI (yes/no) | 80.8% | 85.8% |
| JCoLA (yes/no) | 51.7% | 58.0% |
| JSTS (0〜5段階、チャンス約17%) | 20.5% | 58.0% |
| JSICK (1〜5段階、チャンス20%) | 28.0% | 70.2% |
| 全体 | 45.2% | 68.0% |
| ECE | 0.1245 | 0.0207 |
元の3タスク(1200件):
| 評価セット | v1 | v2 |
|---|---|---|
| commonsense_qa | 91.8% | 89.0% |
| sentiment | 92.5% | 93.8% |
| nli | 92.2% | 89.2% |
| 全体 | 92.2% | 90.7% |
| ECE | 0.0145 | 0.0258 |
GGUF版 (llama.cpp / CPU・GPU向け、LoRAマージ済み)
gguf/jev-*.gguf と gguf/head.npz。llama-embedding --pooling last のhidden stateに、head.npz の小さなMLPヘッドを適用する。
使い方は https://github.com/fukayatti/jev-japanese-judgment の scripts/ask_gguf_lite.py(標準ライブラリのみ)。
追加タスク(未使用データ1600件):
| ファイル | サイズ | JNLI | JCoLA | JSTS | JSICK | 全体 | ECE |
|---|---|---|---|---|---|---|---|
| gguf/jev-Q4_K_M.gguf | 698MB | 84.0% | 57.5% | 58.8% | 70.0% | 67.6% | 0.0199 |
| gguf/jev-Q8_0.gguf | 1.2GB | 85.5% | 57.8% | 58.8% | 70.3% | 68.1% | 0.0221 |
元の3タスク(未使用データ1200件):
| ファイル | サイズ | commonsense_qa | sentiment | nli | 全体 | ECE |
|---|---|---|---|---|---|---|
| gguf/jev-Q4_K_M.gguf | 698MB | 90.0% | 93.2% | 90.0% | 91.1% | 0.0192 |
| gguf/jev-Q8_0.gguf | 1.2GB | 89.0% | 93.8% | 89.5% | 90.7% | 0.0245 |
JevBench(英語)での目安
JevBenchの公開階層を、GGUF(Q4_K_M)でT4 GPUのllama-serverから測った正解率(範囲外の目安)。
| 階層 | v1 | v2 |
|---|---|---|
| easy (48問) | 87.5% | 93.8% |
| original (72問) | 51.4% | 50.0% |
| hard (111問) | 35.1% | 40.5% |
| 合計 (231問) | 51.1% | 54.5% |
差は8問分で、ノイズの範囲と考えるのが妥当。日本語で+40ポイント伸びたJSTS/JSICKの段階評価は、JevBenchのordinal(両方66.7%)には移っていない。
制約
- JCoLA(文法的な自然さ)は58.0%で、チャンス(50%)に近い。文法性の判定は、この規模の追加学習ではほとんど身についていない。
- 元の3タスクは、v1から全体で約1.5ポイント下がり、ECEもやや悪化している(1回の学習の結果で、ばらつきは未測定)。
- 学習した範囲(日本語の常識QA、感情、含意、文のペアの類似度、文法性)の外では、確率の校正がずれる(JevBenchのECEは0.14〜0.21)。 向きが難しさで逆で、易しい問題(easy)は確率が低すぎ(自信不足、NLL最適の温度T=0.4)、難しい問題(original/hard)は高すぎ (自信過剰、最適T=2.1/5.1)なので、温度スケーリング1つでは直せない。日本語の範囲内は最適T≈1.1〜1.2でほぼ校正済みで、 温度を入れてもECEの改善は評価セットによっては悪化する程度に小さかったため、適用していない。
- chABSAのtestは文単位の分割のため、同じ企業文書の別文が学習に含まれる可能性がある。
ライセンス
- コード: MIT (https://github.com/fukayatti/jev-japanese-judgment)
- ベースモデル: LFM Open License v1.0。GGUF版は量子化したベース重みを含む。
- 学習データ: JCommonsenseQA / JNLI / JSTS / JCoLA / JSNLI(CC BY-SA 4.0)、chABSA(CC BY 4.0)、JSICK(CC BY 4.0またはCC BY-SA 4.0、配布元の表記に食い違いあり)。
- Downloads last month
- 28
4-bit
8-bit
Model tree for fukayatti0/jev-japanese-judgment-v2
Base model
LiquidAI/LFM2.5-1.2B-Base