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
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.29
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.29.tar.gz | 30.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| muna-0.1.29-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.7 MB
Release files / muna-0.1.29.tar.gz
| Download URL | muna-0.1.29.tar.gz |
|---|---|
| Size | 30.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb3bda00348d3dab7525ac2111151ab80ff2aa3a67de9b71bb4eabda68635d55
|
|
BLAKE2b-256 checksum How to use checksums |
5a580562e877baa26509b7a45f2595286f7f889624967a4c96ab339ca1bf3914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / muna-0.1.29-py3-none-any.whl
| Download URL | muna-0.1.29-py3-none-any.whl |
|---|---|
| Size | 30.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d08a86d1edf3069bd04effe69868531793737f7a8cb1bd54020ad685a04b2e1f
|
|
BLAKE2b-256 checksum How to use checksums |
e42c8307b6e89f02ba6b09433e47653962440f61e2b4aaf6f6ba2a73303dc06a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|