Skip to content
← All posts
ProductDayanne Fernandes

Move a fine-tuned GPT-4o or GPT-4.1 before January 14

Cover that reads "Move a fine-tuned GPT-4o or GPT-4.1 before January 14"

By ReOpenly. Written December 2, 2026. Checked against OpenAI's deprecations page on December 4, 2026.

OpenAI stops new self-serve fine-tuning jobs on December 15, 2026. On January 14, 2027 it shuts down GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini, and OpenAI's page says: "Fine-tuned versions of the models listed above follow the same shutdown schedule as their underlying base models." If you run a fine-tune of one of them in production, it stops working on OpenAI's API that day (unless OpenAI sales gives you dedicated capacity). Source: OpenAI deprecations. OpenAI has moved a date before, so read the page again before you plan around it.

This guide is six steps to move one fine-tune to an open model, with an adapter you can download. Each step names the ReOpenly screen, API call or script it uses. It takes the training file you already have. It does not need OpenAI.

Before step 1: check the length

Qwen3.5 9B, the base in the examples, reads 4,096 tokens, your prompt and the answer together, about 2,600 English words. By default a chat longer than max_seq_length (2,048 tokens on this base unless you raise it, up to 4,096) loses its earliest turns when you train (long_chats, default shorten; leave_out skips it instead). If most of your chats are longer than 4,096 tokens, this base is not a fit.

1. Find your training file and keep a test set

Find the JSONL file you uploaded to OpenAI: one conversation per line, {"messages": [...]}. Cut one example in ten into a separate file and do not import it. That is your test set. A model never sees it, so it gives you an honest score later.

Bring the rest in. An OpenAI chat file is not a one-click upload: it is converted by a short script and sent through the API, 500 chats at a time (if your chats are very long, lower the batch size so one request stays under 20,000 messages and 16 MiB). Conversations with tool calls, content parts, other roles, NUL characters or messages over 20,480 characters are skipped and counted; assistant weight values (0 or 1) are carried over. Create a text project and a dataset in the app, make an API key with data:write (and training:write for step 3), replace {owner_slug}, {project_number} and {dataset_number} in URL, then run this script:

import json
import os
import time

import requests

URL = "https://reopenly.com/api/v1/projects/{owner_slug}/{project_number}/datasets/{dataset_number}/items/bulk/create"
HEADERS = {"Authorization": f"Bearer {os.environ['REOPENLY_API_KEY']}"}
ROLES = {"system", "user", "assistant"}
MAX_CHARS = 20480
BATCH_SIZE = 500
START = 0  # Set to the next batch index if resuming after a failed batch.


def convert(number, record):
    messages = []
    for message in record["messages"]:
        content = message.get("content")
        if (
            message.get("role") not in ROLES
            or not isinstance(content, str)
            or message.get("tool_calls")
            or message.get("function_call")
            or "\x00" in content
            or len(content) > MAX_CHARS
        ):
            return None
        item = {"role": message["role"], "text": content}
        if "weight" in message:
            item["weight"] = message["weight"]
        messages.append(item)
    return {"name": f"openai-{number}", "tags": ["openai-import"], "messages": messages}


chats, skipped = [], 0
with open("training.jsonl", encoding="utf-8") as lines:
    for number, line in enumerate(lines, 1):
        if not line.strip():
            continue
        chat = convert(number, json.loads(line))
        if chat is None:
            skipped += 1
        else:
            chats.append(chat)

for start in range(START, len(chats), BATCH_SIZE):
    batch = chats[start : start + BATCH_SIZE]
    span = f"{batch[0]['name']}..{batch[-1]['name']}"
    for attempt in range(3):
        try:
            response = requests.post(URL, headers=HEADERS, json={"items": batch}, timeout=120)
        except requests.RequestException as err:
            raise SystemExit(
                f"Network error on batch {start} ({span}): {err}. "
                f"This batch may or may not be saved: search for {batch[0]['name']} before re-sending."
            )
        if response.status_code == 429 and attempt < 2:
            time.sleep(5 * (attempt + 1))
            continue
        break
    if not response.ok:
        raise SystemExit(f"Stopped at batch {start} ({span}): {response.text}")
    print(f"Uploaded batch {start} ({span}): {len(batch)} chats")
print(f"Skipped conversations: {skipped}")

If it stops halfway, set START to the failed batch index and send only the batches that are left: sending the whole file again adds the first chats twice. If your chats already carry a system message, do not also send a system_prompt when you train.

2. Check the file before you train on it

Check your training file before you train on it. Open Dataset health. It counts exact copies, conflicting answers to the same question, chats the trainer cannot use, and text shaped like an email address, a phone number or a Brazilian identity document. A similarity scan finds near copies, and, when you chose a validation set, near copies of your training examples inside it. The check is also one call:

GET /api/v1/projects/{owner_slug}/{project_number}/datasets/{dataset_number}/health

A similarity scan reports duplicate and near-duplicate chats and never changes, excludes or deletes an item, and the app shows its price before you start it. The personal data check is a pattern check, not a detector: a clean result is not proof that a file holds none. When you do fix something in bulk, the app shows the plan first, writes nothing if the data changed in between, moves chats to Trash instead of deleting them, and a batch can be undone.

