Sentinel-7· Fine-tuning and post-training on Red Hat OpenShift AI
Red Hat OpenShift AI 3.5 · Fine-tuning and post-training

Teach a small open model a specialist job. Run it in production.

Create training data, fine-tune with examples, post-train with rewards, then test and deploy, all in one secure OpenShift AI project. Built on the open-source tools your team already uses, with Red Hat support.

  • Create dataSDG Hub
  • Fine-tuneTraining Hub · SFT
  • Post-trainTraining Hub · GRPO
  • DeployvLLM · llama.cpp

Built by Nijesh Kanjinghat · Read the article on Medium ↗

Edge Copilot · held-out notegranite-4.1-3b + LoRA
OPERATOR RADIO NOTEinput
[S7-05 13DEC27] At 1246Z: E-305 on batt mod 3; pos 1.3516N 103.9895E; conf unk object brg 145 4nm, has AIS; spd 6; good vis; prob flotsam brg 320 5nm; battery at 37%; E-331 on battery module 2, SoC 14%; holding position.
STRUCTURED JSON REPORT · ABRIDGED · ALL FIELDS EXACT94-token prompt
{ "report": "BD-SCR", "vessel": "S7-05", "dtg": "131246Z DEC 27", "mode": "holding", "position": { "lat": 1.3516, "lon": 103.9895 }, "speed_kts": 6, "battery_pct": 37, "visibility": "good", "contacts": [ { "type": "floating debris", "brg": 320, "confidence": "PROBABLE" }, { "type": "unidentified object", "brg": 145, "ais": true, "confidence": "CONFIRMED" } ], "faults": [ { "code": "E-305", "action": "Stop charging and run the balancing routine" }, { "code": "E-331", "reading": "14 %", "action": "Return to base at economy speed" } ] }
99.7%exact reports
0.3%invented fields
97%on laptop CPU
6.3%→99.7%

Exact reports on 300 held-out notes, untuned vs tuned Granite 4.1-3B

16 min

LoRA training run on a share of one NVIDIA L4 GPU (about 10 GB)

62 MB

Adapter size. Small enough to send over a satellite link

2.1 GB

4-bit edge model, runs offline on a laptop CPU at 97% exact

The premise · fictional scenario, synthetic data

A patrol vessel with no data centre on board.

RAG works where you have a data centre. At sea you don't, so the model itself has to know the job.

The organisation

Blue Defence

A fictional Singapore defence company. Its Sentinel-7 uncrewed surface vessels patrol the Singapore Strait, with watchkeepers on shore consoles.

The problem

Messy notes, strict reports

Operators send terse radio notes. The ops room needs each one turned into a strict JSON contact report (BD-SCR). No field invented, the operator's certainty kept, fault codes exactly as the vessel manual gives them.

s7 0612z patrol 6kn hdg 270 batt 64 vis gd. poss small craft brg 040
The constraints

Thin link, no GPU, sovereign data

  • LINK A thin satellite link: ship a 62 MB adapter, not a new model
  • CPU No GPU at sea: the model runs offline on a laptop
  • ACCESS Notes, manuals, data and models stay inside one access-controlled project
One radio note, two jobs · each solved with the method that fits its mistake
INPUTRadio notefrom the vessel or shore console
01 · EDGE COPILOTSFTNote → exact JSON reportLoRA fine-tuning · 6.3% → 99.7% exact
02 · SATCOM BURST LINEGRPOReport → one satellite message, ≤ 160 characters, 7 checkable rulessynthetic examples, then GRPO · 42.5% → 95% meet every rule
ASHOREOps room and agentsreports searched with RAG and acted on by AI agents
What we're showcasing
01

A small open model can do a specialist job

Granite 4.1-3B, tuned, beat 70B and 120B hosted models on exact reports, with a prompt 15× shorter.

02

Each mistake has a method

SFT teaches the report format. GRPO teaches rules a checker can verify. Both from one Training Hub API.

03

One platform from data to edge

