kalavai-client 0.5.0__py2.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.
- kalavai_client/__init__.py +2 -0
- kalavai_client/__main__.py +5 -0
- kalavai_client/assets/apps.yaml +201 -0
- kalavai_client/assets/apps_values.yaml +83 -0
- kalavai_client/assets/docker-compose-template.yaml +55 -0
- kalavai_client/assets/pool_config_template.yaml +19 -0
- kalavai_client/assets/pool_config_values.yaml +12 -0
- kalavai_client/assets/user_workspace.yaml +19 -0
- kalavai_client/assets/user_workspace_values.yaml +29 -0
- kalavai_client/assets/vpn-template.yaml +13 -0
- kalavai_client/auth.py +68 -0
- kalavai_client/cli.py +1989 -0
- kalavai_client/cluster.py +308 -0
- kalavai_client/utils.py +456 -0
- kalavai_client-0.5.0.dist-info/LICENSE +201 -0
- kalavai_client-0.5.0.dist-info/METADATA +279 -0
- kalavai_client-0.5.0.dist-info/RECORD +19 -0
- kalavai_client-0.5.0.dist-info/WHEEL +4 -0
- kalavai_client-0.5.0.dist-info/entry_points.txt +3 -0
@@ -0,0 +1,279 @@
|
|
1
|
+
Metadata-Version: 2.3
|
2
|
+
Name: kalavai-client
|
3
|
+
Version: 0.5.0
|
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.12
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
13
|
+
Classifier: Programming Language :: Python :: 2
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
16
|
+
Classifier: Programming Language :: Python :: 3.4
|
17
|
+
Classifier: Programming Language :: Python :: 3.5
|
18
|
+
Classifier: Programming Language :: Python :: 3.6
|
19
|
+
Classifier: Programming Language :: Python :: 3.7
|
20
|
+
Classifier: Programming Language :: Python :: 3.8
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
24
|
+
Provides-Extra: dev
|
25
|
+
Requires-Dist: Pillow (==10.3.0)
|
26
|
+
Requires-Dist: anvil-uplink (==0.5.1)
|
27
|
+
Requires-Dist: arguably (>=1.2.5)
|
28
|
+
Requires-Dist: build ; extra == "dev"
|
29
|
+
Requires-Dist: gputil (==1.4.0)
|
30
|
+
Requires-Dist: importlib_resources (==6.5.2)
|
31
|
+
Requires-Dist: jinja2 (==3.1.4)
|
32
|
+
Requires-Dist: netifaces (==0.11.0)
|
33
|
+
Requires-Dist: psutil (==5.9.8)
|
34
|
+
Requires-Dist: py2app (==0.28.7) ; extra == "dev"
|
35
|
+
Requires-Dist: pyinstaller (==6.5.0) ; extra == "dev"
|
36
|
+
Requires-Dist: pyyaml (==6.0.2)
|
37
|
+
Requires-Dist: requests (>=2.25)
|
38
|
+
Requires-Dist: rich (==13.7.1)
|
39
|
+
Requires-Dist: setuptools (<70.0.0)
|
40
|
+
Requires-Dist: twine ; extra == "dev"
|
41
|
+
Project-URL: Homepage, https://platform.kalavai.net
|
42
|
+
Project-URL: Website, https://kalavai.net
|
43
|
+
Description-Content-Type: text/markdown
|
44
|
+
|
45
|
+

|
46
|
+
|
47
|
+
<div align="center">
|
48
|
+
|
49
|
+
 
