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