How to use from
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 antking1/KIM-coach:Q8_0
# Run inference directly in the terminal:
llama cli -hf antking1/KIM-coach:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf antking1/KIM-coach:Q8_0
# Run inference directly in the terminal:
llama cli -hf antking1/KIM-coach:Q8_0
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf antking1/KIM-coach:Q8_0
# Run inference directly in the terminal:
./llama-cli -hf antking1/KIM-coach:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf antking1/KIM-coach:Q8_0
# Run inference directly in the terminal:
./build/bin/llama-cli -hf antking1/KIM-coach:Q8_0
Use Docker
docker model run hf.co/antking1/KIM-coach:Q8_0
Quick Links

KIM-Coach v3 — Gymnastics Coaching LLM

Fine-tuned Gemma 3 4B for generating motor-instruction coaching cues from motion analysis data.

What Changed in v3

Version Training Pairs Key Improvement Val Loss
v1 1,538 First fine-tune, assessment-style templates 0.140 → 0.070
v2 1,538 Motor instruction templates (action verbs, feel cues) 0.110 → 0.070
v3 3,798 Directional error taxonomy + output diversity 0.110 → 0.067

v3 Improvements

  • Directional error taxonomy: 10 categories (insufficient_extension, over_flexion, timing_early/late, balance_loss, etc.) grounded in LucidAction penalties, USAG deductions, and real Habitude app data
  • 2-3 output variations per input: same divergence pattern gets different coaching language, breaking template memorization
  • 50 gold-standard cues as style anchors (hand-written by coaching framework)
  • Novel cue generation: model composes cues it was never explicitly trained on

Evidence of Generalization (v3)

v1/v2 produced verbatim copies of training data. v3 generates novel coaching cues:

  • Input: torso divergence during takeoff
  • Expected: "hips level, midline braced"
  • Predicted: "hips over hands, arched bridge during the takeoff — you should feel hips pushing forward"
  • Both are valid motor instructions — the model learned the pattern, not the template

Pipeline

Input Format

Output Format

Training Details

  • Base model: google/gemma-3-4b-it (4-bit quantized via Unsloth)
  • Method: LoRA (r=16, alpha=16, dropout=0)
  • Data: 3,427 train / 371 val pairs from KIM VQ-VAE codec + directional error taxonomy
  • Training: 3 epochs, batch size 8, lr 2e-4, A100 GPU, ~77 minutes
  • Best val loss: 0.067 at step 1200

Part of KIM (Kinematic Instruction Model)

Downloads last month
20
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for antking1/KIM-coach

Adapter
(407)
this model