Skip to content
OpenPond
Join community
Ponder Training/Decision models

Decision models

Train and inspect distributions over explicit typed choices.

Choose Decision model as the workflow. Its selected LoRA modification is the specialized Decision adapter on the exact released backbone. Score retains the original release or exact saved adapter without training or changing its method. Manual parent training is separate from scheduled learning.

A Decision model scores the allowed answers to defined questions about a structured state. OpenPond continues the exact released bespokelabs/Bespoke-Nimble-9B adapter on Qwen/Qwen3.5-9B, with its pinned tokenizer and prompt contract. It is a text-only typed scorer, not a generated explanation or arbitrary JSON generator. A draft or upstream benchmark does not qualify OpenPond's exact runtime; this guide claims no accepted GPU execution.

Where a decision comes from

The training path updates the genuine released LoRA parameters and leaves the complete loaded backbone frozen. Each question is scored independently with its full prompt; another question's predicted answer is not fed into it.

Training labels never enter the prompt. The candidate-only loss differs from training a prose answer or a JSON token sequence. The current OpenPond bound is 1–8 questions, 2–26 choices each and 2,048 prompt tokens per question; longer prompts are rejected, not truncated. Newer upstream Nimble releases may expose different limits and do not change this pinned contract.

Worked example: route a damaged parcel

Create this task input, keeping its approved answer separate:

json
{ "state": {"request": "The parcel arrived damaged", "daysSinceDelivery": 2}, "questions": [{ "id": "route", "type": "choice", "description": "Which support action should be taken?", "choices": [ {"value": "refund", "description": "Issue a refund"}, {"value": "troubleshoot", "description": "Continue troubleshooting"}, {"value": "escalate", "description": "Ask a specialist to review"} ] }] }

The reviewed expected output is {"route":"refund"}. For training, approve one matching demonstration per task in the training split and seal the batch. Dataset policy instructions must match state.instructions when present. Question IDs are unique and begin with a letter; boolean choices retain ordered false/true values and integer levels retain increasing integers. State is finite JSON bounded to 64 KiB.

  1. Open New Model, choose Decision model and LoRA, then Save.
  2. Select the exact compatible source in Model and the reviewed batch in Dataset. Review attached checks in Graders, then set steps, learning rate and prompt limit in Run settings. Save configuration retains the draft. Choose Train, inspect price and optional cap, then approve Start.
  3. After actual completion and verified artifacts, choose Save Model. Score mode instead selects an exact saved version and accepts unlabeled state and questions; it does not create a trained Model.

Reuse the saved draft through the SDK

Pass an authenticated createTrainingClient client and the saved draft ID to this function, along with two operation IDs persisted before dispatch. It reads the actual UI form, compiles exact batch/model references and prepares a review; it does not start compute. Retain both returned objects.

typescript
import { createTrainingClient, DecisionExperimentFormDraftSchema, ModelModificationCapabilitiesQuerySchema, canonicalComputeSpendCap, canonicalSha256, ManagedDecisionStartSchema, } from "openpond-sdk/training"; type Client = ReturnType<typeof createTrainingClient>; export async function reviewDecision( client: Client, teamId: string, draftId: string, prepareOperationId: string, startOperationId: string, ) { const record = await client.getExperimentDraft(teamId, draftId); const form = DecisionExperimentFormDraftSchema.parse(record.draft.decisionForm); if (!form.baseModel) throw new Error("Select the exact starting model."); const base = Object.fromEntries(Object.entries(form.baseModel) .filter(([key, value]) => key !== "schemaVersion" && value !== null)); const query = ModelModificationCapabilitiesQuerySchema.parse({teamId, ...base}); const compiled = await client.compileDecisionExecution({ teamId, projectId: record.projectId, method: "decision_model", mode: form.mode, query, form, }); const prepared = await client.prepareDecisionExecution({ teamId, projectId: record.projectId, operationId: prepareOperationId, method: "decision_model", mode: form.mode, name: form.name.trim(), query, request: compiled.request, sourceForm: form, maximumSpendUsd: canonicalComputeSpendCap(form.maximumSpendUsd), }); const execution = prepared.execution; const start = ManagedDecisionStartSchema.parse({ teamId, id: execution.id, operationId: startOperationId, action: "start", expectedRevision: execution.revision, planHash: execution.plan.contentHash, approvedMaximumSpendUsd: execution.plan.maximumSpendUsd, ...(execution.plan.computePrice ? { approvedPriceHash: await canonicalSha256(execution.plan.computePrice), } : {}), }); return {prepared, start}; }

