﻿# Kubeflow Pipelines parameters and artifacts: a path string does not transfer a model file

Distinguish JSON-serialized KFP parameters from tracked model artifacts, local artifact paths and storage URIs when passing results between component containers.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-kubeflow-parameter-path-versus-artifact-payload/
Language: en

## The next component receives an unusable local path

A training component writes weights to its temporary filesystem and returns that path as a string. The scoring component receives the string successfully, but its container has no such file. The parameter was passed correctly; the model data was never represented as an artifact boundary between those components.

Distinguish the value of a path from the bytes found at that path. A string can identify a location without transferring its contents or establishing that the location has the same meaning in another container.

## Parameters are serialized values

The [parameter guide](https://www.kubeflow.org/docs/components/pipelines/user-guides/data-handling/parameters/) describes small data values and JSON serialization between components. A filename can be a valid parameter while still being an incomplete model-transfer contract. Its type does not prove remote file accessibility.

Use parameters for their semantic purpose, such as a threshold or an explicitly managed external locator. Avoid treating a local temporary pathname as a portable artifact merely because the parameter channel accepts strings without complaint.

## Artifacts expose storage and local access

The [artifact guide](https://www.kubeflow.org/docs/components/pipelines/user-guides/data-handling/artifacts/) distinguishes uri, path and metadata. A component can write a declared artifact through its supplied local path while the backend handles the corresponding storage transfer under the supported execution model.

Keep those properties distinct. The artifact URI identifies storage, while its local path is the component's access location. Neither should be casually substituted for a literal pathname copied from a different container's filesystem.

## Type checking does not establish model compatibility

The [DSL reference](https://kubeflow-pipelines.readthedocs.io/en/release-2.18/sdk/source/dsl.html) documents artifact types and component interfaces. A compatible artifact type is useful structure, but it does not automatically validate a model's framework format, tokenizer or inference configuration.

Connect those components through a [release manifest](/journal/tokenizer-artifact-release-manifest/). A model file that transfers correctly can still be the wrong candidate or require another configuration. Transport correctness and semantic compatibility need separate evidence.

## Verify the consumer's real read

Run a small training-to-scoring example that writes a recognizable declared model artifact. Confirm the consumer reads the intended content through its own artifact input rather than a producer-only absolute path.

For accompanying tables, apply [explicit schema validation](/journal/data-guide-frictionless-table-schema/) after transfer. A successful file handoff proves availability at that boundary; the evaluation still needs to establish the meaning and completeness of the values used for inference.
