﻿# What makes a LiteRT-LM bundle build byte-reproducible?

What makes a LiteRT-LM bundle build byte-reproducible? Publish the manifest and artifact digest together.

Author: Retrivium editorial team
Updated: 2026-11-29
Canonical URL: https://retrivium.ai/journal/research-20261129-litert-reproducible-artifacts/
Language: en

LiteRT-LM v0.20.0, published November 23, describes byte-identical bundle output with SOURCE_DATE_EPOCH set when inputs and UUID match. Reproducibility is defined for the artifact. Device behavior remains a separate validation.

## What the source establishes

Record model and tokenizer digests, converter version, UUID, options and build environment. Equivalent file names do not ensure that inputs or model metadata are the same. Pin the artifact and compare through the same runtime entry point that the application uses.

## Design the comparison

Build the same artifact on separate clean workers using the pinned manifest. Compare the generated bytes and use a changed input as a control. Save differences in allowed environment inputs. Run a representative input with the previous version and repeat it after changing the dependency. Include a nearby boundary and observe the selected execution path. Use a stable control, change the condition you are investigating and repeat both cases in the same environment. Keep the request or data distribution, software revisions and hardware allocation in the run record. Include the route you normally use and the case in which the expected prerequisite is absent. This helps localize a discrepancy when the test produces a different result.

## Read the results

A matching digest establishes that distributed bytes match. Test load and a known generation on the target runtime, because byte equality between builds does not prove that the input model was the right one. Check the returned shape or contract along with time and memory. Keep correctness results attached to the exact configuration.

## Decide what goes into service

Publish the manifest and artifact digest together. Accept a reproducible build only for the documented inputs and then confirm the bundle runs. State the acceptance threshold before choosing the implementation. Add the tested boundary and conditions for revisiting it to the release record. If an observed behavior differs from expectations, narrow the scope of the rollout while collecting evidence for that case. Keep the prior artifact or configuration available so the comparison remains repeatable.

## Sources

- [Primary source · github.com](https://github.com/google-ai-edge/LiteRT-LM)
- [Primary source · LiteRT-LM v0.20.0](https://github.com/google-ai-edge/LiteRT-LM/releases/tag/v0.20.0)

## Related reading

- [Keep tokenizer vocabulary, special tokens and chat templates in one release](/journal/tokenizer-artifact-release-manifest/)
- [Validate ModelOpt quantized checkpoint scales and export provenance](/journal/modelopt-quantized-checkpoint-provenance/)
