﻿# W&B artifact lineage: downloading files and recording a run dependency are different actions

Preserve Weights & Biases artifact producer-consumer lineage by explicitly marking run inputs, distinguishing Public API downloads from dependency registration.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-wandb-artifact-download-consumption-lineage/
Language: en

## Define the missing edge in the experiment graph

A model-training run downloads a dataset through the W&B Public API and produces a checkpoint, but its lineage graph shows no dataset input. The [download guide](https://docs.coreweave.com/products/wandb/artifacts/download-and-use-an-artifact) distinguishes an independent download from recording a run input. Bytes can be available without a dependency edge. Decide whether the operation is merely an inspection or a tracked consumption event before choosing the interface used by the training wrapper.

## Record the input relationship deliberately

The [artifact-lineage guide](https://docs.coreweave.com/products/wandb/artifacts/explore-and-traverse-an-artifact-graph) describes input and output declarations and producer/consumer traversal. Mark the actual artifact used by the run through the supported input method. A string parameter containing a dataset name is useful context, but it is not equivalent to the structured dependency relation. Preserve the resolved artifact identity, especially when selection begins with a mutable alias whose target can change before a later investigation.

## Keep recorded consumption honest about transformations

If the worker downloads raw data and then filters or transforms it, the input edge describes the raw artifact, not a separate stored copy of every transformed example. Record the preparation revision and any retained derived artifact needed to explain the final model input. A visually connected graph can otherwise imply a direct relationship that omits important selection and preprocessing decisions. Lineage should expose those boundaries rather than make an unrecorded transformation disappear behind one convenient dependency label.

## Connect outputs to the run that produced them

The [Artifacts overview](https://docs.coreweave.com/products/wandb/artifacts) describes tracked inputs and outputs across processing and training runs. Log the resulting model or derived dataset as the output of its actual producer. A separately uploaded file without the intended producer relationship makes later traversal less informative even if its contents are correct. Define which task owns output publication so parallel workers do not create misleading or duplicated production histories for the same claimed result.

## Verify access and provenance separately

Inspect the recorded producer and consumers for a controlled dataset-to-model workflow, then retrieve the files and check their identity independently. The guides on [DVC pipeline state](/journal/data-guide-dvc-data-pipeline-lock/) and [dataset object identities](/journal/data-guide-coco-instance-caption-identities/) provide related context. A complete explanation needs both an honest dependency graph and retrievable artifacts. Neither a successful download nor an attractive graph alone establishes that the model consumed the retained data revision the report intends to describe.
