caikit


Namecaikit JSON
Version 0.26.32 PyPI version JSON
download
home_pageNone
SummaryAI 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
upload_time2024-06-12 16:11:54
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Caikit

[![Build Status](https://github.com/caikit/caikit/actions/workflows/build-library.yml/badge.svg?branch=main&label=tests)](https://github.com/caikit/caikit/actions)
[![Minimum Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![Release](https://img.shields.io/github/v/release/caikit/caikit?include_prereleases&style=)](https://github.com/caikit/caikit/releases/)
[![Read the Docs](https://img.shields.io/static/v1?label=readthedocs&message=reference&color=blue)](https://caikit.readthedocs.io/en/latest/)
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7443/badge)](https://bestpractices.coreinfrastructure.org/projects/7443)

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](https://raw.githubusercontent.com/caikit/caikit/main/caikit-overview.png)

## 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:

- [Module](https://github.com/caikit/caikit/blob/main/docs/adrs/001-module.md)
- [Data model](https://github.com/caikit/caikit/blob/main/docs/adrs/010-data-model-definition.md)

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](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/text_sentiment/runtime_model/hf_module.py). The `data model` defines the input and outputs of the model task. An example is the [text sentiment data model](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/text_sentiment/data_model/classification.py).

The model is served by a [gRPC](https://grpc.io) server which can run as is or in any container runtime, including [Knative](https://knative.dev/docs/) and [KServe](https://www.kubeflow.org/docs/external-add-ons/kserve/kserve/). Here is an example of the [text sentiment server code for gRPC](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/start_runtime.py). This references the module configuration [here](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/models/text_sentiment/config.yml). This configuration specifies the module(s), which wrap the model(s), to serve.

There is an example of a client [here](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/client.py) 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](examples/text-sentiment/) 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](https://github.com/caikit/caikit-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](#getting-started) or jump into more details with the [Python API docs](https://caikit.readthedocs.io/en/latest/).

## Contributing

Check out our [contributing](CONTRIBUTING.md) guide to learn how to contribute to Caikit.

## Code of Conduct

Participation in the Caikit community is governed by the [Code of Conduct](code-of-conduct.md).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "caikit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/be/ae/8a0e2ba75da3a5fe71e34e3ac92adaf855a24b0f4a381759647c80f59920/caikit-0.26.32.tar.gz",
    "platform": null,
    "description": "# Caikit\n\n[![Build Status](https://github.com/caikit/caikit/actions/workflows/build-library.yml/badge.svg?branch=main&label=tests)](https://github.com/caikit/caikit/actions)\n[![Minimum Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)\n[![Release](https://img.shields.io/github/v/release/caikit/caikit?include_prereleases&style=)](https://github.com/caikit/caikit/releases/)\n[![Read the Docs](https://img.shields.io/static/v1?label=readthedocs&message=reference&color=blue)](https://caikit.readthedocs.io/en/latest/)\n[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7443/badge)](https://bestpractices.coreinfrastructure.org/projects/7443)\n\nCaikit 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.\n\n![Caikit Overview](https://raw.githubusercontent.com/caikit/caikit/main/caikit-overview.png)\n\n## Capabilities\n\nCaikit 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:\n\n- Run training jobs to create models from your data\n- Run model inference using data APIs that represent data as structures rather than tensors\n- Implement the right training techniques to fit the model, from static regexes to multi-GPU distribution\n- Merge models from diverse AI communities into a common API (e.g. `transformers`, `tensorflow`, `sklearn`, etc...)\n- Update applications to newer models for a given task without client-side changes\n\n## What Differentiates Caikit from Other AI Model Runtimes?\n\nDevelopers 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.\n\nCaikit 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.\n\nWhen 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 \u201ctensor in, tensor out\u201d) 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.\n\n## Getting Started\n\nThere are 2 key things to define upfront when using Caikit to manage your AI model. They are as follows:\n\n- [Module](https://github.com/caikit/caikit/blob/main/docs/adrs/001-module.md)\n- [Data model](https://github.com/caikit/caikit/blob/main/docs/adrs/010-data-model-definition.md)\n\nThe `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](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/text_sentiment/runtime_model/hf_module.py). The `data model` defines the input and outputs of the model task. An example is the [text sentiment data model](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/text_sentiment/data_model/classification.py).\n\nThe model is served by a [gRPC](https://grpc.io) server which can run as is or in any container runtime, including [Knative](https://knative.dev/docs/) and [KServe](https://www.kubeflow.org/docs/external-add-ons/kserve/kserve/). Here is an example of the [text sentiment server code for gRPC](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/start_runtime.py). This references the module configuration [here](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/models/text_sentiment/config.yml). This configuration specifies the module(s), which wrap the model(s), to serve.\n\nThere is an example of a client [here](https://github.com/caikit/caikit/blob/main/examples/text-sentiment/client.py) 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.\n\nCheck out the full [Text Sentiment example](examples/text-sentiment/) 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](https://github.com/caikit/caikit-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.\n\n## User Profiles\n\nThere are 2 user profiles who leverage Caikit:\n\n- AI Model Author:\n  - Model Authors build and train AI models for data analysis\n  - They bring data and tuning params to a pre-existing model architecture and create a new concrete model using APIs provided by Caikit\n  - Examples of model authors are machine learning engineers, data scientists, and AI developers\n- AI Model Operator:\n  - Model operators use an existing AI model to perform a specific function within the context of an application\n  - They take trained models, deploy them, and then infer the models in applications through APIs provided by Caikit\n  - Examples of operators are cloud and embedded application developers whose applications need analysis of unstructured data\n\n## Documentation\n\nGet going with [Getting Started](#getting-started) or jump into more details with the [Python API docs](https://caikit.readthedocs.io/en/latest/).\n\n## Contributing\n\nCheck out our [contributing](CONTRIBUTING.md) guide to learn how to contribute to Caikit.\n\n## Code of Conduct\n\nParticipation in the Caikit community is governed by the [Code of Conduct](code-of-conduct.md).\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "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",
    "version": "0.26.32",
    "project_urls": {
        "Source": "https://github.com/caikit/caikit"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1dca78c9f82253388635c9e2f87cd26dbaa59d9c1df6d7b9a48784e35ce42c07",
                "md5": "5cbfbd7a6a560c547251d3bd8cab678e",
                "sha256": "c30e3ad4da66334dc938511aa7e1b9f2e79dab46944389fd0df728dc8f4b53dd"
            },
            "downloads": -1,
            "filename": "caikit-0.26.32-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5cbfbd7a6a560c547251d3bd8cab678e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 434926,
            "upload_time": "2024-06-12T16:11:51",
            "upload_time_iso_8601": "2024-06-12T16:11:51.060002Z",
            "url": "https://files.pythonhosted.org/packages/1d/ca/78c9f82253388635c9e2f87cd26dbaa59d9c1df6d7b9a48784e35ce42c07/caikit-0.26.32-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "beae8a0e2ba75da3a5fe71e34e3ac92adaf855a24b0f4a381759647c80f59920",
                "md5": "87addfbe33ccec2e35c4ebd0a2e60734",
                "sha256": "6a41e1e5200036a380f23db8d1030f09eb074db7d9ee2e9310c82ae2f56c79db"
            },
            "downloads": -1,
            "filename": "caikit-0.26.32.tar.gz",
            "has_sig": false,
            "md5_digest": "87addfbe33ccec2e35c4ebd0a2e60734",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 580676,
            "upload_time": "2024-06-12T16:11:54",
            "upload_time_iso_8601": "2024-06-12T16:11:54.172565Z",
            "url": "https://files.pythonhosted.org/packages/be/ae/8a0e2ba75da3a5fe71e34e3ac92adaf855a24b0f4a381759647c80f59920/caikit-0.26.32.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-12 16:11:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "caikit",
    "github_project": "caikit",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "caikit"
}
        
Elapsed time: 0.26149s