How to use from
Pi
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf FiShota/yamato-3b-v2-legal-gguf:
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "FiShota/yamato-3b-v2-legal-gguf:"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

Yamato-3B-v2 (legal/admin specialist, GGUF)

Sarashina2.2-3B-instruct + QLoRA on 60 hand-crafted legal Q&A samples (v1 50 + v2 10: 民訴 / 行政手続 / 労働契約 / 個人情報 / 不動産登記 / 国保 / 詐欺対処 / 家族財産 / 年金繰下).

Each sample includes plain-language answer + (出典: 法令名第X条) + 弁護士相談 disclaimer.

Variants

Variant BPW Size
Q3_K_M 3.91 1.6 GB
Q4_K_M 4.92 2.0 GB
Q5_K_M 5.72 2.3 GB
Q6_K 6.60 2.6 GB
fp16 16.00 6.3 GB

v1 → v2 changes

  • 60 samples (was 50) covering 10 additional legal domains
  • Same QLoRA recipe (r=16, 3 epochs, lr=2e-4)
  • Yamato-Bench-ja v0.2 (30 items) compatible

Position

Yamato is the legal/admin specialist sister to HinoMoto (family/keigo). Both share Sarashina2.2-3B base.

Quick start

huggingface-cli download FiShota/yamato-3b-v2-legal-gguf yamato_3b_v2.Q4_K_M.gguf --local-dir .
~/projects/llama.cpp/build_cuda/bin/llama-server -m yamato_3b_v2.Q4_K_M.gguf -c 2048 -ngl 99 --port 8092

Disclaimer

This model provides general legal information for educational purposes. NOT legal advice. Always consult a licensed attorney for individual cases.

License

MIT (inherits from Sarashina2.2-3B-instruct-v0.1).

See also

📈 Rank ablation context (sister models)

This is one variant in a 4-point LoRA rank ablation on the same 60 legal samples:

Variant LoRA r Bench % Notes
v1 / v2 16 46.7% baseline
v3 32 48.9% +2.2
v4 64 54.3% +5.4
v5 128 57.6% +3.3 (current best)

→ All same recipe; only LoRA rank doubled. → Detailed analysis: HinoMoto 開発ノート #9 — "LoRA rank scaling boundary".

See also

Downloads last month
47
GGUF
Model size
3B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

3-bit

4-bit

5-bit

6-bit

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

Model tree for FiShota/yamato-3b-v2-legal-gguf