Skip to main content

LoRA fine-tuning

Produce lightweight adapters from a pinned base model and instruction dataset.

LoRA fine-tuning

Activity responsibilities

ActivityResponsibility
fetch-base-modelExecute the fetch base model stage and publish its declared outputs for downstream activities.
prepare-examplesExecute the prepare examples stage and publish its declared outputs for downstream activities.
fine-tune-adaptersExecute the fine-tune adapters stage and publish its declared outputs for downstream activities.
evaluateExecute the evaluate stage and publish its declared outputs for downstream activities.
publish-adapterExecute the publish adapter stage and publish its declared outputs for downstream activities.
record-lineageExecute the record lineage stage and publish its declared outputs for downstream activities.

Inputs

  • Base-model revision
  • Instruction dataset
  • LoRA configuration

Outputs

  • Adapter weights
  • Evaluation report
  • Published version

Provenance to preserve

  • Model and dataset revisions
  • GPU/runtime profile
  • Evaluation results

Runnable example

This is the complete checked-in bundle for this pattern. Download the environment, scope, topology, workflow, input, container recipe, runner, and validation contract from this page before executing it.

Verified local execution

These captures and the output manifest were produced by the fixture's local Docker run and validator. They are published with the same bundle as the runnable files.

LoRA fine-tuning workflow execution evidence
Workflow evidence
LoRA fine-tuning execution evidence
Execution evidence
LoRA fine-tuning output evidence
Output evidence
Open verified output manifest ↓

Execution considerations

Keep the base model near the accelerator or cache it as a reusable artifact. Every adapter must remain linked to its compatible base revision.

AkôFlow boundary: the engine schedules, deploys, executes, transfers data, and records evidence. The ML or agent framework remains an implementation choice inside each activity.