Run AI models in Python. Register at https://muna.ai.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file muna-0.0.97.tar.gz.
File metadata
- Download URL: muna-0.0.97.tar.gz
- Upload date:
- Size: 30.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41c38805ad57b491c6ecce3da161ab978032f95a1aad510f9b8263cfbbef7046
|
|
| MD5 |
4bc50093635f6a81dc9bc70d961a1e77
|
|
| BLAKE2b-256 |
1fcf61bba493d51d32f778809c8d15c3320155787d24802adf8a6d3e54b183cc
|
File details
Details for the file muna-0.0.97-py3-none-any.whl.
File metadata
- Download URL: muna-0.0.97-py3-none-any.whl
- Upload date:
- Size: 30.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ac4e9ed5ebab095af6e577ba4b392789da48ddb30e0622bfead2125ccdc12f
|
|
| MD5 |
06c7804b529b39ca279327e302f1ebea
|
|
| BLAKE2b-256 |
79e1c078193759a32485f12a214309b972d52a75870701f28967307f1164f439
|