Skip to content
OpenPond
Join community
Ponder Training/Reinforcement learning with LoRA (GRPO)

Reinforcement learning with LoRA (GRPO)

Optimize a policy adapter from rewards on groups of generated responses.

Choose RL → LoRA; the current policy optimizer is GRPO. Shared, Stacked and Merged are its exact-parent continuation modes, not alternative workflows. Manual continuation, recovery of an interrupted run and a saved schedule are separate choices with their own evidence and authority.

Group Relative Policy Optimization (GRPO) samples several responses to a task, compares their rewards within that group and updates a policy adapter. Use it when a verifier or carefully validated judge can recognize the behavior you want. An evaluation records performance; GRPO uses that signal to change weights.

Model context and learning loop

For a group with differing rewards, standardized group-relative advantages identify responses that did better or worse than their peers. The trainer uses accepted response tokens and old-policy log probabilities in a clipped policy objective, with the recipe's reference-policy/KL rule. A group with no usable advantage is not evidence that an optimizer update happened. Original GRPO formulation.

Solid arrows carry computation/data; dashed arrows update weights. Frozen reference copies and inherited frozen adapter blocks are not optimizer targets. The exact model, topology, group size, rank and reference rule must be supported by the selected runtime.

Worked example: solutions verified by execution

Suppose training tasks ask for a Python is_even(n) function. A pinned code verifier executes tests for zero, positive and negative integers. Four illustrative responses might earn rewards [1, 0, 1, 0]; successful solutions receive positive group-relative advantages and failing solutions negative ones. Those numbers explain the mechanism, not an accepted OpenPond run or a guarantee that a particular update improves the model.

  1. Open New Model, choose RL and LoRA (GRPO), then Save. In Model, select a compatible base or an exact compatible saved GRPO parent.
  2. Select the reviewed reward-training batch, released environment and reward binding. Check real passing/failing verifier behavior before paying for a run. Recorded grades alone are not an executable reward function.
  3. Set supported rollout/group and optimizer limits, LoRA settings and compute. Keep independent test problems outside training. A weak reward can teach the model to exploit the grader instead of solving the task.
  4. Choose the supported billing mode before preparing. Review exact input, reward, runtime, component-price and spending identities, then approve Start. Existing reserved-budget preparations retain their original mode; new actual usage requires separately qualified native execution.

Measured GRPO control

A bounded Qwen3-8B control on November 5, 2026 trained rank-16 LoRA using a reviewed GSM8K public benchmark batch with 64 available training examples and a separate four-case evaluation panel. Only aggregate results are published here.

The run completed 9 of 16 planned groups, with eight rollouts per group: 72 training rollouts across nine training tasks. Four group training commands were applied, each with two inner optimizer iterations, for eight actual inner optimizer updates. Five groups supplied no training signal and were skipped. The run finalized through its original budget-drain path; it did not complete all 16 groups or apply the planned maximum of 32 inner updates.

The retained checkpoint and serialized adapter reload were verified. Baseline and candidate both passed zero of the same four held-out cases, so this small panel shows no measured quality improvement. The prepaid Job charge was $1.024759 within the original $4 cap, matched by the wallet deduction; its reservation was released. The CPU sandboxes were deleted and the physical GPU was automatically retired, with provider absence confirmed.

Actual bounded GRPO control, November 5, 2026: 72 rollouts, four applied group commands, five no-signal skips and eight inner optimizer updates; held-out scores remained 0/4. The table’s Passed status reflects its configured score threshold of zero. This execution does not qualify saved-Model serving, whole-Job actual-usage billing or training continuity through a controller replacement. The checkpoint was retained but had not been saved as a new Model.

Continue an adapter

Shared, Stacked and Merged LoRA are continuation choices under LoRA configuration in Model setup. They use the same GRPO operation with different continuation semantics. Choose an exact compatible saved GRPO-trained Model checkpoint before preparing; selecting a mode does not supply a parent or silently use a fresh base.

The current public setup carries the exact parent Job, artifact hash and checkpoint. These modes are GRPO cross-Job continuation choices, subject to runtime, topology, factor/rank and capacity checks:

UI choiceWeight computation for the next stageWhat the optimizer changes
Shared LoRA (shared)Reuse the current parent's exact adapter factorization on its frozen base.Continue training that adapter's existing A and B factors at its accepted rank.
Stacked LoRA (residual_append)Add a new adapter block to the frozen parent adapter contribution: base + parent delta + child delta.Only the new child factors; inherited parent factors remain frozen.
Merged LoRA (sequential_merge)Materialize the accepted parent delta into a derived frozen backbone, then attach a new adapter.New adapter factors on the derived backbone. This path requires its accepted merged-reference rule, currently zero KL.

Shared/Merged currently require an exact compatible single factor slice with matching logical rank; Stacked must fit the fixed residual envelope. A mode appearing in the form is not evidence that every parent satisfies those checks. A new cross-Job stage starts a fresh optimizer. Recovering an interrupted Job's checkpoint is a separate operation with its own retained state requirements.