|
50
|
+
   [](https://discordapp.com/channels/1295009828623880313) [](https://platform.kalavai.net)
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
⭐⭐⭐ **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).**
|
55
|
+
|
56
|
+
|
57
|
+
# Kalavai: turn your devices into a scalable LLM platform
|
58
|
+
|
59
|
+
### Taming the adoption of Large Language Models
|
60
|
+
|
61
|
+
> 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.
|
62
|
+
|
63
|
+
<div align="center">
|
64
|
+
|
65
|
+
<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 first platform to crowdsource AI computation | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
## What can Kalavai do?
|
71
|
+
|
72
|
+
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.
|
73
|
+
|
74
|
+
### Aggregate multiple devices in an LLM pool
|
75
|
+
|
76
|
+
https://github.com/user-attachments/assets/4be59886-1b76-4400-ab5c-c803e3e414ec
|
77
|
+
|
78
|
+
### Deploy LLMs across the pool
|
79
|
+
|
80
|
+
https://github.com/user-attachments/assets/ea57a2ab-3924-4097-be2a-504e0988fbb1
|
81
|
+
|
82
|
+
### Single point of entry for all models (GUI + API)
|
83
|
+
|
84
|
+
https://github.com/user-attachments/assets/7df73bbc-d129-46aa-8ce5-0735177dedeb
|
85
|
+
|
86
|
+
### Self-hosted LLM pools
|
87
|
+
|
88
|
+
https://github.com/user-attachments/assets/0d2316f3-79ea-46ac-b41e-8ef720f52672
|
89
|
+
|
90
|
+
|
91
|
+
### News updates
|
92
|
+
|
93
|
+
- X January 2025: Support for accessing pools from remote computers
|
94
|
+
- 9 January 2025: Added support for [Aphrodite Engine](https://github.com/aphrodite-engine/aphrodite-engine) models
|
95
|
+
- 8 January 2025: Release of [a free, public, shared pool](/docs/docs/public_llm_pool.md) for community LLM deployment
|
96
|
+
- 24 December 2024: Release of [public BOINC pool](/docs/docs/boinc.md) to donate computing to scientific projects
|
97
|
+
- 23 December 2024: Release of [public petals swarm](/docs/docs/petals.md)
|
98
|
+
- 24 November 2024: Common pools with private user spaces
|
99
|
+
- 30 October 2024: Release of our [public pool platform](https://platform.kalavai.net)
|
100
|
+
|
101
|
+
|
102
|
+
### Support for LLM engines
|
103
|
+
|
104
|
+
We currently support out of the box the following LLM engines:
|
105
|
+
|
106
|
+
- [vLLM](https://docs.vllm.ai/en/latest/)
|
107
|
+
- [llama.cpp](https://github.com/ggerganov/llama.cpp)
|
108
|
+
- [Aphrodite Engine](https://github.com/aphrodite-engine/aphrodite-engine)
|
109
|
+
- [Petals](https://github.com/bigscience-workshop/petals)
|
110
|
+
|
111
|
+
Coming soon:
|
112
|
+
|
113
|
+
- [exo](https://github.com/exo-explore/exo)
|
114
|
+
- [GPUstack](https://docs.gpustack.ai/0.4/overview/)
|
115
|
+
- [RayServe](https://docs.ray.io/en/latest/serve/index.html)
|
116
|
+
|
117
|
+
Not what you were looking for? [Tell us](https://github.com/kalavai-net/kalavai-client/issues) what engines you'd like to see.
|
118
|
+
|
119
|
+
|
120
|
+
> 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).
|
121
|
+
|
122
|
+
|
123
|
+
## Want to know more?
|
124
|
+
|
125
|
+
- Get a free [Kalavai account](https://platform.kalavai.net) and access unlimited AI.
|
126
|
+
- Full [documentation](https://kalavai-net.github.io/kalavai-client/) for the project.
|
127
|
+
- [Join our Substack](https://kalavainet.substack.com/) for updates and be part of our community
|
128
|
+
- [Join our discord community](https://discord.gg/6VJWGzxg)
|
129
|
+
|
130
|
+
|
131
|
+
## Getting started
|
132
|
+
|
133
|
+
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.
|
134
|
+
|
135
|
+
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.
|
136
|
+
|
137
|
+
|
138
|
+
### Requirements for a worker machine
|
139
|
+
|
140
|
+
- A laptop, desktop or Virtual Machine
|
141
|
+
- 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).
|
142
|
+
|
143
|
+
|
144
|
+
### Requirements to run the client
|
145
|
+
|
146
|
+
- Python 3.10+
|
147
|
+
|
148
|
+
|
149
|
+
### Install the client
|
150
|
+
|
151
|
+
The client is a python package and can be installed with one command:
|
152
|
+
|
153
|
+
```bash
|
154
|
+
pip install kalavai-client
|
155
|
+
```
|
156
|
+
|
157
|
+
## Public LLM pools: crowdsource community resources
|
158
|
+
|
159
|
+
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).
|
160
|
+
|
161
|
+
Check out [our guide](https://kalavai-net.github.io/kalavai-client/public_llm_pool/) on how to join and start deploying LLMs.
|
162
|
+
|
163
|
+
|
164
|
+
## Createa a local, private LLM pool
|
165
|
+
|
166
|
+
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).
|
167
|
+
|
168
|
+
### 1. Start a seed node
|
169
|
+
|
170
|
+
Simply use the client to start your seed node:
|
171
|
+
|
172
|
+
```bash
|
173
|
+
kalavai pool start <pool-name>
|
174
|
+
```
|
175
|
+
|
176
|
+
Now you are ready to add worker nodes to this seed. To do so, generate a joining token:
|
177
|
+
```bash
|
178
|
+
$ kalavai pool token --user
|
179
|
+
|
180
|
+
Join token: <token>
|
181
|
+
```
|
182
|
+
|
183
|
+
### 2. Add worker nodes
|
184
|
+
|
185
|
+
Increase the power of your AI pool by inviting others to join.
|
186
|
+
|
187
|
+
Copy the joining token. On the worker node, run:
|
188
|
+
|
189
|
+
```bash
|
190
|
+
kalavai pool join <token>
|
191
|
+
```
|
192
|
+
|
193
|
+
### Enough already, let's run stuff!
|
194
|
+
|
195
|
+
Check our [examples](examples/) to put your new AI pool to good use!
|
196
|
+
- [Single node vLLM GPU LLM](examples/singlenode_gpu_vllm.md) deployment
|
197
|
+
- [Multi node vLLM GPU LLM](examples/multinode_gpu_vllm.md) deployment
|
198
|
+
- [Aphrodite-engine quantized LLM](examples/quantized_gpu_llm.md) deployment, including Kobold interface
|
199
|
+
- [Ray cluster](examples/ray_cluster.md) for distributed computation.
|
200
|
+
|
201
|
+
|
202
|
+
## Compatibility matrix
|
203
|
+
|
204
|
+
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.
|
205
|
+
|
206
|
+
### OS compatibility
|
207
|
+
|
208
|
+
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/).
|
209
|
+
|
210
|
+
The kalavai client, which controls and access pools, can be installed on any machine that has python 3.10+.
|
211
|
+
|
212
|
+
|
213
|
+
### Hardware compatibility:
|
214
|
+
|
215
|
+
- `amd64` or `x86_64` CPU architecture
|
216
|
+
- NVIDIA GPU
|
217
|
+
- 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))
|
218
|
+
|
219
|
+
|
220
|
+
## Roadmap
|
221
|
+
|
222
|
+
- [x] Kalavai client on Linux
|
223
|
+
- [x] [TEMPLATE] Distributed LLM deployment
|
224
|
+
- [x] Kalavai client on Windows (with WSL2)
|
225
|
+
- [x] Public LLM pools
|
226
|
+
- [x] Self-hosted LLM pools
|
227
|
+
- [x] Collaborative LLM deployment
|
228
|
+
- [x] Ray cluster support
|
229
|
+
- [x] Kalavai client on Mac
|
230
|
+
- [ ] [TEMPLATE] [GPUStack](https://github.com/gpustack/gpustack) support
|
231
|
+
- [ ] [TEMPLATE] [exo](https://github.com/exo-explore/exo) support
|
232
|
+
- [ ] Support for AMD GPUs
|
233
|
+
- [x] Docker install path
|
234
|
+
|
235
|
+
|
236
|
+
Anything missing here? Give us a shout in the [discussion board](https://github.com/kalavai-net/kalavai-client/discussions)
|
237
|
+
|
238
|
+
|
239
|
+
## Contribute
|
240
|
+
|
241
|
+
- PR welcome!
|
242
|
+
- [Join the community](https://github.com/kalavai-net/kalavai-client/) and share ideas!
|
243
|
+
- Report [bugs, issues and new features](https://github.com/kalavai-net/kalavai-client/issues).
|
244
|
+
- Help improve our [compatibility matrix](#compatibility-matrix) by testing on different operative systems.
|
245
|
+
- [Follow our Substack channel](https://kalavainet.substack.com/) for news, guides and more.
|
246
|
+
- [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.
|
247
|
+
|
248
|
+
### Star History
|
249
|
+
|
250
|
+
[](https://star-history.com/#kalavai-net/kalavai-client&Date)
|
251
|
+
|
252
|
+
|
253
|
+
## Build from source
|
254
|
+
|
255
|
+
### Requirements
|
256
|
+
|
257
|
+
Python version <= 3.12.
|
258
|
+
|
259
|
+
```bash
|
260
|
+
virtualenv -p python3 env
|
261
|
+
source env/bin/activate
|
262
|
+
sudo apt install python3.10-venv python3.10-dev -y
|
263
|
+
pip install -e .[dev]
|
264
|
+
```
|
265
|
+
|
266
|
+
Build python wheels:
|
267
|
+
```bash
|
268
|
+
bash publish.sh build
|
269
|
+
```
|
270
|
+
|
271
|
+
|
272
|
+
### Unit tests
|
273
|
+
|
274
|
+
To run the unit tests, use:
|
275
|
+
|
276
|
+
```bash
|
277
|
+
python -m unittest
|
278
|
+
```
|
279
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
kalavai_client/__init__.py,sha256=8P_1EdfEVua2fjfgelYEOc3lp5LKvD3pr9XXr_1D_2c,22
|
2
|
+
kalavai_client/__main__.py,sha256=WQUfxvRsBJH5gsCJg8pLz95QnZIj7Ol8psTO77m0QE0,73
|
3
|
+
kalavai_client/assets/apps.yaml,sha256=aW9wKyvZhZFMHzBkZOsgVq-kpntED6U8B9XoHkm5F9Y,5963
|
4
|
+
kalavai_client/assets/apps_values.yaml,sha256=CjKVelPQHd-hm-DTMEuya92feKiphU9mh3HrosLYYPE,1676
|
5
|
+
kalavai_client/assets/docker-compose-template.yaml,sha256=qDv0og338clLobDDPEJ-HiGlMcCMMx2NOi5R_hdhKvw,1442
|
6
|
+
kalavai_client/assets/pool_config_template.yaml,sha256=fFz4w2-fMKD5KvyzFdfcWD_jSneRlmnjLc8hCctweX0,576
|
7
|
+
kalavai_client/assets/pool_config_values.yaml,sha256=VrM3XHQfQo6QLZ68qvagooUptaYgl1pszniY_JUtemk,233
|
8
|
+
kalavai_client/assets/user_workspace.yaml,sha256=wDvlMYknOPABAEo0dsQwU7bac8iubjAG9tdkFbJZ5Go,476
|
9
|
+
kalavai_client/assets/user_workspace_values.yaml,sha256=G0HOzQUxrDMCwuW9kbWUZaKMzDDPVwDwzBHCL2Xi2ZM,542
|
10
|
+
kalavai_client/assets/vpn-template.yaml,sha256=Hm7sevtrsakSxSKMJwl68hzOEWCaxwYytwkTgKhe_MM,397
|
11
|
+
kalavai_client/auth.py,sha256=QsBh28L2LwjBBK6pTUE4Xu36lLDTyetyU1YfS1Hbb6g,1717
|
12
|
+
kalavai_client/cli.py,sha256=XA6kPlvPXhBbr6hh80akbkjZXxZKBp1m-5B9H96Gzns,67793
|
13
|
+
kalavai_client/cluster.py,sha256=C7uofrpSEj4PUhF_VLfwH4k9BhJMTkuKRWHxDYu1OD0,11345
|
14
|
+
kalavai_client/utils.py,sha256=BBx1BErgtCZYS9aWdBm4mi2qftJPsi0pDR2I51sFAEc,13461
|
15
|
+
kalavai_client-0.5.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
16
|
+
kalavai_client-0.5.0.dist-info/METADATA,sha256=v992LMhR7ONJlnDclvxRKjzKxIx2BRciF2mxFVsSj8o,12268
|
17
|
+
kalavai_client-0.5.0.dist-info/WHEEL,sha256=_GR1VF9XYsw6EE9ATkyto4e6vRiOUBshR1STiZ5m1gE,92
|
18
|
+
kalavai_client-0.5.0.dist-info/entry_points.txt,sha256=9T6D45gxwzfVbglMm1r6XPdXuuZdHfy_7fCeu2jUphc,50
|
19
|
+
kalavai_client-0.5.0.dist-info/RECORD,,
|