Skip to main content

Local control plane for the IPEX-backed Ollama runtime.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ollama_ipex-0.2.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ollama_ipex-0.2.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file ollama_ipex-0.2.3.tar.gz.

File metadata

  • Download URL: ollama_ipex-0.2.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ollama_ipex-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e725bc91287dad56e930a8140f3590806efff9056455a1b649cd5d8028018b9c
MD5 815af21a29982d678f5611ed1e096f4f
BLAKE2b-256 5e295366f16c5994372b759d58655f5b1cce4a67a60e95b12f40a222d7e4495f

See more details on using hashes here.

File details

Details for the file ollama_ipex-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: ollama_ipex-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ollama_ipex-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1ed21394de21370f7f17dc32e257756b8f01b067cc5f91aa0cf6861666bd8f00
MD5 266efa0442db621cfa6b1090ce7f4796
BLAKE2b-256 186835c5cf5cd696bff9a5e3361db418051ae4b97d2d218b135581451616b46f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page