
If you manage an IBM i system, you know how this conversation goes. Someone asks about AI, and the answers are always the same: "spin up a Linux LPAR", "use OpenAI", "check out Wallaroo". Every option means leaving the platform, adding layers, and at some point sending business data to a server you don't control.
There are 150,000 IBM i systems processing transactions in banking, insurance, and healthcare. The answer can't always be "add more infrastructure". So we tried something different.
What we did
We took llama.cpp — the most widely used open-source LLM inference engine — installed it directly from IBM's own PASE repository on an IBM i V7R5 partition, and pointed it at a big-endian GGUF model. It worked on the first try. Since then we've also verified it on IBM i 7.6.
$ uname -a
OS400 WWW 5 7 007800001B91
$ /QOpenSys/pkgs/bin/python3 -c "import platform; print(platform.platform())"
OS400-5-007800001B91-powerpc-64bit
$ /QOpenSys/pkgs/bin/python3 -c "import sys; print('Byte order:', sys.byteorder)"
Byte order: big
That's IBM i V7R5 on pub400.com — a public IBM i system. Big-endian, powerpc-64bit, OS400. Not Linux, not AIX. IBM i.
What kind of binary
$ file /QOpenSys/pkgs/bin/llama-cli
/QOpenSys/pkgs/bin/llama-cli: 64-bit XCOFF executable or object module
A 64-bit XCOFF binary — the native executable format for AIX, which PASE runs as-is. On IBM i the binary comes straight from IBM's PASE base repo (yum install llama-cpp); the AIX build and the big-endian GGUF models we maintain live at aix.librepower.org and huggingface.co/librepowerai.
First run
$ llama-cli --help
usage: llama-cli [options]
-m, --model FNAME model path (default: models/...)
-p, --prompt STRING prompt to start generation
--no-cnv disable conversation mode (one-shot)
...
The binary loads, links libggml and libllama, parses arguments, and responds. All inside PASE. To run actual inference, you point it at a big-endian GGUF model:
$ llama-cli \
-m models/tinyllama-1.1b-chat-be.gguf \
-p "What is IBM i?" -n 100 -t 4 --no-cnv
Why this matters for IBM i shops
In 2026, the AI conversation in the IBM i community is louder than ever. IBM just launched Bob (the successor to WCA for i), a coding assistant for RPG developers. 70% of IBM i customers plan hardware upgrades this year. And yet there's one question that still doesn't have a clean answer:
How do I integrate an LLM into my IBM i applications without depending on an external service?
The usual options, right now:
| Option | What it means | The catch |
|---|---|---|
| Linux LPAR | Spin up a separate partition, run the LLM there, call it from RPG via API | New hardware to manage, added cost, data crosses partition boundaries |
| Cloud API | Call OpenAI, Azure, or AWS from RPG | Business data leaves the machine. A serious problem in banking, insurance, and healthcare |
| Wallaroo | Option 1 packaged as a service | $500/month. Still a Linux LPAR with branding |
| PASE + llama.cpp | The LLM runs inside IBM i itself, via PASE | No extra hardware. Data never leaves the partition. |
Bob is for the developer: it helps understand, document, and generate RPG code from the IDE. What we describe here is for the production application: an LLM running in the same partition that any RPG program can call like a local API. They solve different problems. Bob for the dev workflow, local inference for the apps themselves.
PASE: the bridge you already have
PASE (Portable Application Solutions Environment) is a runtime built into IBM i that executes AIX binaries natively. It's not emulation — it's a layer that exposes AIX system calls directly on top of the IBM i kernel. If something runs on AIX, it can run on IBM i via PASE.
On IBM i, llama.cpp now lives in IBM's own PASE base repository — no third-party port to bolt on. For AIX systems we still maintain our own build through LibrePower's AIX repository, alongside 30+ other open-source packages installable via DNF. PASE handles the rest.
You don't need to install anything special on the operating system. PASE is already active. On IBM i, yum install llama-cpp pulls the binary straight from IBM's PASE base repo. Add a big-endian GGUF model and you're done — the LLM runs as a regular PASE process, without touching the native IBM i environment.
The big-endian problem (and how we solved it)
There's a reason nobody had done this cleanly before: byte order. IBM i and AIX are big-endian. Virtually all AI software — x86, ARM, Linux ppc64le — assumes little-endian. A GGUF file downloaded from HuggingFace won't load on IBM i: the bytes are in the wrong order.
We'd already solved this in our AIX work. The solution: convert the models before distributing them. We publish big-endian GGUF models at huggingface.co/librepowerai, validated on real AIX hardware and ready to load directly on IBM i PASE.
| Model | Size | Quantization |
|---|---|---|
| TinyLlama 1.1B Chat | 668 MB | Q4_K_M |
| LFM 1.2B Instruct | 695 MB | Q4_K_M |
| LFM 1.2B Thinking | 731 MB | Q4_K_M |
| 7 more available | — | — |
The same models we run on AIX POWER load without conversion on IBM i via PASE. On IBM i POWER10, MMA hardware acceleration is available through OpenBLAS. Benchmarks are in progress and will be published separately once numbers are validated end-to-end.
From proof of concept to production
Running --help proves the binary loads. The real path to useful AI in your applications has three stages, and the first one is available right now.
Stage 1: Direct inference (available now)
From any SSH or QSH session on the IBM i:
# Direct one-shot inference from the command line
llama-cli \
-m /path/to/model.gguf \
-p "Summarize this purchase order" -n 200 -t 8 --no-cnv
--no-cnv disables conversation mode — use it for scripted one-shot prompts (batch jobs, CL calls, cron). Useful for CL scripts, batch jobs, or just verifying that the model loads and responds correctly on your specific hardware before going further.
Stage 2: OpenAI-compatible API server (coming soon)
llama.cpp includes llama-server, which exposes an HTTP endpoint compatible with the OpenAI API. Once running in PASE, any RPG program can call it using QSYS2.HTTP_POST — exactly like any other API:
# Start the inference server on IBM i via PASE
llama-server \
-m /path/to/model.gguf \
--host 0.0.0.0 --port 8080 -t 8
// Call it from RPG — the LLM is on localhost
dcl-s url varchar(256) inz('http://localhost:8080/v1/chat/completions');
dcl-s body varchar(65535);
dcl-s response varchar(65535);
// QSYS2.HTTP_POST — no data leaves IBM i
The important part: localhost. The model is on the same machine. Data never leaves the partition.
Stage 3: Business application integration (in development)
- Document analysis: feed Db2 reports to the LLM for automatic summarization
- Natural language queries: the user types in plain English, the LLM returns SQL
- RPG code modernization: the LLM analyzes and documents existing programs without leaving IBM i
- Intelligent monitoring: analyze QSYSOPR messages and job logs with semantic context
How to try it yourself
If you have access to an IBM i with PASE active, it's three steps.
1. Install llama.cpp
On IBM i: llama.cpp is now in IBM's own base PASE repository — no third-party port needed.
# From QSH or SSH on IBM i
yum install llama-cpp
On AIX: use our port from aix.librepower.org (source and packaging at gitlab.com/librepower/aix under llama-aix/RPMS/).
# On AIX with DNF configured against aix.librepower.org
dnf install llama-cpp
2. Download a big-endian model
# Model repo: https://huggingface.co/librepowerai/tinyllama-1.1b-chat-be
# Grab the .gguf link from the "Files" tab, then:
curl -LO https://huggingface.co/librepowerai/tinyllama-1.1b-chat-be/resolve/main/<file>.gguf
TinyLlama is a solid starting point: small enough to load fast and enough to verify everything works before moving on to larger models.
3. Run inference
llama-cli \
-m tinyllama-1.1b-chat-be.gguf \
-p "What is IBM i?" \
-n 150 -t 4 --no-cnv
On first run you'll see something like ggml_backend_load_best: search path does not exist. It's cosmetic — llama.cpp is probing for optional backends that aren't installed. Inference runs normally, ignore it.
We have been supporting IBM i environments for years. If you want to understand whether this approach fits your architecture — or what it means for your RPG applications — get in touch. No strings attached.
What's next
This is a solid proof of concept, not a finished product. Here's what we're working on next:
- llama-server on IBM i — the HTTP API server running in PASE, documented and packaged so you can get it running in minutes
- RPG integration examples — real code for calling the LLM from RPG programs via
QSYS2.HTTP_POST - IBM i POWER10/POWER11 benchmarks — measurements on production hardware
- Larger models — testing 7B+ models on partitions with enough memory
- vLLM for IBM i — our vLLM package for ppc64le, adapted to run in PASE
More from LibrePower
| Project | What it does |
|---|---|
| aix.librepower.org | 30+ open-source packages for AIX (llama.cpp included), installable via DNF |
| huggingface.co/librepowerai | Big-endian GGUF models ready for AIX and IBM i PASE |
| linux.librepower.org | APT repository with vLLM for Linux ppc64le (Ubuntu/Debian) |
| gitlab.com/librepower/aix | Source, patches and packaging for the AIX port (RPMs under llama-aix/RPMS/) |
Try the LLM on your own partition
On IBM i, llama.cpp is a yum install llama-cpp away — it ships in IBM's own base PASE repository. The big-endian models are on HuggingFace. If you have PASE access and a few minutes, you can replicate exactly what we describe here :)
