Muna for Python
Compile and run AI models locally & in the cloud.
Installing Muna
Muna is distributed on PyPi. This distribution contains both the Python client and the command line interface (CLI). Run the following command in terminal:
# Install Muna
$ pip install --upgrade muna
[!NOTE] Muna requires Python 3.11+
Running a Model
First, create a Muna client, specifying your access key (create one here):
from muna import Muna
# 💥 Create an OpenAI client
openai = Muna("<ACCESS KEY>").beta.openai
Next, run a model:
# 🔥 Create a chat completion
completion = openai.chat.completions.create(
model="@openai/gpt-oss-20b",
messages=[
{ "role": "user", "content": "What is the capital of France?" }
],
acceleration="local_gpu"
)
Finally, use the results:
# 🚀 Use the results
print(completion.choices[0].message)
Useful Links
- Check out several AI models we've compiled.
- Join our Slack community.
- Check out our docs.
- Read our blog.
- Reach out to us at hi@muna.ai.
Muna is a product of NatML Inc.
Release files for muna 0.1.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| muna-0.1.22.tar.gz | 30.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| muna-0.1.22-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.7 MB
Release files / muna-0.1.22.tar.gz
| Download URL | muna-0.1.22.tar.gz |
|---|---|
| Size | 30.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d91f01318e407a01974d6978c65231d06047894914d14f55906673bb9d6e6df4
|
|
BLAKE2b-256 checksum How to use checksums |
1e3f2a2f9729ca7efc99c507c5c1fa9cae7ee1046b7a53f35fafb13b0a839a7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / muna-0.1.22-py3-none-any.whl
| Download URL | muna-0.1.22-py3-none-any.whl |
|---|---|
| Size | 30.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9378d8d723661d84cd294f722a41f88531a9f8a6e2996c6b26ecd170225c7d8b
|
|
BLAKE2b-256 checksum How to use checksums |
1c9c5c076672a76abfb97a7a2c2fc49b5c7b44f16f34e0c4f583cfa0c3ffc915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|