# Audit a fine-tune before you trust it

A model card says "fine-tuned from Qwen2.5-0.5B". Is it? The distance screen in Commons measures how far a model sits from its claimed base, flags a same-shape look-alike that was never fine-tuned from it, and has caught an upload with NaN weights. Here is the afternoon version.

Canonical: https://parameterspaceinspector.com/blog/audit-a-hugging-face-fine-tune-before-you-trust-it/  
Updated: 2026-10-25  
Part of the Parameter Space Inspector (free, open-source desktop app) · section: https://parameterspaceinspector.com/blog/ · Site guide for AI: https://parameterspaceinspector.com/llms.txt

**Who this is for.** Teams pulling community fine-tunes into a pipeline, and anyone who has been burned by a model that was not what its card said. You do not need to know how models are trained; the background section explains the terms used later.

## Background: three ideas you need

### 1. Base, fine-tune and shape

A language model is a very large list of numbers, its *weights*. A *base model* is trained from scratch on a huge amount of text. A *fine-tune* starts from the base's weights and trains them a little more on a narrower task (following instructions, writing code, a language), so most numbers move only slightly.

A fine-tune therefore has the same *shape* as its base: the same number of layers, the same width, the same vocabulary. Same shape is necessary but not enough: a model trained from scratch with the same design also has it. The model card's "fine-tuned from" line is something anyone can type. Its [lineage](/glossary/lineage/) is a claim until it is checked.

### 2. Distance from the base

Commons measures how far a candidate's weights sit from the base it claims: 0 means identical, and the further the weights moved, the larger the number. Reference values:

| What it is | Distance from the claimed base |
|---|---|
| A light fine-tune (20 public models) | 0.0004 to 0.04 |
| Qwen2.5-Coder-0.5B-Instruct against Qwen2.5-0.5B (same name family, same shape) | 0.56 |
| An unrelated model of the same shape | about 1.3 |

A light fine-tune moves its base a few hundredths. Around 0.5 and above, it is more like another model of the same shape: a different training run, not a fine-tune.

### 3. Understanding tests and the untrained twin

Distance says how much changed, not whether the change is good. For that, PSI's [Understanding](/instruments/understanding/) view runs tests that next-word training never posed (where a cup is after it moves, for example), each scored against a plausible wrong answer. A network with random weights already scores above zero on many tests, so the honest floor is the [untrained twin](/glossary/untrained-twin/): the same architecture with random weights. A test counts as passed only when the model beats the twin by more than the noise (0.5 nats).

## What you need

- **PSI installed.** See [Install](/docs/install/).
- **The inside engine**: Python 3.12 and PyTorch (with numpy and safetensors). A 0.5B to 4B model fits an ordinary 16 GB card; without a GPU it runs on the processor, slowly.
- **A Hugging Face token** in Settings > Hugging Face. The Hugging Face parts of the app, including the section used below, stay hidden until a token is saved and confirmed. A token with read access is enough for this audit.
- **The candidate and its claimed base**, by their Hugging Face names, for example a community fine-tune and `Qwen/Qwen2.5-0.5B`. PSI ships no model; both are fetched from Hugging Face.
- **Somewhere to note the results**, for example:

| | Base | Candidate |
|---|---|---|
| Listed with the same shape? | | |
| Distance from the base | | |
| Licence | | |
| Understanding tests passed (against the twin) | | |

## Steps

### Step 1. Find the base's fine-tunes (the shape check)

1. Open [Commons](/instruments/commons/) in the left menu (under Beta), and its **Recipes** tab.
2. Scroll to section 5, *the second path: merge public models from Hugging Face*.
3. Type the base in the box (it starts with `Qwen/Qwen2.5-0.5B`) and press **Find models that merge with it**.
4. PSI lists that base's public fine-tunes, and the fine-tunes of those, with each one's licence and downloads, and marks which ones have the same shape; the others cannot be ticked. It reads configs and file lists only.

This is the first check: a model whose shape differs is not a fine-tune of that base, whatever the card says.

### Step 2. Run the distance screen on your candidate

1. Tick your candidate in the list.
2. Choose a method (task arithmetic is fine; the merge itself is not what you are after here) and press **Make the recipe**.
3. PSI downloads the base and the candidate once, each file checked against its hash, and merges them on the processor. Then it checks the recipe and shows a table, one row per model.
4. Read the **from base** column: that is the candidate's distance from the base. A candidate far from the base also gets a warning under the table that begins *Far from the base*.
5. Note the **licence** column too.

