Skip to main content

AI toolkit that enables AI users to consume stable task-specific model APIs and enables AI developers build algorithms and models in a modular/composable framework

Project description

Caikit

Build Status Minimum Python Version Release Read the Docs OpenSSF Best Practices

Caikit is an AI toolkit that enables users to manage models through a set of developer friendly APIs. It provides a consistent format for creating and using AI models against a wide variety of data domains and tasks.

Caikit Overview

Capabilities

Caikit streamlines the management of AI models for application usage by letting AI model authors focus on solving well known problems with novel technology. With a set of model implementations based on Caikit, you can:

  • Run training jobs to create models from your data
  • Run model inference using data APIs that represent data as structures rather than tensors
  • Implement the right training techniques to fit the model, from static regexes to multi-GPU distribution
  • Merge models from diverse AI communities into a common API (e.g. transformers, tensorflow, sklearn, etc...)
  • Update applications to newer models for a given task without client-side changes

What Differentiates Caikit from Other AI Model Runtimes?

Developers who write applications that consume AI models are not necessarily AI experts who understand the intricate details of the AI models that they use. Some would like to treat AI as a "black box function" where they give it input and it returns the output. This is similar in cloud computing whereby some users would like to deploy their applications to the cloud without detailed knowledge of the cloud infrastructure. The value for them is in their application and that is what is of most interest to them.

Caikit provides an abstraction layer for application developers where they can consume AI models through APIs independent of understanding the data form of the model. In other words, the input and output to the model is in a format which is easily programmable and does not require data transformations. This facilitates the model and the application to evolve independently of each other.

When deploying a small handful of models, this benefit is minimal. The benefits are generally realized when consuming 10s or hundreds of AI models, or maintaining an application over time as AI technology evolves. Caikit simplifies the scaling and maintenance of such integrations compared to other runtimes. This is because other runtimes require an AI centric view of the model (for example, the common interface of “tensor in, tensor out”) which means having to code different data transformations into the application for each model. Additionally, the data form of the model may change from version to version.

Getting Started

There are 2 key things to define upfront when using Caikit to manage your AI model. They are as follows:

The module defines the entry points for Caikit to manage your model. In other words, it tells Caikit how to load, infer and train your model. An example is the text sentiment module. The data model defines the input and outputs of the model task. An example is the text sentiment data model.

The model is served by a gRPC server which can run as is or in any container runtime, including Knative and KServe. Here is an example of the text sentiment server code for gRPC. This references the module configuration here. This configuration specifies the module(s), which wrap the model(s), to serve.

There is an example of a client here which is a simple Python CLI which calls the model and queries it for sentiment analysis on 2 different pieces of text. The client also references the module configuration.

Check out the full Text Sentiment example to understand how to load and infer a model using Caikit. If you want to get started with developing and integrating your AI model algorithm using Caikit, checkout the GitHub template. In the template repository when you click on the green Use this template button, it generates a repository in your GitHub account with a simple customized module which is wrapped to be served by the Caikit runtime. This template is designed to be extended for module implementations.

User Profiles

There are 2 user profiles who leverage Caikit:

  • AI Model Author:
    • Model Authors build and train AI models for data analysis
    • They bring data and tuning params to a pre-existing model architecture and create a new concrete model using APIs provided by Caikit
    • Examples of model authors are machine learning engineers, data scientists, and AI developers
  • AI Model Operator:
    • Model operators use an existing AI model to perform a specific function within the context of an application
    • They take trained models, deploy them, and then infer the models in applications through APIs provided by Caikit
    • Examples of operators are cloud and embedded application developers whose applications need analysis of unstructured data

Documentation

Get going with Getting Started or jump into more details with the Python API docs.

Contributing

Check out our contributing guide to learn how to contribute to Caikit.

Code of Conduct

Participation in the Caikit community is governed by the Code of Conduct.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

caikit-0.28.3.tar.gz (605.2 kB view details)

Uploaded Source

Built Distribution

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

caikit-0.28.3-py3-none-any.whl (458.9 kB view details)

Uploaded Python 3

File details

Details for the file caikit-0.28.3.tar.gz.

File metadata

  • Download URL: caikit-0.28.3.tar.gz
  • Upload date:
  • Size: 605.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for caikit-0.28.3.tar.gz
Algorithm Hash digest
SHA256 7916be8a17b16cb9347580a2e167cf5e762ea6d40d8e8e7849580057660c87c0
MD5 49a66e39b3264ef9bc38a638a8591d68
BLAKE2b-256 596c26daa9b97db4e39e744c14a30a1d8aed013ecfe496a63380e6a3b035ff01

See more details on using hashes here.

File details

Details for the file caikit-0.28.3-py3-none-any.whl.

File metadata

  • Download URL: caikit-0.28.3-py3-none-any.whl
  • Upload date:
  • Size: 458.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for caikit-0.28.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a7e92d8ba246fa4492bf5a5ecf59ca85fd1dabbf5f8b21dbbcd3a0736d35e7c1
MD5 b72fd0c2e6769104ea66e5dbe840cd5d
BLAKE2b-256 1c2d91510d8dde12b0758890fea37af969c0b8824b063eaf0d4c8bdd145a7d48

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