kalavai-client 0.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,275 @@
1
+ Metadata-Version: 2.3
2
+ Name: kalavai-client
3
+ Version: 0.5.2
4
+ Summary: Client app for kalavai platform
5
+ License: Apache-2.0
6
+ Keywords: LLM,platform
7
+ Author: Carlos Fernandez Musoles
8
+ Author-email: carlos@kalavai.net
9
+ Maintainer: Carlos Fernandez Musoles
10
+ Maintainer-email: carlos@kalavai.net
11
+ Requires-Python: >=3.8
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Provides-Extra: dev
21
+ Requires-Dist: Pillow (==10.3.0)
22
+ Requires-Dist: anvil-uplink (==0.5.1)
23
+ Requires-Dist: arguably (>=1.2.5)
24
+ Requires-Dist: build ; extra == "dev"
25
+ Requires-Dist: gputil (==1.4.0)
26
+ Requires-Dist: importlib_resources (==6.5.2)
27
+ Requires-Dist: jinja2 (==3.1.4)
28
+ Requires-Dist: netifaces (==0.11.0)
29
+ Requires-Dist: psutil (==5.9.8)
30
+ Requires-Dist: py2app (==0.28.7) ; extra == "dev"
31
+ Requires-Dist: pyinstaller (==6.5.0) ; extra == "dev"
32
+ Requires-Dist: pyyaml (==6.0.2)
33
+ Requires-Dist: requests (>=2.25)
34
+ Requires-Dist: rich (==13.7.1)
35
+ Requires-Dist: setuptools (<70.0.0)
36
+ Requires-Dist: twine ; extra == "dev"
37
+ Project-URL: Homepage, https://platform.kalavai.net
38
+ Project-URL: Website, https://kalavai.net
39
+ Description-Content-Type: text/markdown
40
+
41
+ ![Kalavai logo](docs/docs/assets/icons/logo_no_background.png)
42
+
43
+ <div align="center">
44
+
45
+ ![GitHub Release](https://img.shields.io/github/v/release/kalavai-net/kalavai-client) ![PyPI - Downloads](https://img.shields.io/pypi/dm/kalavai-client?style=social)
46
+ ![GitHub contributors](https://img.shields.io/github/contributors/kalavai-net/kalavai-client) ![GitHub License](https://img.shields.io/github/license/kalavai-net/kalavai-client) ![GitHub Repo stars](https://img.shields.io/github/stars/kalavai-net/kalavai-client) [![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdiscord.com%2Fapi%2Finvites%2FeA3sEWGB%3Fwith_counts%3Dtrue&query=%24.approximate_member_count&logo=discord&logoColor=white&label=Discord%20users&color=green)](https://discordapp.com/channels/1295009828623880313) [![Signup](https://img.shields.io/badge/Kalavai-Signup-brightgreen)](https://platform.kalavai.net)
47
+
48
+ </div>
49
+
50
+ ⭐⭐⭐ **Kalavai and our LLM pools are open source, and free to use in both commercial and non-commercial purposes. If you find it useful, consider supporting us by [staring our GitHub project](https://github.com/kalavai-net/kalavai-client), joining our [discord channel](https://discord.gg/HJ8FNapQ), follow our [Substack](https://kalavainet.substack.com/) and give us a [review on Product Hunt](https://www.producthunt.com/products/kalavai/reviews/new).**
51
+
52
+
53
+ # Kalavai: turn your devices into a scalable LLM platform
54
+
55
+ ### Taming the adoption of Large Language Models
56
+
57
+ > Kalavai is an **open source** tool that turns **everyday devices** into your very own LLM platform. It aggregates resources from multiple machines, including desktops and laptops, and is **compatible with most model engines** to make LLM deployment and orchestration simple and reliable.
58
+
59
+ <div align="center">
60
+
61
+ <a href="https://www.producthunt.com/products/kalavai/reviews?utm_source=badge-product_review&utm_medium=badge&utm_souce=badge-kalavai" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/product_review.svg?product_id=720725&theme=neutral" alt="Kalavai - The&#0032;first&#0032;platform&#0032;to&#0032;crowdsource&#0032;AI&#0032;computation | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
62
+
63
+ </div>
64
+
65
+
66
+ ## What can Kalavai do?
67
+
68
+ Kalavai's goal is to make using LLMs in real applications accessible and affordable to all. It's a _magic box_ that **integrates all the components required to make LLM useful in the age of massive computing**, from sourcing computing power, managing distributed infrastructure and storage, using industry-standard model engines and orchestration of LLMs.
69
+
70
+ ### Aggregate multiple devices in an LLM pool
71
+
72
+ https://github.com/user-attachments/assets/4be59886-1b76-4400-ab5c-c803e3e414ec
73
+
74
+ ### Deploy LLMs across the pool
75
+
76
+ https://github.com/user-attachments/assets/ea57a2ab-3924-4097-be2a-504e0988fbb1
77
+
78
+ ### Single point of entry for all models (GUI + API)
79
+
80
+ https://github.com/user-attachments/assets/7df73bbc-d129-46aa-8ce5-0735177dedeb
81
+
82
+ ### Self-hosted LLM pools
83
+
84
+ https://github.com/user-attachments/assets/0d2316f3-79ea-46ac-b41e-8ef720f52672
85
+
86
+
87
+ ### News updates
88
+
89
+ - 27 January 2025: Support for accessing pools from remote computers
90
+ - 9 January 2025: Added support for [Aphrodite Engine](https://github.com/aphrodite-engine/aphrodite-engine) models
91
+ - 8 January 2025: Release of [a free, public, shared pool](/docs/docs/public_llm_pool.md) for community LLM deployment
92
+ - 24 December 2024: Release of [public BOINC pool](/docs/docs/boinc.md) to donate computing to scientific projects
93
+ - 23 December 2024: Release of [public petals swarm](/docs/docs/petals.md)
94
+ - 24 November 2024: Common pools with private user spaces
95
+ - 30 October 2024: Release of our [public pool platform](https://platform.kalavai.net)
96
+
97
+
98
+ ### Support for LLM engines
99
+
100
+ We currently support out of the box the following LLM engines:
101
+
102
+ - [vLLM](https://docs.vllm.ai/en/latest/)
103
+ - [llama.cpp](https://github.com/ggerganov/llama.cpp)
104
+ - [Aphrodite Engine](https://github.com/aphrodite-engine/aphrodite-engine)
105
+ - [Petals](https://github.com/bigscience-workshop/petals)
106
+
107
+ Coming soon:
108
+
109
+ - [exo](https://github.com/exo-explore/exo)
110
+ - [GPUstack](https://docs.gpustack.ai/0.4/overview/)
111
+ - [RayServe](https://docs.ray.io/en/latest/serve/index.html)
112
+
113
+ Not what you were looking for? [Tell us](https://github.com/kalavai-net/kalavai-client/issues) what engines you'd like to see.
114
+
115
+
116
+ > Kalavai is at an **early stage** of its development. We encourage people to use it and give us feedback! Although we are trying to minimise breaking changes, these may occur until we have a stable version (v1.0).
117
+
118
+
119
+ ## Want to know more?
120
+
121
+ - Get a free [Kalavai account](https://platform.kalavai.net) and access unlimited AI.
122
+ - Full [documentation](https://kalavai-net.github.io/kalavai-client/) for the project.
123
+ - [Join our Substack](https://kalavainet.substack.com/) for updates and be part of our community
124
+ - [Join our discord community](https://discord.gg/6VJWGzxg)
125
+
126
+
127
+ ## Getting started
128
+
129
+ The `kalavai` client is the main tool to interact with the Kalavai platform, to create and manage both local and public pools and also to interact with them (e.g. deploy models). Let's go over its installation.
130
+
131
+ From release **v0.5.0, you can now install `kalavai` client in non-worker computers**. You can run a pool on a set of machines and have the client on a remote computer from which you access the LLM pool. Because the client only requires having python installed, this means more computers are now supported to run it.
132
+
133
+
134
+ ### Requirements for a worker machine
135
+
136
+ - A laptop, desktop or Virtual Machine
137
+ - Docker engine installed (for [linux](https://docs.docker.com/engine/install/), [Windows and MacOS](https://docs.docker.com/desktop/)) with [privilege access](https://docs.docker.com/engine/containers/run/#runtime-privilege-and-linux-capabilities).
138
+
139
+
140
+ ### Requirements to run the client
141
+
142
+ - Python 3.10+
143
+
144
+
145
+ ### Install the client
146
+
147
+ The client is a python package and can be installed with one command:
148
+
149
+ ```bash
150
+ pip install kalavai-client
151
+ ```
152
+
153
+ ## Public LLM pools: crowdsource community resources
154
+
155
+ This is the **easiest and most powerful** way to experience Kalavai. It affords users the full resource capabilities of the community and access to all its deployed LLMs, via an [OpenAI-compatible endpoint](https://kalavai-net.github.io/kalavai-client/public_llm_pool/#single-api-endpoint) as well as a [UI-based playground](https://kalavai-net.github.io/kalavai-client/public_llm_pool/#ui-playground).
156
+
157
+ Check out [our guide](https://kalavai-net.github.io/kalavai-client/public_llm_pool/) on how to join and start deploying LLMs.
158
+
159
+
160
+ ## Createa a local, private LLM pool
161
+
162
+ Kalavai is **free to use, no caps, for both commercial and non-commercial purposes**. All you need to get started is one or more computers that can see each other (i.e. within the same network), and you are good to go. If you wish to join computers in different locations / networks, check [managed kalavai](#public-pools-crowdsource-community-resources).
163
+
164
+ ### 1. Start a seed node
165
+
166
+ Simply use the client to start your seed node:
167
+
168
+ ```bash
169
+ kalavai pool start <pool-name>
170
+ ```
171
+
172
+ Now you are ready to add worker nodes to this seed. To do so, generate a joining token:
173
+ ```bash
174
+ $ kalavai pool token --user
175
+
176
+ Join token: <token>
177
+ ```
178
+
179
+ ### 2. Add worker nodes
180
+
181
+ Increase the power of your AI pool by inviting others to join.
182
+
183
+ Copy the joining token. On the worker node, run:
184
+
185
+ ```bash
186
+ kalavai pool join <token>
187
+ ```
188
+
189
+ ### Enough already, let's run stuff!
190
+
191
+ Check our [examples](examples/) to put your new AI pool to good use!
192
+ - [Single node vLLM GPU LLM](examples/singlenode_gpu_vllm.md) deployment
193
+ - [Multi node vLLM GPU LLM](examples/multinode_gpu_vllm.md) deployment
194
+ - [Aphrodite-engine quantized LLM](examples/quantized_gpu_llm.md) deployment, including Kobold interface
195
+ - [Ray cluster](examples/ray_cluster.md) for distributed computation.
196
+
197
+
198
+ ## Compatibility matrix
199
+
200
+ If your system is not currently supported, [open an issue](https://github.com/kalavai-net/kalavai-client/issues) and request it. We are expanding this list constantly.
201
+
202
+ ### OS compatibility
203
+
204
+ Since **worker nodes** run inside docker, any machine that can run docker **should** be compatible with Kalavai. Here are instructions for [linux](https://docs.docker.com/engine/install/), [Windows](https://docs.docker.com/desktop/setup/install/windows-install/) and [MacOS](https://docs.docker.com/desktop/setup/install/mac-install/).
205
+
206
+ The kalavai client, which controls and access pools, can be installed on any machine that has python 3.10+.
207
+
208
+
209
+ ### Hardware compatibility:
210
+
211
+ - `amd64` or `x86_64` CPU architecture
212
+ - NVIDIA GPU
213
+ - AMD and Intel GPUs are currently not supported ([interested in helping us test it?](https://kalavai-net.github.io/kalavai-client/compatibility/#help-testing-amd-gpus))
214
+
215
+
216
+ ## Roadmap
217
+
218
+ - [x] Kalavai client on Linux
219
+ - [x] [TEMPLATE] Distributed LLM deployment
220
+ - [x] Kalavai client on Windows (with WSL2)
221
+ - [x] Public LLM pools
222
+ - [x] Self-hosted LLM pools
223
+ - [x] Collaborative LLM deployment
224
+ - [x] Ray cluster support
225
+ - [x] Kalavai client on Mac
226
+ - [ ] [TEMPLATE] [GPUStack](https://github.com/gpustack/gpustack) support
227
+ - [ ] [TEMPLATE] [exo](https://github.com/exo-explore/exo) support
228
+ - [ ] Support for AMD GPUs
229
+ - [x] Docker install path
230
+
231
+
232
+ Anything missing here? Give us a shout in the [discussion board](https://github.com/kalavai-net/kalavai-client/discussions)
233
+
234
+
235
+ ## Contribute
236
+
237
+ - PR welcome!
238
+ - [Join the community](https://github.com/kalavai-net/kalavai-client/) and share ideas!
239
+ - Report [bugs, issues and new features](https://github.com/kalavai-net/kalavai-client/issues).
240
+ - Help improve our [compatibility matrix](#compatibility-matrix) by testing on different operative systems.
241
+ - [Follow our Substack channel](https://kalavainet.substack.com/) for news, guides and more.
242
+ - [Community integrations](https://github.com/kalavai-net/kube-watcher/tree/main/templates) are template jobs built by Kalavai and the community that makes deploying distributed workflows easy for users. Anyone can extend them and contribute to the repo.
243
+
244
+ ### Star History
245
+
246
+ [![Star History Chart](https://api.star-history.com/svg?repos=kalavai-net/kalavai-client&type=Date)](https://star-history.com/#kalavai-net/kalavai-client&Date)
247
+
248
+
249
+ ## Build from source
250
+
251
+ ### Requirements
252
+
253
+ Python version <= 3.12.
254
+
255
+ ```bash
256
+ virtualenv -p python3 env
257
+ source env/bin/activate
258
+ sudo apt install python3.10-venv python3.10-dev -y
259
+ pip install -e .[dev]
260
+ ```
261
+
262
+ Build python wheels:
263
+ ```bash
264
+ bash publish.sh build
265
+ ```
266
+
267
+
268
+ ### Unit tests
269
+
270
+ To run the unit tests, use:
271
+
272
+ ```bash
273
+ python -m unittest
274
+ ```
275
+
@@ -0,0 +1,20 @@
1
+ kalavai_client/__init__.py,sha256=Ihhobsu68mjIUrgtsfOab7vjkNbLMm1uv7WvMKrKu8c,22
2
+ kalavai_client/__main__.py,sha256=WQUfxvRsBJH5gsCJg8pLz95QnZIj7Ol8psTO77m0QE0,73
3
+ kalavai_client/assets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ kalavai_client/assets/apps.yaml,sha256=aW9wKyvZhZFMHzBkZOsgVq-kpntED6U8B9XoHkm5F9Y,5963
5
+ kalavai_client/assets/apps_values.yaml,sha256=CjKVelPQHd-hm-DTMEuya92feKiphU9mh3HrosLYYPE,1676
6
+ kalavai_client/assets/docker-compose-template.yaml,sha256=qDv0og338clLobDDPEJ-HiGlMcCMMx2NOi5R_hdhKvw,1442
7
+ kalavai_client/assets/pool_config_template.yaml,sha256=fFz4w2-fMKD5KvyzFdfcWD_jSneRlmnjLc8hCctweX0,576
8
+ kalavai_client/assets/pool_config_values.yaml,sha256=VrM3XHQfQo6QLZ68qvagooUptaYgl1pszniY_JUtemk,233
9
+ kalavai_client/assets/user_workspace.yaml,sha256=wDvlMYknOPABAEo0dsQwU7bac8iubjAG9tdkFbJZ5Go,476
10
+ kalavai_client/assets/user_workspace_values.yaml,sha256=G0HOzQUxrDMCwuW9kbWUZaKMzDDPVwDwzBHCL2Xi2ZM,542
11
+ kalavai_client/assets/vpn-template.yaml,sha256=Hm7sevtrsakSxSKMJwl68hzOEWCaxwYytwkTgKhe_MM,397
12
+ kalavai_client/auth.py,sha256=QsBh28L2LwjBBK6pTUE4Xu36lLDTyetyU1YfS1Hbb6g,1717
13
+ kalavai_client/cli.py,sha256=qBOe4IULIX7pzKUhHoR1JppWrbUeV1aslxQLMWrRGpU,67913
14
+ kalavai_client/cluster.py,sha256=C7uofrpSEj4PUhF_VLfwH4k9BhJMTkuKRWHxDYu1OD0,11345
15
+ kalavai_client/utils.py,sha256=XO-fTrl8vudAOYK9QwuR-C5enzXORIs5A4sFIk3eA9k,13476
16
+ kalavai_client-0.5.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
+ kalavai_client-0.5.2.dist-info/METADATA,sha256=K-7NcUKhmWlkGyYmQ9hrnbKqN7UuGHUV6lQPnqxdSLg,12077
18
+ kalavai_client-0.5.2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
19
+ kalavai_client-0.5.2.dist-info/entry_points.txt,sha256=9T6D45gxwzfVbglMm1r6XPdXuuZdHfy_7fCeu2jUphc,50
20
+ kalavai_client-0.5.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 2.0.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ kalavai=kalavai_client.cli:app
3
+