### Step 3. Read the number against the reference range

Compare your number with the table in the background section. Across 20 public models, a light fine-tune sits at 0.0004 to 0.04 from its base. Qwen2.5-Coder-0.5B-Instruct, which shares a name and a shape with Qwen2.5-0.5B, sits at 0.56: a different training run, not a fine-tune.

### Step 4. If the screen names another parent, follow the licence

If the screen names a different parent than the card, believe the screen and check that parent's licence, because that is the licence you inherit.

### Step 5. Run the understanding tests on the candidate and on the base

1. Get each model's weights folder: Settings > Models > **Import from Hugging Face**, paste the model's address, press **Get**, then press **Get the weights folder** on the card that appears (the folder is for the inside engine). Do this for the base and for the candidate.
2. In Settings > **Inside-the-model engine**, set the weights folder to the base and press **Save and restart the engine**.
3. Open **Understanding**. Press **Run the tests**, then **Measure the untrained twin**. Each row now shows the twin's margin beside the model's; a difference within ±0.5 nats is *within noise*. Note how many tests pass.
4. Set the weights folder to the candidate, **Save and restart the engine**, and run the same two buttons.

A fine-tune that scores below its base on the understanding tests has lost something; the card will not mention it. For models PSI has already measured, the [Self-portrait](/instruments/self-portrait/) shows stored results beside the twin.

## What you will see

If most candidates you screen land inside the light fine-tune range, your screen is working as ours did.

Most community fine-tunes are light and honest. The screen's value is the exceptions: the look-alike trained from scratch, the merge presented as a fine-tune, and, once in our own use, a repository whose weights contained NaN values and would have failed quietly in production.

## What it will not tell you

Distance says how much changed, not whether the change is good. For that, the understanding tests and your own evaluation set, with the untrained twin as the floor, are the measurement.

## Make the result travel

If the model passes, build it into a recipe or record its lineage in [Seed & lineage](/instruments/seed-lineage/) with the base pinned by hash. The next person gets a claim they can verify instead of a card they have to trust.

## Questions people ask

### Can I tell if a Hugging Face model is really a fine-tune of the base it claims?

Yes, by measuring how far its weights sit from that base with the distance screen in PSI's Commons. Across 20 public models a light fine-tune sat at 0.0004 to 0.04 from its base, while Qwen2.5-Coder-0.5B-Instruct, which shares a name and a shape with Qwen2.5-0.5B, sat at 0.56: a different training run, not a fine-tune.

### Which licence applies to a fine-tuned model?

The licence of the parent it was really trained from. If PSI's distance screen names a different parent than the model card, believe the screen and check that parent's licence, because that is the licence you inherit.

### Does a small weight distance mean a fine-tune is good?

No: distance says how much changed, not whether the change is good. For that, run PSI's understanding tests on the candidate and on the base, with the untrained twin as the floor, plus your own evaluation set; a fine-tune that scores below its base has lost something the card will not mention.

### What does distance from the base mean, in plain words?

It is how far a model's weights have moved from the base model it claims to come from: 0 means identical. In PSI's Commons, a light fine-tune sits a few hundredths from its base (0.0004 to 0.04 across 20 public models), while a model of the same shape from a different training run sits much further away, such as Qwen2.5-Coder-0.5B-Instruct at 0.56 from Qwen2.5-0.5B.

---

From [The Emergence Machine](https://emergencemachine.com/). Newsletter: [subscribe on Substack](https://theemergencemachine.substack.com/subscribe). Use-case feed: https://parameterspaceinspector.com/feed.xml. Follow: [Substack](https://theemergencemachine.substack.com) · [YouTube](https://www.youtube.com/@emergencemachine) · [X](https://x.com/emergences4me) · [Bluesky](https://bsky.app/profile/emergencemachine.bsky.social) · [Reddit](https://www.reddit.com/r/emergencemachine/) · [Instagram](https://www.instagram.com/emergencemachine/) · [TikTok](https://www.tiktok.com/@emergencemachine) · [Kaggle](https://www.kaggle.com/emergencemachine/datasets).
