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.0.101.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.0.101-py3-none-any.whl (30.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: muna-0.0.101.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.0.101.tar.gz
Algorithm Hash digest
SHA256 f09af4bce2e1319856d15b142309f969ae4e60f5c2a66e290706f9647075ea81
MD5 5a5c8417903f8f205c7970f0a1937797
BLAKE2b-256 c033a8a9fc8c5b1befa3b8a28a7650db6789f3bd28bb398c0b0243697d197653

See more details on using hashes here.

File details

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

File metadata

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

Hashes for muna-0.0.101-py3-none-any.whl
Algorithm Hash digest
SHA256 a51b4a4214f6593f78af1916f5054911962d705eca3e313a19cd818bd276d46b
MD5 f7c9075f5b00e18c3861566cc589e9e4
BLAKE2b-256 0c17e25073397a4141d93929cf4d55871badcaba1a3446a4b70a9f14c1022844

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