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 now allows for KV caching. It also allows 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.

Kira can also be used as an encoder. Simply pass mask=None when you call Kira and there will be no masking in the MHA (i.e. making it an encoder).


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.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

kira_llm-0.1.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kira_llm-0.1.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/5.15.0-91-generic

File hashes

Hashes for kira_llm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 71489a4e570fb8e343c9c3ccd13a5099ab184feb362bc751c2e546228485add2
MD5 262c9fb6bf09bd8e6319cecbf864f271
BLAKE2b-256 e0afa7757e8e075b323d109dcd4af560533aa241808151ea27dea940ce0154a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kira_llm-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/5.15.0-91-generic

File hashes

Hashes for kira_llm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2b92f9025dbf30a162d69408fa222c527c47b0e8624933ffba1764da3c6fafc5
MD5 876251c5f10b62116367bcd431395dde
BLAKE2b-256 da02d0b2f8021cbd79cf1832d5fa24bd534897b461cc2ceb0dc04c0678f510bf

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