Catalog PyPI
PACKAGE EXPLORERView in registry

aihandlerwindows

PyPI

AI Handler: An engine which wraps certain huggingface models

aichatchatbot
Versions collected1
Direct dependencies28From release 1.8.19
Last observed21 Oct, 10:51 UTC

README

Version 1.8.19 documentation

AI Handler

Upload Python Package Discord GitHub GitHub last commit GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

This is a simple framework for running AI models. It makes use of the huggingface API which gives you a queue, threading, a simple API, and the ability to run Stable Diffusion and LLMs seamlessly from your local hardware.

This is not intended to be used as a standalone application.

It can easily be extended and used to power interfaces or it can be run from the command line.

AI Handler is a work in progress. It powers two projects at the moment, but may not be ready for general use.

Installation

This is a work in progress.

Pre-requisites

System requirements

  • Windows 10+
  • Python 3.10.8
  • pip 23.0.1
  • CUDA toolkit 11.7
  • CUDNN 8.6.0.163
  • Cuda capable GPU
  • 16gb+ ram

Install

pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 --index-url https://download.pytorch.org/whl/cu117
pip install https://github.com/w4ffl35/diffusers/archive/refs/tags/v0.14.0.ckpt_fix.tar.gz
pip install https://github.com/w4ffl35/transformers/archive/refs/tags/tensor_fix-v1.0.2.tar.gz
pip install https://github.com/acpopescu/bitsandbytes/releases/download/v0.37.2-win.0/bitsandbytes-0.37.2-py3-none-any.whl
pip install aihandlerwindows

Optional

These are optional instructions for installing TensorRT and Deepspeed for Windows

Install Tensor RT:
  1. Download TensorRT-8.4.3.1.Windows10.x86_64.cuda-11.6.cudnn8.4
  2. Git clone TensorRT 8.4.3.1
  3. Follow their instructions to build TensorRT-8.4.3.1 python wheel
  4. Install TensorRT pip install tensorrt-*.whl