3. Fine-tune a small open model

Choose a base. ReOpenly/Qwen3.5-9B is the one this guide uses in its examples. ReOpenly/Inkling-2-Mini is available from December 4, 2026. It always reasons before it answers, takes text only, and refuses tool calls and JSON mode at launch. It trains on examples of up to 2,048 tokens (default 1,024). Ask for the estimate first. It is the forecast of billed time, in US dollars, and nothing starts:

GET /api/v1/projects/{owner_slug}/{project_number}/runs/estimate-messages?tags=openai-import&model_name=ReOpenly/Qwen3.5-9B&num_train_epochs=3

Then start the run in the app's New run or through the API. Use a new UUID in Idempotency-Key for each run:

curl -X POST "https://reopenly.com/api/v1/projects/acme/12/runs" \
  -H "Authorization: Bearer $REOPENLY_API_KEY" \
  -H "Idempotency-Key: 3f6c1d2e-6a4b-4e8f-9c1a-2b7d5e0f8a31" \
  -H "Content-Type: application/json" \
  --data '{"dataset_tags": ["openai-import"], "model_name": "ReOpenly/Qwen3.5-9B", "max_seq_length": 2048, "num_train_epochs": 3}'

Training is billed per minute of measured training time. A run that never begins training is free, and an attempt that fails is not charged. The settings you choose are frozen on the run, so you can trace it later.

4. Run the old model and the new one on your test set

Measure on your own test set, through the served model, with the same loop for both. Count how often each is right, the time per answer, and the cost per 1,000 requests from each side's published price. A score the trainer prints is not the quality you will get when serving, so do not use it for this.

The Playground's Compare two is for reading, not for scoring. It sends one prompt to two models served on ReOpenly, shows the answers in random order, and you vote blind. Use it to read two of your models side by side, for example two hosted models, such as two runs you have hosted, before you commit. It does not call OpenAI, so the old-against-new count is your own loop.

In a study we published in October, we ran a test like this on 437 contract clauses from a public dataset. A fine-tuned 8B open model scored 73.7% against 70.0% for a frontier model with no fine-tuning, not a difference this sample can confirm. The small one answered in 0.25 seconds against 2.23. One task, one public dataset. It was Llama 3.1 8B, not the ReOpenly base, and a replication, not a measurement of our catalog. Method and limits.

5. Change the base URL in your OpenAI SDK

On a finished run, choose Host model and give it a name and a slug (a dialog, not a single click). In Put Run N to work, Code and download shows ready examples. Your OpenAI SDK then points at the project:

from openai import OpenAI

client = OpenAI(
    base_url="https://reopenly.com/api/projects/acme/12/openai/v1",
    api_key="<your ReOpenly API key>",
)

Use the hosted model's slug as model (the slug you chose, for example support-assistant), or run#4 for a run of your own project. Make the key a narrow one: a key can hold only the scopes you choose, be limited to some projects and expire. Keep the OpenAI model as the fallback until January 14. Inference is billed per token at the prices on the pricing page.

6. Download the adapter

A model you trained downloads as its adapter:

GET /api/v1/projects/{owner_slug}/{project_number}/runs/{run_number}/download?format=lora
GET /api/v1/projects/{owner_slug}/{project_number}/runs/{run_number}/download-metadata

In the app it is under Code and download on a finished run. It is a standard LoRA adapter (a .tar.gz of the adapter files) you keep. We have not yet run one from a fresh machine end to end, so test it before you depend on it. ReOpenly also commits to at least 14 days' notice before it retires a base model, and a download keeps working after that. Nobody can put an end date on a file you hold.

Want help with the first one?

We will move the first fine-tune with you, as a guided pilot. It starts with ReOpenly's dataset health checks run on your training file, before any training run is paid for. You keep the data and the weights. Ask at reopenly.com/partners/guided.

What this guide does not promise

It does not promise your new model will match your fine-tuned GPT-4o or GPT-4.1: the October study is one task on one public dataset. Qwen3.5 9B has a 4,096-token serving context and a 2,048-token default training limit (max_seq_length), so check your longest prompts (see the start of this guide). We have not yet run an adapter from a fresh machine end to end. Tool calls and images are not converted. We have not run the conversion script against a large OpenAI file for this guide. We do not have SOC 2 yet. And we cannot move a model for you that you no longer have the data for.

Questions

Why not move to the newer OpenAI model? You can, without a fine-tune. But OpenAI ends new self-serve fine-tuning jobs on December 15, so the next move is the same question again.

Is 73.7% against 70.0% a real difference? On 437 clauses, this sample cannot confirm a difference in accuracy. The speed is what differed.

Which open model? Qwen3.5 9B, called ReOpenly/Qwen3.5-9B, or Inkling 2 Mini, called ReOpenly/Inkling-2-Mini.

Do you have SOC 2? Not yet. What we keep, where it runs and what we never do are in the privacy policy, and the adapter of a model you trained is a file you can download.

Is the health check free? The rule checks are free. A similarity scan is billed per token and shows its price before it runs. New accounts start with $10 free (the Terms say which accounts it applies to), and that balance is what pays for it.

What does it cost? Training is billed per minute of measured training time and inference per token. The prices are on the pricing page.