Inspect the returned exact inputs, price, optional spending limit and expiry. Serialize start as decision-start.json only for the review you intend to approve. Then use the official CLI with the same account/workspace:

bash
openpond training hosted-start-decision decision-start.json --team-id "$TEAM_ID" --yes --json openpond training hosted-decision-execution "$EXECUTION_ID" --team-id "$TEAM_ID" --json

EXECUTION_ID is prepared.execution.id. CLI compile/prepare equivalents are hosted-compile-decision and hosted-prepare-decision with their typed request JSON. The shared API uses POST /v1/training/modification-executions/compile, POST /v1/training/modification-executions/prepare and POST /v1/training/modification-executions/{id}/start; use the SDK to verify returned hashes. A lost response requires the original operation ID and request, not another paid Start. Follow cancellation through verified cleanup.

Score the exact saved version

After separately activating compatible serving, place the input above in decision-input.json. Pass your authenticated SDK client, actual Model ID and saved version hash to this function. Scoring performs billable inference; review the input and limits before calling it.

typescript
import {readFile} from "node:fs/promises"; import {createTrainingClient, DecisionScoringInputSchema} from "openpond-sdk/training"; export async function scoreRoute( client: ReturnType<typeof createTrainingClient>, teamId: string, modelProjectId: string, versionHash: string, requestId: string, ) { const input = DecisionScoringInputSchema.parse( JSON.parse(await readFile("decision-input.json", "utf8")), ); const receipt = await client.scoreDecisionModel(modelProjectId, { schemaVersion: "openpond.decisionModelScoreRequest.v1", teamId, requestId, versionHash, input, limits: {maximumPromptTokens: 2048, maximumForwardTokenWork: 8192, maximumDurationSeconds: 60}, }); return receipt.result.distributions; }

Retain the request ID before dispatch in a durable caller if recovery is needed; retry the original request after an ambiguous response. The CLI hosted-score-decision accepts {modelProjectId, request} with the same typed request and requires --yes. The API route is POST /v1/training/models/{modelProjectId}/decisions.

An illustrative distribution might be refund 0.70, troubleshoot 0.20 and escalate 0.10, with prediction refund. These numbers are not a recorded score or a complete receipt. The actual distributions entries contain questionId, promptTokenCount, all candidates with value, code, tokenId, logit and probability, plus prediction and expectedLevel. Do not invent token IDs or report a base chat answer as this evidence. Probabilities sum over the supplied choices; 0.70 does not establish 70% correctness on your population.

Training evidence includes finite candidate loss, actual question/token work, zero base optimizer/gradient ownership, equal before/after frozen-backbone hashes and committed four-file adapter custody. Export/reload correctness and held-out routing quality are separate checks. Compatible saved-parent continuation uses fresh optimizer state, not interrupted optimizer resume.

Sources and implementation boundary

  • Bespoke Labs' official Nimble repository: released model, prompt/code-token scoring and training recipe. OpenPond uses the exact pinned release, not whichever upstream release is newest.
  • Bespoke-Nimble-9B release: source adapter/tokenizer identity. Upstream quality and speed measurements are not OpenPond hosted execution evidence.
Compatibility

Requires a qualified exact model and runtime. The examples describe workflows, not an accepted GPU execution.

View as Markdown