Skip to main content

Agent inference package using ONNX models without Ray or PyTorch dependencies

Project description

Amesa Inference

A lightweight inference package for running Amesa agents using ONNX models without Ray or PyTorch dependencies.

Overview

composabl_inference provides a standalone inference engine for running trained Amesa agents. It uses ONNX Runtime for model inference, making it suitable for deployment scenarios where you want to avoid heavy dependencies like Ray and PyTorch.

Features

  • ONNX-based inference: Uses ONNX Runtime for efficient model inference
  • No Ray or PyTorch dependencies: Lightweight package suitable for production deployment
  • Network management: Supports both local and remote objects (skills, perceptors, controllers)
  • Compatible API: Similar interface to Trainer.package() for easy migration

Installation

pip install amesa-inference

Usage

Basic Inference

from composabl_inference import InferenceEngine
from composabl_core import Agent

# Create inference engine (only license needed for license validation)
engine = InferenceEngine(license="your-license-key")

# Load agent
agent = Agent.load("path/to/agent")
await engine.load_agent(agent)

# Package agent for inference (similar to Trainer.package())
await engine.package()

# Run inference
observation = {...}  # Your observation from the simulator
action = engine.execute(observation)

With Remote Objects

The inference engine supports remote skills, perceptors, and controllers, just like the Trainer:

from composabl_inference import InferenceEngine

# Optional: provide custom config for NetworkMgr (e.g., for remote targets)
config = {
    "target": {
        "local": {
            "address": "localhost:1337",
        },
    },
}

engine = InferenceEngine(license="your-license-key", config=config)
await engine.load_agent("path/to/agent")
await engine.package()

# The skill processor will automatically handle remote objects
action = engine.execute(observation)

Cleanup

# Clean up resources
await engine.close()

Architecture

Components

  1. InferenceEngine: Main entry point for inference operations
  2. NetworkMgr: Manages network connections (non-Ray version)
  3. ONNXInferenceEngine: Handles ONNX model loading and inference
  4. ONNXSkillProcessor: Processes skills using ONNX models instead of PyTorch

Differences from Trainer

  • Uses ONNX Runtime instead of PyTorch for model inference
  • NetworkMgr is not a Ray actor (runs in the same process)
  • No Ray initialization required
  • Lighter weight, suitable for production deployment

Requirements

  • Python >= 3.10
  • composabl-core
  • composabl-api
  • onnxruntime
  • numpy

License

Proprietary and confidential - Copyright (C) Amesa, 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference-0.27.0-cp311-cp311-macosx_11_0_arm64.whl (406.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.27.0-cp311-cp311-macosx_10_9_x86_64.whl (411.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.27.0-cp311-cp311-macosx_10_9_universal2.whl (815.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference-0.27.0-cp310-cp310-macosx_11_0_arm64.whl (408.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.27.0-cp310-cp310-macosx_10_9_x86_64.whl (414.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.27.0-cp310-cp310-macosx_10_9_universal2.whl (820.9 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d67c5606fce7879c4ccb732956f678df576d0ce9665923946db4f6c4997d881
MD5 0cdf6cd40f232bd72ea4459b2cfe4a6b
BLAKE2b-256 4ca8c97dc55c4db6d9a6e42a91a1faeed850bb640fa3a65570dafa2f1eee484e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 977d5059fbe13dda94402b6f1912c179d5a473dc6a9e6948a26eb6d87088ae7b
MD5 2c14bdb57af37a74766a6da2a0522b14
BLAKE2b-256 b0b767077605c8f1e4dafb3c76122e88123aada640c193a7f6c998a2f26fc7e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2efd4375ebf88a0c61ad458ce61737b2b692a866273878f61e14a1fbee2aecad
MD5 980e1d0ce3450b6cdfa5629d2a6bcf79
BLAKE2b-256 66a0c333394fe4bc642e7ffa429a4e78c54e0e02ae9b1ae49b0e80b2b375fba4

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 78f8ed7962fb1ae1c6b660bdab2f4c89242621b64862523b7f14f68b7e7f7521
MD5 e4d4b7f193554da24c2fd4a511776958
BLAKE2b-256 09bd938c0bd81990e5f02902e27dde227b0328ffa3d91d9815d69d7cdc0fe054

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 603f2f6f5add0047f4b9668e06a27c6fbcaeb0d49afda4c589db408e72ed6635
MD5 394504715081389b4cea2751ada03aea
BLAKE2b-256 cab307e45a573c455451d64628fa2efbaed434eb2ad65b1d2aad745ac11f3592

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa0baf5118ebbb70bc494b061f76e736b2b723784f2b19d5ed96617fa9ea57e9
MD5 7e1c997aefa5377e4518f2d58015c241
BLAKE2b-256 51e23744e618b2956c96f3bdc903ff51ad54e8c5a5f3910c99c19f8600553f50

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4320dedba9a5928087f80aaba514d4e5ab7fb578faa3177b00099b5bf105ffee
MD5 42b0c9c7681fd50e2ff2637536ce8ccc
BLAKE2b-256 33f36f5e148f98cabf14cd2d61f6c5b435f15bb48b90fc87567ded364e434933

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e83f4bef5e70db69c7233cfd1fe1d251788119d6368ab4731495fcff84ab13f
MD5 7e8faa9460f1865d224dcfd5cb2ccdf4
BLAKE2b-256 ce6663a27221a2d85e6657618b9bd9803fbeb5afca5468e7cbef72d336e0da76

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41baa0de5b5922b63aad35e1680c1d393f83d19f5159e34cbafc90d9d509fc8a
MD5 a80fa5bdd2f2889138c75ffe3210b6ba
BLAKE2b-256 947b86ffd743e26f69ae314f13b3a425d06212457c581e3f3340910060eb5716

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.27.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.27.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 57b54f9f16e655d457ed7d99551d61e843f179faec8741f1d09a01fe43423ed9
MD5 b7135f6d21c920e686ee238cb0956cf8
BLAKE2b-256 93fc912b589f8a3b50758d4a830e57bf7b7c87a2eb2dcd0fbfd4d87b2722162f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.27.0-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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