Install Deepspeed:
  1. Git clone Deepspeed 0.8.1
  2. Follow their instructions to build Deepspeed python wheel
  3. Install Deepspeed `pip install deepspeed-*.whl

Environment variables

  • AIRUNNER_ENVIRONMENT - dev or prod. Defaults to dev. This controls the LOG_LEVEL
  • LOG_LEVEL - FATAL for production, DEBUG for development. Override this to force a log level

Huggingface variables

Offline mode

These environment variables keep you offline until you need to download a model. This prevents unwanted online access and speeds up usage of huggingface libraries.

  • DISABLE_TELEMETRY Keep this set to 1 at all times. Huggingface collects minimal telemetry when downloading a model from their repository but this will keep it disabled. See more info in this github thread
  • HF_HUB_OFFLINE When loading a diffusers model, huggingface libraries will attempt to download an updated cache before running the model. This prevents that check from happening (long with a boolean passed to load_pretrained see the runner.py file for examples)
  • TRANSFORMERS_OFFLINE Similar to HF_HUB_OFFLINE but for transformers models

Downloads & popularity

1downloads
1-day window · source-reported counts20 Oct 2026
630
2026-07-23: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-07-23–2026-07-232026-07-24: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-07-24–2026-07-242026-07-26: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-07-26–2026-07-262026-07-27: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-07-27–2026-07-272026-08-01: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-02–2026-08-022026-08-05: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-05–2026-08-052026-08-09: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-09–2026-08-092026-08-11: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-11–2026-08-112026-08-14: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-14–2026-08-142026-08-15: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-15–2026-08-152026-08-17: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-17–2026-08-172026-08-21: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-21–2026-08-212026-08-23: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-23–2026-08-232026-08-24: 5 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-24–2026-08-242026-08-25: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-25–2026-08-252026-08-28: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-28–2026-08-282026-08-31: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-08-31–2026-08-312026-09-01: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-01–2026-09-012026-09-06: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-06–2026-09-062026-09-07: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-07–2026-09-072026-09-08: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-08–2026-09-082026-09-10: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-10–2026-09-102026-09-12: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-12–2026-09-122026-09-13: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-13–2026-09-132026-09-17: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-17–2026-09-172026-09-18: 6 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-18–2026-09-182026-09-22: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-22–2026-09-222026-09-26: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-26–2026-09-262026-09-27: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-27–2026-09-272026-09-28: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-28–2026-09-282026-09-30: 2 · observed 2026-10-21T16:17:26.3780652Z · period 2026-09-30–2026-09-302026-10-02: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-02–2026-10-022026-10-06: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-06–2026-10-062026-10-08: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-08–2026-10-082026-10-09: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-09–2026-10-092026-10-10: 5 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-10–2026-10-102026-10-13: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-13–2026-10-132026-10-14: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-14–2026-10-142026-10-15: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-15–2026-10-152026-10-17: 3 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-17–2026-10-172026-10-20: 1 · observed 2026-10-21T16:17:26.3780652Z · period 2026-10-20–2026-10-20
23 Jul20 Oct

pypistats · 42 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-20 – 2026-10-2012026-10-21T16:17:26.3780652Z
2026-10-17 – 2026-10-1732026-10-21T16:17:26.3780652Z
2026-10-15 – 2026-10-1512026-10-21T16:17:26.3780652Z
2026-10-14 – 2026-10-1412026-10-21T16:17:26.3780652Z
2026-10-13 – 2026-10-1312026-10-21T16:17:26.3780652Z
2026-10-10 – 2026-10-1052026-10-21T16:17:26.3780652Z
2026-10-09 – 2026-10-0912026-10-21T16:17:26.3780652Z
2026-10-08 – 2026-10-0812026-10-21T16:17:26.3780652Z
2026-10-06 – 2026-10-0612026-10-21T16:17:26.3780652Z
2026-10-02 – 2026-10-0232026-10-21T16:17:26.3780652Z
2026-09-30 – 2026-09-3022026-10-21T16:17:26.3780652Z
2026-09-28 – 2026-09-2822026-10-21T16:17:26.3780652Z
2026-09-27 – 2026-09-2712026-10-21T16:17:26.3780652Z
2026-09-26 – 2026-09-2612026-10-21T16:17:26.3780652Z
2026-09-22 – 2026-09-2232026-10-21T16:17:26.3780652Z
2026-09-18 – 2026-09-1862026-10-21T16:17:26.3780652Z
2026-09-17 – 2026-09-1712026-10-21T16:17:26.3780652Z
2026-09-13 – 2026-09-1322026-10-21T16:17:26.3780652Z
2026-09-12 – 2026-09-1212026-10-21T16:17:26.3780652Z
2026-09-10 – 2026-09-1012026-10-21T16:17:26.3780652Z
2026-09-08 – 2026-09-0832026-10-21T16:17:26.3780652Z
2026-09-07 – 2026-09-0712026-10-21T16:17:26.3780652Z
2026-09-06 – 2026-09-0632026-10-21T16:17:26.3780652Z
2026-09-01 – 2026-09-0112026-10-21T16:17:26.3780652Z
2026-08-31 – 2026-08-3112026-10-21T16:17:26.3780652Z
2026-08-28 – 2026-08-2812026-10-21T16:17:26.3780652Z
2026-08-25 – 2026-08-2512026-10-21T16:17:26.3780652Z
2026-08-24 – 2026-08-2452026-10-21T16:17:26.3780652Z
2026-08-23 – 2026-08-2332026-10-21T16:17:26.3780652Z
2026-08-21 – 2026-08-2112026-10-21T16:17:26.3780652Z
2026-08-17 – 2026-08-1722026-10-21T16:17:26.3780652Z
2026-08-15 – 2026-08-1522026-10-21T16:17:26.3780652Z
2026-08-14 – 2026-08-1432026-10-21T16:17:26.3780652Z
2026-08-11 – 2026-08-1112026-10-21T16:17:26.3780652Z
2026-08-09 – 2026-08-0932026-10-21T16:17:26.3780652Z
2026-08-05 – 2026-08-0512026-10-21T16:17:26.3780652Z
2026-08-02 – 2026-08-0212026-10-21T16:17:26.3780652Z
2026-08-01 – 2026-08-0112026-10-21T16:17:26.3780652Z
2026-07-27 – 2026-07-2722026-10-21T16:17:26.3780652Z
2026-07-26 – 2026-07-2622026-10-21T16:17:26.3780652Z
2026-07-24 – 2026-07-2432026-10-21T16:17:26.3780652Z
2026-07-23 – 2026-07-2322026-10-21T16:17:26.3780652Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.8.1931 Mar 202328

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
capsize-games/aihandler

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:51 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:2afec3f15c0d05d227165a4eaeea051098d1e2589242d2e6bb78503b1b1339e1