Instructions to use tensorninja2/inkling-2-mini-decision-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NInfer
How to use tensorninja2/inkling-2-mini-decision-1 with NInfer:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
inkling-2-mini-decision-1
inkling-2-mini-decision-2 supersedes this adapter.
inkling-2-mini-decision-1 is a decision adapter for
Inkling 2 Mini: a LoRA adapter plus a
pointer head. It reads a state and typed questions and returns a probability for every option,
by prefill alone, without generating text. It is packaged as a .ninfer adapter for
NInfer-4090, which serves it on two wire protocols
from the same process and weights as chat:
- OpenAI Decisions,
POST /v1/decisions, for the OpenAI Python SDK 3.26.0 or newer. - TypeSafe System One,
POST /typesafe/v1/systemone, for the TypeSafe SDK 0.6 and 0.7.
It is not a PEFT, Transformers, or GGUF file.
File
| Field | Value |
|---|---|
| Filename | inkling-2-mini-decision-1.lora.ninfer |
| Size | 23,764,492 bytes |
| SHA-256 | cfc6895d8f3368b9d346ff6c385c4477417867d80f6b1062ec51212f4588449d |
| Kind | decision adapter |
| LoRA | rank 16, alpha 32, on the seven attention projections: query, relative-position query, output gate, attention sink, key, value, and attention output |
| Pointer head | 256-dimensional query and key projections over the final-norm hidden state of width 2,304 |
| Temperature | 1.289 |
Use it
The adapter needs NInfer-4090 and the Inkling 2 Mini NInfer artifact. Keep it in a directory of Inkling adapters only, because the pool rejects adapters converted for another model:
hf download tensorninja2/inkling-2-mini-decision-1 inkling-2-mini-decision-1.lora.ninfer \
--local-dir lora/inkling-2-mini
./build-sm89/apps/ninfer-serve models/inkling2_mini.ninfer --kv-dtype bf16 \
--max-context 32768 --lora-dir lora/inkling-2-mini --lora-slots 2
OpenAI Decisions:
from openai import OpenAI
client = OpenAI(api_key="local", base_url="http://127.0.0.1:8080/v1")
result = client.decisions.create(
model="inkling-2-mini-decision-1",
input="I was charged twice this month. Please refund one charge before Friday.",
questions=[{
"type": "predicate", "name": "billing",
"instructions": "Is this message about billing?",
}],
)
print(result.answers[0].probability)
TypeSafe System One, where jev-latest resolves to --systemone-default or to the server's only
decision adapter:
from typesafe_sdk import Noul, TypeSafeClient
client = TypeSafeClient(api_key="local", base_url="http://127.0.0.1:8080/typesafe")
result = client.system_one(
state="I was charged twice this month. Please refund one charge before Friday.",
questions={"billing": Noul(instructions="Is this message about billing?")},
)
When Vision is enabled, which it is by default when it fits, OpenAI Decisions also accepts inline
images in the state. They keep their native resolution, and detail is accepted and ignored.
On an RTX 4090 with a cached 8K-token state, one question takes about 29 ms and six questions about 70 ms. A cold 8K-token state adds about 2.1 s of prefill. See Decisions for both protocols and Inkling 2 Mini adapters and decisions for this model's costs and limits.
Evaluation
Scored through NInfer-4090 on the clean knowable questions of the decision-v7 corpus from kev. The locked test partition was scored once per KV mode, under a procedure declared before the run.
| Split | KV | Questions | Accuracy | Brier | NLL | ECE |
|---|---|---|---|---|---|---|
| Development | bf16 |
1,264 | 0.851 | 0.205 | 0.390 | 0.022 |
| Development | rk4v4 |
1,264 | 0.854 | 0.200 | 0.383 | 0.017 |
| Locked test | bf16 |
1,200 | 0.837 | 0.216 | 0.387 | 0.013 |
| Locked test | rk4v4 |
1,200 | 0.836 | 0.216 | 0.389 | 0.013 |
On the test split with BF16 KV, score questions are the weakest type at 0.550 accuracy, against
0.904 for choice and 0.913 for noul. The trainer's own development scoring of the same weights
gave 0.858 accuracy and ECE 0.032. For comparison, qwen3.8-27b-decision-1 on Qwen3.8-27B reaches 0.856 test
accuracy with ECE 0.020.
Training
LoRA and the pointer head on the Inkling 2 Mini base, one epoch on the decision-v7 training split
(12,576 records, 1,572 steps, seed 0). The base experts stayed frozen and packed. The forward pass
fake-quantized expert activations with the serving NVFP4 and MXFP8 recipes, and the backward pass
used straight-through gradients. Rank-16 attention beat rank-8 attention and rank-8 attention
plus expert factors in 200-step pilots. The temperature 1.289 minimizes NLL on the calibration
split.
tools/convert/inkling2_mini/convert_lora.py --decision-head converted the PEFT directory and
head to .ninfer.
Limits
- Per-question probabilities do not meet kev's serving tolerance (|ฮp| โค 0.03, at most one changed answer per 280 questions) against the trainer. Inkling runs 4-bit activations in the experts of 20 layers over 48 layer visits, so equivalent evaluations of one question can differ by up to 0.5, in the trainer as in serving. Task-level accuracy and calibration are unaffected.
- The adapter was trained on text. NInfer accepts images in OpenAI Decisions, but no image-task accuracy or calibration is established for this adapter.
- A state holds at most 65,536 tokens, and a state plus one question at most 73,728.
- There is no refusal detection, and the adapter does not reproduce the outputs or calibration of OpenAI's or TypeSafe's hosted decision models.
License
Apache-2.0 for the adapter and head. The Inkling 2 Mini base is Apache-2.0. The datasets behind the decision-v7 corpus carry their own licenses; see kev's model cards.
- Downloads last month
- 48
Model tree for tensorninja2/inkling-2-mini-decision-1
Base model
thinkingmachines/Inkling-2-Mini