﻿# How should text-only Llama4 inference be checked after the image_outputs fix?

How should text-only Llama4 inference be checked after the image_outputs fix? Require the text-only and image paths to succeed according to their contracts.

Author: Retrivium editorial team
Updated: 2026-11-29
Canonical URL: https://retrivium.ai/journal/research-20261129-transformers-llama4-text-only/
Language: en

Transformers v5.24.1 on November 24 fixes a Llama4 forward crash when image_outputs is missing. The release targets a missing optional value. Validate text-only and multimodal calls separately on the same supported checkpoint.

## What the source establishes

An application serving text and images can dispatch them through one wrapper. A text-only request should supply the supported minimal inputs, while an image request must still use its appropriate preprocessing path. Pin the artifact and compare through the same runtime entry point that the application uses.

## Design the comparison

Use a plain text fixture without image fields and a separate fixture with approved test imagery. Confirm the processor and model version, inspect the tensor inputs and compare the returned objects. 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.

## Read the results

Check text generation, valid image response and explicit errors on genuinely unsupported inputs separately. Record model identifiers and any dynamic padding or cache changes before comparing output quality. Check the returned shape or contract along with time and memory. Keep correctness results attached to the exact configuration. Collect the primary outcome together with a measure of workload size. Preserve errors, timeouts and explicit fallbacks in the reported population. A median from successful samples can conceal a subgroup that operates on a different path. Store enough diagnostic context for another engineer to explain which part of the system caused the difference.

## Decide what goes into service

Require the text-only and image paths to succeed according to their contracts. Keep the missing-image-field case as a regression test. 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 · transformers #51144](https://github.com/huggingface/transformers/pull/51144)
- [Primary source · transformers v5.24.1](https://github.com/huggingface/transformers/releases/tag/v5.24.1)

## Related reading

- [Which memory budget matters when deploying Tencent WePM locally?](/journal/daily-20261124-models-wepm-multimodal-runtime-memory/)
- [Keep tokenizer vocabulary, special tokens and chat templates in one release](/journal/tokenizer-artifact-release-manifest/)
