Skip to main content

Local LLM inference management via llama-server

Project description

dkdc-lm

GitHub Release PyPI crates.io CI License: MIT

Language model service.

Install

Recommended:

curl -LsSf https://dkdc.sh/lm/install.sh | sh

Pre-built binaries are available for Linux and macOS via Python (uv). Windows users should install via cargo or use macOS/Linux.

uv:

uv tool install dkdc-lm

cargo:

cargo install dkdc-lm-cli

Verify installation:

lm --version

You can use uvx to run it without installing:

uvx --from dkdc-lm lm

Usage

CLI

lm start                              # Start with default model (Gemma 4 26B-A4B)
lm start --builtin gemma-4-e4b-it     # Start with smaller model
lm start --hf ggml-org/some-model-GGUF  # Start with HuggingFace model
lm start --model /path/to/model.gguf  # Start with local model
lm status                             # Check server status
lm logs                               # View recent logs
lm attach                             # Attach to tmux session
lm stop                               # Stop server

Rust

use dkdc_lm::{start, stop, status, resolve_builtin, DEFAULT_PORT};

let args = resolve_builtin("gemma-4-26b-a4b-it")?;
start(&args, DEFAULT_PORT, -1, 4096)?;

let (tmux, http) = status(DEFAULT_PORT);
println!("tmux: {}, http: {}", tmux, http);

stop()?;

Python

import dkdc_lm

args = dkdc_lm.resolve_builtin(dkdc_lm.default_builtin())
dkdc_lm.start(args)

tmux_running, http_responding = dkdc_lm.status()
print(f"tmux: {tmux_running}, http: {http_responding}")

dkdc_lm.stop()

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

dkdc_lm-0.2.1.tar.gz (17.6 kB view details)

Uploaded Source

Built Distributions

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

dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.39+ x86-64

dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.39+ ARM64

dkdc_lm-0.2.1-cp311-abi3-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

dkdc_lm-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file dkdc_lm-0.2.1.tar.gz.

File metadata

  • Download URL: dkdc_lm-0.2.1.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dkdc_lm-0.2.1.tar.gz
Algorithm Hash digest
SHA256 03e9b3cc4cf6c4275247af6f245300f89b0ea385b515b77265a9eea0d05e9686
MD5 8e3c055cbd772bc60da14faacea334d8
BLAKE2b-256 53a35f1d3c4ae4cb533c6136c8daf0e3fe707fa78569d36dac2a2d4e3c6b28d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_lm-0.2.1.tar.gz:

Publisher: release-python.yml on dkdc-io/lm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 81d4349990113cfe473ab7225a576f3a0aca85f63c3c992185fd4d76254b892c
MD5 43619739ee31731435a3be74ca4875cf
BLAKE2b-256 b4c7524e236c8bde901e934b6ec923467be92afc488174800a25ef7c3d897d20

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_x86_64.whl:

Publisher: release-python.yml on dkdc-io/lm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 d19bfcaef200ec835a63f9ca1c5f9fa5a7a988d5056ea9e3ce059940f0b29215
MD5 7727ea549e9cf423dc4f50ff47abad6f
BLAKE2b-256 7ed8e7f58bf6654511fd213ee3b0ec0f5a75fcb81af123e1490087b5fc5ac45f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_lm-0.2.1-cp311-abi3-manylinux_2_39_aarch64.whl:

Publisher: release-python.yml on dkdc-io/lm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dkdc_lm-0.2.1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dkdc_lm-0.2.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43adbc84de5772d1e253e9571b689d538d830cb80e92a7f0b73ae8cb64cebae3
MD5 edbf7152a385cd167359d7139b259172
BLAKE2b-256 5468bca9513988cedf7976432f0ab0f323c77f1f38cb72ee23c8f50ce61d7f13

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_lm-0.2.1-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: release-python.yml on dkdc-io/lm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dkdc_lm-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_lm-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 96f66c2dddd9445d85468736e264e88270375ad9989a5a3d38ecbb4778393b2d
MD5 ab816713a75036241ce8c4ad2ffff800
BLAKE2b-256 2f02bdfaf79d9135b7e182994faf7512b6b1b8e2c5d75ce7433c6c135761086f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_lm-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl:

Publisher: release-python.yml on dkdc-io/lm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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