Skip to main content

easyllama

Small helper package so your llama_cpp scripts can stay short while still using GPU.

What it does

  • Adds CUDA DLL folders to runtime search path automatically
  • Detects pip-installed NVIDIA runtime DLL folders inside the active venv
  • Forces dedicated GPU usage defaults for llama_cpp.Llama (unless you override)

Install (new laptop / fresh Windows)

  1. Install CUDA-enabled llama-cpp-python in your venv:
python -m pip install --upgrade --force-reinstall --no-cache-dir llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
  1. Install this package:
cd "C:\Users\divid\Desktop\Data analytics\easyllama"
python -m pip install -e .

Use

from easyllama import Llama

llm = Llama(
    model_path=r"C:\AI\Model\Qwen3-4B.Q4_K_M.gguf",
    n_ctx=2048,
)

n_gpu_layers=-1, main_gpu=0, and offload_kqv=True are auto-set unless you pass your own values. Also, logs are quiet by default (verbose=False, no_perf=True) so CUDA graph spam does not flood your terminal.

If you want debug logs back:

$env:LLAMA_VERBOSE="1"
$env:LLAMA_NO_PERF="0"

Quick check

python -m easyllama

PyPI Trusted Publishing (GitHub Actions)

This repo includes:

  • .github/workflows/publish.yml

How to enable:

  1. Push this project to GitHub.
  2. On PyPI, configure Trusted Publishing:
    • If easyllama does not exist yet: use account settings -> Publishing -> add a pending publisher for easyllama.
    • If easyllama already exists: open project settings -> Publishing -> add a publisher.
  3. Fill with your GitHub details:
    • Owner: your GitHub username/org
    • Repository: your repo name
    • Workflow name: publish.yml
    • Environment name: pypi
  4. Create and push a version tag like v1.0.0.
  5. GitHub Actions publishes automatically to PyPI using OIDC (no API token needed).

Metadata

Release files for easyllama-divi845 1.0.0

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

Source distribution (sdist)

Source distribution for easyllama-divi845 1.0.0
File Size Uploaded
easyllama_divi845-1.0.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easyllama-divi845 1.0.0
File Interpreter ABI Platform
easyllama_divi845-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / easyllama_divi845-1.0.0.tar.gz

Download URL easyllama_divi845-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b07ed9b96c254a95bba02a016424a0867a99cc99e90cf0114be002bc7509ecd
BLAKE2b-256 checksum
How to use checksums
53a2efacdceaa4310b1f7df5ae6b5bc0d5aa7614c93200cb660d0e5f092ff17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 10, 2026.

Transparency log

Release files / easyllama_divi845-1.0.0-py3-none-any.whl

Download URL easyllama_divi845-1.0.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cff25937de22d046674797995c5bbe737e018e4922471cc19859c15ff36a1ab
BLAKE2b-256 checksum
How to use checksums
720fc5dfd339e64fa47d680b87fb37ca546d72f7114ebf9be1488bec00324953
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

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