Llama.cpp on z/OS

Porting local LLM inference to IBM mainframes with zopencommunity

Selected by IBM for the Global Remote Mentoring Project to contribute to the zopen community, which maintains open-source ports for z/OS. The goal was private, on-device AI inference on enterprise mainframes — no data leaving the box.

Both contributions are merged into zopencommunity/llamacppport:

The interesting problem here is endianness. IBM Z is big-endian, while essentially every open LLM checkpoint ships little-endian, so the weights are byte-swapped from the machine’s point of view. Getting inference working meant handling that conversion rather than assuming the host layout — alongside the usual porting friction around compilation and threading on a platform llama.cpp had never targeted.