Synthetic data, training, tracking and serving (SDG Hub, Training Hub, MLflow, vLLM, llama.cpp) in one OpenShift AI project, on a share of one GPU.

Why OpenShift AI · three layers of value

You keep TRL, Unsloth and transformers. You stop building the glue around them.

Training Hub runs Unsloth, TRL and SentenceTransformers under the hood. The value sits on top: methods Red Hat built, one API across them, and a platform that runs, tracks, serves and governs the result.

OpenShift AI in plain terms · for teams that fine-tune with open source today

You already know the work. Here is what OpenShift AI calls it.

Each row starts from what a team does on its own GPU box today. The right column is the OpenShift AI name used in the rest of this page.

What you do todayOn OpenShift AIWhat it means for you
A shared server, a shared loginProjectA separate space per team or use case, with its own users, data, GPUs and endpoints. Nothing leaves it unless you allow it.
Jupyter on a GPU boxWorkbenchJupyterLab the platform runs for you, from a Red Hat image with Training Hub, PyTorch, TRL and MLflow already installed.
python train.py or torchrunTraining Hub + TrainJobOne Python call per method. Run it in the notebook, or hand the same call to Kubeflow Trainer, which runs it on cluster GPUs as a TrainJob.
"Which GPU can I use?"Hardware profileA named size (GPU type, memory, CPU) you pick from a menu. Several jobs can share one GPU.
Waiting in chat for a free GPUKueueA queue that hands out GPUs fairly between teams and starts your job when capacity is free.
Weights & Biases, a folder of checkpointsMLflowExperiment tracking and a model registry, built into the platform and scoped to your project.
vllm serve, llama-serverModel serving (KServe)A managed endpoint with TLS, login and autoscaling. vLLM and llama.cpp both run this way.
Bash scripts and cronAI PipelinesRepeatable, logged runs (Kubeflow Pipelines) started from the dashboard, such as "evaluate, then promote the winner".
Workflow · seven steps, one project

Click through what we built, and what each step would take on your own.

Each step shows the dev-environment way, the OpenShift AI way, the evidence from our runs and the code. Use the arrow keys to move between steps.

Method choice · one API, pick by the mistake

Start from the mistake the model makes. The method follows.

With Training Hub, switching method means changing one function name, not the stack. Choose a mistake to see the method that fixed it in our runs.

Results · held-out sets, one scorer per task

A tuned 3B model beat models twenty to forty times its size on the job it was trained for.

Every number comes from data the models never trained on, scored by the same scorer for every model. Runs that did not help are logged in MLflow next to the ones that did.

Side by side · dev environment vs OpenShift AI

What a team builds on its own, and what the platform gives it.

Tags show where the value comes from: methods and tooling from Red Hat AI, or the OpenShift AI platform.

NeedDev environment
TRL · Unsloth · transformers
Red Hat OpenShift AIOur evidence
RED HAT AI method or tooling Red Hat built on open sourcePLATFORM OpenShift AI capability
Get started · run it on your OpenShift AI

Six notebooks, one per stage of the workflow.

Each notebook runs in an OpenShift AI workbench with the Training Hub image, using plain library calls: SDG Hub, Training Hub, the Kubeflow SDK, MLflow and KFP. Open the repository ↗

Prerequisites · set up once per project
  1. 01
    Project access

    The cluster admin grants the training-edit role in your project, so notebooks can start training jobs on the cluster.

  2. 02
    A GPU size to pick

    A hardware profile for your GPU. About 10 GB of GPU memory (a share of one NVIDIA L4) is enough for LoRA on Granite 4.1-3B.

  3. 03
    Training Hub workbench image

    Training Hub, the Kubeflow SDK, MLflow and TRL come preinstalled. Choose it when you create the workbench.

  4. 04
    Project storage

    One volume for models, data and checkpoints, shared by the workbench and the training jobs.

  5. 05
    MLflow and pipelines

    Turn on MLflow tracking for the project, and add a pipeline server so you can run the promotion pipeline.