# llama.cpp update fixes LFM2 image tiling to match transformers

> The Oct 21 2026 release adjusts image preprocessing so LFM2 vision models produce the same tiles as transformer implementations.

Oossa · 2026-10-21 · https://oossa.com/en/llama-cpp-update-fixes-lfm2-image-tiling-to-match-transformers

The ggml‑org/llama.cpp library released a new version on Oct 21 2026. It changes the LFM2 image processor to keep the original aspect ratio and to use the same rounding logic as the Python code used by transformers. With the new PAD_NONE setting and double‑precision rounding, tile sizes now match those produced by transformer models for every image size up to 4096 × 4096. The fix removes black bars and inconsistent tile grids that previously affected d1‑3B and other LFM2‑VL models.

## The facts

- Release date: Wed Oct 21 2026
- Fixes rounding for 3.2 × 10⁴ of 16.7 M possible image sizes

## Why it matters

Developers using LFM2 vision models will see more reliable image preprocessing, avoiding size‑related bugs when swapping between llama.cpp and transformer code.

## Sources & references

1. [ggml-org/llama.cpp b11774](https://github.com/ggml-org/llama.cpp/releases/tag/b11774) – llama.cpp, 2026-10-21

Last updated: 2026-10-21
