Skip to main content

Run AI models in Python. Register at https://muna.ai.

Project description

Muna for Python

Muna logo

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

Muna is a product of NatML Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muna-0.1.4.tar.gz (30.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

muna-0.1.4-py3-none-any.whl (30.9 MB view details)

Uploaded Python 3

File details

Details for the file muna-0.1.4.tar.gz.

File metadata

  • Download URL: muna-0.1.4.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

Hashes for muna-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c8740c39e5fa4510802ddb2a6e0b2f30a3348d90b64d94c6d2c81a4fe91752b7
MD5 bbcf5904fbe77ae927227883edac095f
BLAKE2b-256 236274dab1db38771f401687f9cab0461438e963abbe9b84575e004e84932d17

See more details on using hashes here.

File details

Details for the file muna-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: muna-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 30.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for muna-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aa16d45ad50ac3f165d74b98764a9273845ae7dfa847730c97864c60d17fb03e
MD5 e6557a4fbf9b82f0338683e8017f072a
BLAKE2b-256 f9c3fcf2e059e5df202e4a9d2d28097dc3a0688bdc22386ca63677ed5ec8f423

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page