These modes also apply to compatible GRPO updates configured through Continual learning. Selecting a mode does not approve a candidate or authorize serving. The standard continual-learning policy also supports reviewed SFT batches from the pinned base. That scheduled SFT path does not continue a saved SFT adapter across Jobs.

Read the dedicated Shared, Stacked and Merged guides for the matrix equations, optimizer targets, examples and mode-specific restrictions.

Stacked factors inside a projection

The three branches illustrate the additive computation; the selected runtime still controls the accepted residual envelope and number of factor slices. For the single-adapter mechanism and a comparison with a mathematically shared A matrix, see LoRA architecture. That shared-A comparison is distinct from OpenPond's Shared continuation mode.

SDK continuation and reviewed Start

The following uses an existing reviewed GRPO configuration and sealed batch. grpo-request.json follows TrainingPreparationRequestSchema (the complete preparation example shows its shape). parent.json contains actual references from the selected saved GRPO result:

json
{ "jobId": "your-parent-job", "artifact": { "id": "your-parent-artifact", "contentHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, "checkpointId": "your-published-checkpoint", "adapterMode": "shared" }

Replace illustrative IDs/hashes; do not synthesize references from a Model label. Use the first block in a TypeScript REPL to prepare and inspect the review. It contains no Start call. Keep the exact prepared and estimate values in that session (and retain its operation/preparation identities for recovery).

typescript
import { readFile } from "node:fs/promises"; import { createTrainingClient, TrainingPreparationRequestSchema, TrainingPreparationParentSchema, } from "openpond-sdk/training"; const client = createTrainingClient({ baseUrl: process.env.OPENPOND_API_URL ?? "https://api.openpond.ai", headers: { Authorization: `Bearer ${process.env.OPENPOND_API_KEY}`, "X-OpenPond-Team-Id": process.env.OPENPOND_TEAM_ID!, }, }); const request = TrainingPreparationRequestSchema.parse({ ...JSON.parse(await readFile("grpo-request.json", "utf8")), parent: TrainingPreparationParentSchema.parse( JSON.parse(await readFile("parent.json", "utf8")), ), }); const prepared = await client.prepareRun(request); const estimate = await client.estimate({ schemaVersion: "openpond.trainingEstimateRequest.v1", teamId: request.teamId, source: { kind: "preparation", id: prepared.plan.id, planHash: prepared.plan.contentHash, expectedRevision: prepared.revision }, }); console.log({ prepared, estimate });

After reviewing the exact preparation, estimate, parent and any component-price quote, separately invoke this paid Start step in the same REPL session. It uses the retained values above; it does not prepare or reprice another run.

typescript
const started = await client.startPreparation(prepared.plan.id, { teamId: request.teamId, planHash: prepared.plan.contentHash, expectedRevision: prepared.revision, estimateReview: estimate.review, ...(prepared.plan.usageQuote ? { usageQuoteHash: prepared.plan.usageQuote.contentHash } : {}), }); console.log(started.jobId);

Reuse the same operation ID and retained preparation on a lost reply; do not run this again with a fresh operation ID merely to discover whether Start succeeded. The equivalent official CLI reads the retained receipt with training hosted-start prepared.json --team-id YOUR_TEAM --yes --json; inspect an existing Job with hosted-status, hosted-events, hosted-result and hosted-report.

Interpret the result and decide what to keep

A representative partial status projection might be:

json
{ "state": "succeeded", "rolloutProgress": { "groupsCompleted": 4, "groupsTarget": 4, "optimizerUpdatesApplied": 3, "optimizerUpdatesSkipped": 1 } }

This is illustrative, not measured acceptance evidence. Inspect the actual responses/rewards, skip reasons, optimizer updates, checkpoint publication and fresh reload evidence separately. Compare the candidate and baseline on the same held-out tasks; reward improvement alone can hide exploitation/regressions.

For the same worked task, write is_even(n), a hypothetical decoded baseline answer could be:

python
def is_even(n): return n > 0 and n % 2 == 0

An illustrative candidate answer is:

python
def is_even(n): return n % 2 == 0

The baseline is wrong for 0 and -2; the candidate handles those cases and returns false for 3. These examples explain which executable evidence to inspect; they are not sampled outputs or measured improvement from a run. Inspect real generated responses, verifier stdout/errors and rewards in the retained rollout/evaluation evidence. hosted-trajectory reads a recorded trajectory by its receipt ID, while hosted-feedback reads its grader feedback; held-out evaluation tasks have their own evaluation/task IDs. A successful checkpoint alone supplies none of that answer-quality evidence.

  • Cancel/recover: preserve exact operation, revision, parent and checkpoint identities; follow cleanup until capacity is released. Never infer cleanup from a terminal label alone.
  • Billing: where live usage exists, charged/committed/outstanding amounts cover the accepted components. Storage can remain open after compute stops; the execution summary does not debit those captures again.
  • Save/serve: explicitly save a verified candidate as a Model version, then separately review and approve its compatible serving activation.
  • Availability: no diagram, local proof or saved recipe qualifies a new GPU image, two-GPU topology or hosted CPU package. Runtime discovery is decisive.

Sources

Compatibility

Requires a qualified exact model and runtime. A saved configuration does not establish execution, continuation or serving availability.

View as Markdown