Model Details
Table with columns: Field, Value| Field | Value |
|---|
| Model ID | sai-org/Kirb-Scribe |
| Family | Kirb (Scribe variant) |
| Base lineage | Derived from sai-org/Kirb_Speck_2 / Kirb_Speck lineage, transitively SmolLM-135M (Apache-2.0) |
| Model type | Causal language model (Llama architecture) |
| Parameters | ~134.5M |
| Context length | 8192 tokens |
| Precision | float32 weights |
| Tensor format | safetensors |
| License | Apache-2.0 (see LICENSE) |
Intended Use
- Suggesting values for standard intake-form fields from specialist notes.
- On-device/local prototyping where confidentiality is important.
- Research on small domain-calibrated model behavior.
Out of Scope
- Not legal advice. Do not use for legal conclusions, case outcome prediction, or drafting legal arguments.
- Unsupervised legal/insurance workflows or production deployment without human review and compliance controls.
- Any high-stakes decision-making without qualified professional oversight.
What Changed
A second gradient-free rank-1 output-head edit was applied to Kirb_Speck:
- Calibration:
b = b_definition - b_date, with calibration sets disjoint from the eval.
- Mask/edit:
b_M masked to tokens above 92nd percentile; gamma = 0.575; W_lm <- W_lm - (gamma / s̄) * b_M * u^T.
- Scope: Rank 1, ~0.393% of output-head norm, 3,933 / 49,152 tokens touched.
- Untouched weights: Transformer layers and input embeddings unchanged.
See RESULTS.md and edit_info.json for details.
Evaluation (Provisional)
Table with columns: Eval, Kirb_Speck, Kirb-Scribe, Delta| Eval | Kirb_Speck | Kirb-Scribe | Delta |
|---|
| Provisional legal/insurance cloze (30 items) | 11/30 (36.7%) | 16/30 (53.3%) | +5 items |
| 5-fold CV on that eval | 36.7% | 53.3% | — |
| Original general cloze (54 items) | 39/54 (72.2%) | 38/54 (70.4%) | -1 item |
| Generic perplexity (5 sentences) | 58.1 | 58.0 | ~0 |
Limitations
- Proxy eval, not real intake data. The 30-item legal eval is hand-written from public vocabulary; replace with real form schema and permissioned intakes before trusting.
- Hyperparameter selection bias. Hyperparameters were selected over ~1,650 configs on the same 30-item eval; 53.3% is likely optimistic.
- Calibration, not knowledge. The edit suppresses a systematic bias; it does not teach new legal facts.
- Specialization tradeoff. General cloze dropped by one item (72.2% → 70.4%).
- Safety/risk. Outputs may be incorrect or incomplete. Always require qualified human review.
Quickstart
from transformers import AutoModelForCausalLM, AutoTokenizer repo = "sai-org/Kirb-Scribe"tokenizer = AutoTokenizer.from_pretrained(repo)model = AutoModelForCausalLM.from_pretrained(repo) prompt = "Intake note: Client reports a rear-end collision on 2026-05-10. Extract claim type:"inputs = tokenizer(prompt, return_tensors="pt")outputs = model.generate(**inputs, max_new_tokens=32, do_sample=False)print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Files
model.safetensors, config.json, generation_config.json — model weights and configuration.
tokenizer.json, tokenizer_config.json, special_tokens_map.json — tokenizer files.
RESULTS.md, edit_info.json — method and evaluation metadata.
LICENSE — Apache-2.0 license.
License
Apache License 2.0. Derived from the Kirb_Speck lineage, transitively SmolLM-135M. Retain LICENSE and attribution notices in redistributions and derivative works.
Maintained by Kabilan M (SAI) — sai.org.india@gmail.com