Back to articles

tritify Uses Exact Integer Arithmetic to Make Distributed Inference Verifiable

3 min read

The same model can produce different bits when run with different hardware, compilers, or thread counts. Small floating-point variations may propagate through later computations, making it harder to reproduce a result or determine whether two deployments behaved alike. A paper featured by Hugging Face Daily Papers introduces tritify, an open-source runtime designed to make this problem more tractable through exact integer arithmetic.

Integer arithmetic in the runtime

tritify runs forward passes for decoder-only language models, Mixture-of-Experts (MoE) decoders, and the Segment Anything 2.1 image and video stack. The authors keep floating-point operations in offline quantization and in a float reference used for verification; the runtime inference path uses exact integer arithmetic. They report that output hashes and bytes remain identical across the environments they tested.

The paper separates its evaluation into three claims:

  • Reproducibility across hardware: The integer path is reported to produce bit-identical outputs across CPU instruction-set architectures and between CPU and GPU execution.
  • Decision fidelity: On the models and inputs tested, the integer path reproduces the decisions of the floating-point reference. The authors say they measured numeric exceptions. Their layer-by-layer analysis of the first sixteen layers of OLMoE-1B-7B and a 106-billion-parameter MoE found no fidelity cliff. The supplied summary does not give a full account of the exceptions, so this result should not be generalized to untested settings.
  • Independence from execution location: Computation can be divided among instruction sets, CPUs, GPUs, and networked machines without, according to the authors, changing the output bits.

The distributed example makes the last claim concrete. The paper says GLM-4.5-Air has 106,852,251,264 parameters and 427 GB of integer codes. It generated an answer across three machines, none of which could hold all of those codes in RAM, and matched a single-host reference bit for bit. This points to a way of spreading model execution when a single machine cannot accommodate the model’s codes in memory.

Reproducibility is not the same as correctness

Bit-identical inference could make experiments easier to reproduce, help diagnose deployment differences, and support checks on outputs produced by remote infrastructure. The paper’s proposed consequence is verifiable distributed inference: rather than relying entirely on a server or device fleet, an open scalar reference could re-derive the same bytes. But matching bytes does not establish that an answer is correct, nor does the supplied description amount to a complete cryptographic proof. The reported fidelity applies to tested models and inputs, not every possible workload. The summary also does not provide enough information to assess speed, cost, or broad compatibility.

For now, tritify is best read as an engineering approach backed by specific reported tests: use exact integer arithmetic to strengthen determinism, then carry that property across distributed execution. Further evaluation will be needed to establish how well it balances throughput, deployment cost, and compatibility with a wider range of models.

Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles