Power Modernization

Power Modernization

Learn about the robust capabilities of IBM Power systems - alongside Red Hat technologies - for modernizing your apps and operations without the need to overhaul existing hardware, offering a flexible and incremental path to innovation.


#Power


#Servers
#Applicationmodernization
#Power
 View Only

LLM Inference with Ollama on IBM POWER9 using the GPU

By Maria Luísa Gomes posted 07/01/26 02:23 PM

  

Running large language models (LLMs) on IBM Power systems presents challenges, especially when the most popular tools do not offer official support for the ppc64le architecture. This post describes how we developed and validated the execution of Ollama with GPU acceleration on the IBM Power9 server, with NVIDIA Tesla V100 GPUs and CUDA 12.2.

Ollama is a framework based on llama.cpp, designed to simplify the deployment and execution of language models, offering a user-friendly interface and support for a wide range of tasks. Figure 1 illustrates the request flow using Ollama on the IBM POWER9 environment.

Figure 1: Request flow on IBM POWER9 with Ollama and GPU acceleration.

 

However, Ollama does not offer official support for ppc64le with CUDA. A previous approach, described in this IBM Community post, used a community fork of Ollama to enable GPU inference on AlmaLinux ppc64le. However, after using and compiling Ollama through that fork, we found that, due to it being an outdated version, the tool lacked support for current models.

To address this, we created a fork from the repository mentioned above, updating Ollama to version 0.23.2 with the necessary patches for the ppc64le architecture and GPU support via CUDA, enabling inference with current models such as Gemma and DeepSeek.

 

What this work enables

  • Run GPU-accelerated LLM inference on IBM Power9 (ppc64le architecture) with NVIDIA Tesla V100;

  • Use a pre-compiled binary or install via Conda, without the need to build from source;

  • Access an updated Ollama repository (v0.23.2) compatible with recent models.

 

Environment

The setup was validated in the following environment:

  • IBM Power9 server (AC922);

  • ppc64le architecture;

  • Operating system: AlmaLinux 8.10;

  • RAM: 512 GB;

  • GPU: 4× NVIDIA Tesla V100 SXM2 (16 GB);

  • NVIDIA driver: 535.54.03;

  • Conda virtual environment.

Modifications made

To compile Ollama on the ppc64le architecture, adaptations were required on three fronts: missing files in ggml, removal of incompatible backends, and build system adjustments. Each is discussed below.

  1.  PowerPC support files in ggml

llama.cpp, the inference backend underlying Ollama, did not include the necessary files for the PowerPC architecture. It was necessary to manually add cpu-feats.cpp and quants.c from the upstream ggml repository, as well as create Go wrappers (powerpc.go and cpu_ppc64le.go) so that the compiler would recognize the new CPU backend.

  1. Removal of unsupported CPU variants

The ggml CMakeLists.txt referenced the power10 and power11 variants, which do not exist in the AC922 environment. The corresponding entries were removed to prevent compilation failures.

  1. CMake and Go build adjustments

The ggml-cuda module had to be decoupled from the root CMakeLists.txt and re-enabled via compilation flags (-DGGML_CUDA=ON, CUDA_ARCHITECTURES=70). The CUDA_ARCHITECTURES=70 flag is specific to the Tesla V100, which belongs to the Volta architecture (sm_70). In the Go build, the flag -extldflags=-lstdc++fs was required for compatibility with GCC 11 on AlmaLinux 8.

The complete step-by-step guide for building the binary from source, including exact dependency versions, environment configuration, ppc64le-specific fixes, and the compilation flags mentioned above, is documented in the README_POWER9 of the repository: https://github.com/llm-pt-ibm/ollama-ppc64le. 

Installation

Two options are available for those who do not want to build from source.


Option 1 — Pre-compiled binary (GitHub Releases):

# download the binary
wget https://github.com/llm-pt-ibm/ollama-ppc64le/releases/download/v0.23.2-ppc64le-power9/ollama-ppc64le


# make it executable
chmod +x ollama-ppc64le

Option 2 — Conda package:

conda install ufcg-ibm::ollama-ppc64le

For instructions on running inference, including starting the server, confirming GPU detection, and pulling/running a model, see the How to use section of the README_POWER9.

Conclusion

This work presents a reproducible path for running GPU-accelerated LLM inference on IBM Power9 systems using Ollama, addressing the lack of official ppc64le support through the development of a repository that uses a fork to update the tool and provide pre-compiled binaries. By making these resources available, we aim to lower the barrier for developers working in this environment and to contribute to the expansion of the ppc64le ecosystem.

This work is part of a collaboration between the Federal University of Campina Grande (UFCG, Brazil) and IBM, within the scope of the Multi-Arq project, which focuses on porting, validating, and optimizing applications for the ppc64le architecture.

Resources


#PowerDataandAI
4 comments
83 views

Permalink

Comments

08/31/26 12:32 AM

Thank you very much Maria!

Fantastic work and very helpful!

07/10/26 03:10 PM

HI Maria 

Please have your IBM contact reach out to Christy Norman or Paul Bastide and we can discuss the options.
Best wishes

07/06/26 02:57 PM

Thank you for the suggestions! @PAUL BASTIDE

As mentioned in the post, this work is part of the Multi-Arq project, a collaboration between the Federal University of Campina Grande (UFCG, Brazil) and IBM focused on porting, validating, and optimizing applications for the ppc64le architecture. Our current hardware access is POWER9, which is why the post and the fork are scoped to that generation. Working with newer POWER generations is something we'd like to explore in the future, though we don't have a well-defined forecast for access to that hardware yet.

We'd also like to know, since we're not part of IBM, whether it would be possible for us to publish packages/images to the repositories you mentioned (wheels.developerfirst.ibm.com and IBM Container Registry), or if publishing access is restricted to internal IBM teams.

07/02/26 03:49 PM

Thank you for your great work on ollama on IBM Power (it's a great tool).

As a possible next step, you may also want to mention that for newer deployments IBM recommends IBM Power11 with Spyre and IBM AI Services, which are designed for Power11 systems and optimized for the IBM Spyre Accelerator: https://www.ibm.com/docs/en/aiservices?topic=services-introduction

For related ecosystem resources, developers can also use optimized Python packages from https://wheels.developerfirst.ibm.com/ and IBM-provided open source container images for Power from IBM Container Registry, including resources useful for Power10 and newer systems: https://community.ibm.com/community/user/powerdeveloper/blogs/priya-seth/2023/04/05/open-source-containers-for-power-in-icr