Skip to main content

ollama-ipex

Control plane for the IPEX-backed Ollama runtime.

Goal

  • Keep the same public endpoint as native Ollama: http://127.0.0.1:11434
  • Switch cleanly between native systemd Ollama and the IPEX Docker backend
  • Keep existing scripts using plain ollama unchanged
  • Replace shell helpers with an installable uv tool
  • Do not re-wrap native ollama commands like list, ps, or run

Source Of Truth

  • AGENTS.md: project-level agent contract
  • src/ipex/config.yaml: runtime defaults
  • docker-compose.yml: generic container template fed by the CLI config
  • src/ipex/cli.py: Typer/Rich control plane

Install

uv tool install --editable /home/kpihx/Work/AI/ollama/ipex

This exposes:

  • ollama-ipex
  • ipex

Usage

ollama-ipex status
ollama-ipex start
ollama list
ollama ps
ollama run phi4-mini:latest
ollama-ipex preload --default
ollama-ipex preload qwen2.5:latest
ollama-ipex unload --all
ollama-ipex doctor
ollama-ipex logs --lines 200
ollama-ipex native
ollama-ipex down

After ollama-ipex start, use plain ollama ... commands. After ollama-ipex native, use the same plain ollama ... commands.

ollama-ipex start is intentionally verbose:

  • stop native Ollama if needed
  • recreate the Docker backend
  • wait for http://127.0.0.1:11434 to answer on the host
  • surface recent container logs immediately if the host probe never becomes healthy

Config

ollama-ipex config show
ollama-ipex config edit
ollama-ipex config set docker.mem_limit 20g
ollama-ipex config set docker.shm_size 6g
ollama-ipex config set runtime.default_model qwen2.5:latest

config edit opens the live YAML file with VISUAL, then EDITOR, then sensible-editor, then nano, then vi.

Build

uv build

Metadata

Release files for ollama-ipex 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ollama-ipex 0.2.4
File Size Uploaded
ollama_ipex-0.2.4.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ollama-ipex 0.2.4
File Interpreter ABI Platform
ollama_ipex-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / ollama_ipex-0.2.4.tar.gz

Download URL ollama_ipex-0.2.4.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0965bf049cdf82465b1196a44b54b9672f7c65e488e523f95aa3789f1764c015
BLAKE2b-256 checksum
How to use checksums
9028b361b589fd5c577d923fb78b1feec0a9f107abc5a41493ffecace504861e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ollama_ipex-0.2.4-py3-none-any.whl

Download URL ollama_ipex-0.2.4-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dd5c72a7202b5fc499e60e763268219f79cadff2571262db2a501241a449d3e
BLAKE2b-256 checksum
How to use checksums
05ca32cd621beda4831a2f7af62e97417280a1dad4b9769e4d6e13862bb5be61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page