Skip to main content

chuchichaestli

chuchichaestli is a collection of model architectures and other useful bits of code in use at the Intelligent Vision Systems group at the University of Applied Sciences Zurich (ZHAW).

Installation

Tagged releases are available as PyPI packages. To install the latest package, run:

pip install chuchichaestli

For the bleeding-edge package directly from a git branch, clone the repository and run the following command in the root directory of the repository:

pip install -e .

Alternatively, you can install the package directly from GitHub:

pip install git+https://github.com/CAIIVS/chuchichaestli.git

Note: we recommend uv for running examples in examples/ or benchmarks in benches/.

Native kernels

chuchichaestli provides optional, optimized, custom CPU and GPU kernels. Without them everything still works, just a little slower.

They are compiled on first use, against the installed torch, which takes a C++ compiler (gcc on Linux, clang on macOS, MSVC on Windows) plus:

pip install chuchichaestli[jit]

That yields the CPU kernels. The custom GPU kernels additionally need nvcc or hipcc; without one the build quietly settles for CPU.

Run

chuchichaestli-build-kernels

to compile up front instead, or set C3LI_JIT_KERNELS=0 to skip them entirely.

Benchmarks

The native kernels are benchmarked against the pure-torch path and against external packages, on both CPU and GPU, with every backend checked against a reference before it is timed; see Benchmarks for how to run them, the measured results, and the profiler tracing.

Development

Releases and packages are automatically created with various GitHub action workflows. The general development workflow is as follows

  1. checkout to a non-default branch to apply patches, features, etc.
  • each commit to a non-default branch triggers an install test (on latest Python versions) and a package build
  1. open a PR
  • at opening and each subsequent commit to that PR, the build is uploaded to TestPyPI and a dev version is incremented (e.g. v1.2.0 -> v1.2.0-dev0)
  1. once the PR is reviewed, it can be merged
  • at merge, the micro version is incremented on the main branch and tagged (e.g. v1.2.0-dev7 -> v1.2.1)
  • subsequently, a package is built, published to PyPI, and released on GitHub with the latest version tag
  1. every once in a while it is necessary to bump minor or major versions
  • minor and major version can be triggered, by manually dispatching the on_dispatch.yml workflow
  • on the web interface (using the option minor or major), or
  • on CLI with gh workflow run on_dispatch.yml -f type=minor (or -f type=major)

Reusable workflows

In .github/workflows/ there are several reusable workflows which provide the basic utility for the triggered jobs:

  • test-install.yml
    • test install on the supported Python endpoints, 3.10 and 3.13, by default; pass full-matrix: true to sweep every supported version (the release workflow does)
    • ruff linting checks (stop build if error occurs)
    • run unit tests with pytest and collect coverage (fails below the coverage-threshold input)
    • upload test results (for prosperity)
  • build-package.yml
    • build package with uv build on Python 3.13 by default; pass versions (a JSON array) to build on several, if wheels are ABI-specific
    • upload one dist artifact per Python version, named <artifact-name>-<version>
  • github-release.yml
    • download all dist artifacts matching <artifact-name>-* and merge them
    • sign package dist with Sigstore
    • create and upload GitHub release
  • publish-to-pypi.yml
    • download all dist artifacts matching <artifact-name>-* and merge them
    • publish to PyPI, or to TestPyPI when called with test: true
  • deploy-docs.yml
    • build the docs with MkDocs and publish them to GitHub Pages
    • uses the Pages artifact flow (upload-pages-artifact + deploy-pages), not a gh-pages push
    • can be run manually via gh workflow run deploy-docs.yml
  • phdenzel/pyverto@v*
    • use pyverto to increment a version
    • commit and push changes

Triggered workflows

  • on_branches.yml
    • triggers on commit to any branch (except main) not in a PR (pull request)
    • runs test-install-python-version and build-package
  • on_pr.yml
    • triggers on commit to a PR
    • runs test-install-python-version, build-package, publish-to-testpypi, and version-bump-dev
  • on_merge.yml
    • triggers on PR merge
    • runs version-bump-on-merge (increments micro version on main)
  • on_push.yml
    • triggers on push to the main branch upon automatic version change
    • runs test-install-python-version, build-package, publish-to-pypi, github-release, deploy-docs
  • on_dispatch.yml
    • triggers on dispatch (e.g. by running gh workflow run on-dispatch.yml -f type=minor)
    • runs version-bump (increments chosen type of version on main)

Metadata

Release files for chuchichaestli 0.4.5

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

Source distribution (sdist)

Source distribution for chuchichaestli 0.4.5
File Size Uploaded Provenance Actions
chuchichaestli-0.4.5.tar.gz 386.6 kB Without provenance Details for chuchichaestli-0.4.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chuchichaestli 0.4.5
File Interpreter ABI Platform Actions
chuchichaestli-0.4.5-py3-none-any.whl Python 3 none any Details for chuchichaestli-0.4.5-py3-none-any.whl

Total release size: 881.2 kB

Release files / chuchichaestli-0.4.5.tar.gz

Download URL chuchichaestli-0.4.5.tar.gz
Size 386.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0eb8fd291823f20099501baa995c9c567834017b1dd0a10804f61be1d678dd22
BLAKE2b-256 checksum
How to use checksums
e77c23a85810bfeed5bac7d754b76898f49b817629b44d3c62bca07fe243cdf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / chuchichaestli-0.4.5-py3-none-any.whl

Download URL chuchichaestli-0.4.5-py3-none-any.whl
Size 494.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81f2f637f39d3c6b61cb31341d27d707f3ffbc12c8d696be8e4715c9b3b57263
BLAKE2b-256 checksum
How to use checksums
79f765c553c3531774f15ff48692c341e21b7df281280903e4e518d35e685496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for chuchichaestli 0.4.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.5 This release

2 release files No provenance

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