Skip to main content

No project description provided

Project description

That's right. I'm Kira ✍️

Kira is a transformer built with JAX and Equinox, which is IMHO the best neural network library built on top of JAX out there, because of its simple and elegant design.

The role of Kira is to serve as a baseline transformer implementation, which is very easy to understand and extend.

Kira itself does not yet allow for KV caching (although there is a branch in which I'm trying to get it to work). It does however allow you to interpolate between Multi-Query Attention (MQA) and "regular" Multi-Head Attention (MHA). This is different from other MHA implementations, where most of the time you can only set the number of heads and that's it. Kira offers more flexibility in that regard.

These features of Kira (the interpolation between MQA and MHA and the RoPE embeddings) will soon be integrated in the main Equinox repository at which point Kira's MHA implementation will be replaced with the built-in Equinox's MHA.


To get started with Kira, you can either install it with

pip3 install kira_llm

or simply clone the repository and cherry-pick what you need.

Contributing

To contribute to this project, you'll need to fork this repository and run

poetry install

which will install all of the dependencies. Then, simply make your changes and start a pull request. The philosophy of this repository is to be simple and understandable.

Project details


Download files

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

Source Distribution

kira_llm-0.1.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

kira_llm-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file kira_llm-0.1.1.tar.gz.

File metadata

  • Download URL: kira_llm-0.1.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/23.1.0

File hashes

Hashes for kira_llm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 838646cad80da24c0fdc17fee511ae4a2f8b7368b849b690d7e0128981a8e37b
MD5 7df6b39ec6613664393009aea77cacaa
BLAKE2b-256 684691ee9afb987c8e3bb800c63641a80a192a9cd8dac2444d905f4a8d9ad278

See more details on using hashes here.

File details

Details for the file kira_llm-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kira_llm-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Darwin/23.1.0

File hashes

Hashes for kira_llm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6212824aa58d4101aa05784a530ca9553e940956d4866d4d6e738e512c2bd784
MD5 710ed802b8eb8022d369dcc9079a91b8
BLAKE2b-256 40166198a48498ef3c9646f2a5d850e0b83054e0df96f8b56e406b846619674d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page