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.21.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.21.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.21.0-cp311-cp311-macosx_11_0_arm64.whl (404.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.21.0-cp311-cp311-macosx_10_9_x86_64.whl (409.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.21.0-cp311-cp311-macosx_10_9_universal2.whl (812.2 kB view details)

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

amesa_inference-0.21.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.21.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.21.0-cp310-cp310-macosx_11_0_arm64.whl (407.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl (412.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.21.0-cp310-cp310-macosx_10_9_universal2.whl (817.4 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c988d7b2b66eab40acceae5efd8337cd2fe5cca6ae369d2ef99da9886480c862
MD5 8d0a719a03c61eb63f6e086e55aec759
BLAKE2b-256 e8adf64f61d2b187656fec786f9f5a75bb9938f4e32d3e268514a594d5966b68

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 116fcad4ed8c732a9af8e24a8518b8095ade98c0985fa5324be85cebc9365950
MD5 f3403429e0a1c4251f48c3616a2a4527
BLAKE2b-256 9dc0d26112f50b9fc832c0d0d3f22ec7c4032f9ab7581b6aab2bde77215fca9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd2f67171afa73f07c38895bef418fdc344052f3b42f002b5832b4a1dab7139c
MD5 ae0f0ad77f5a61598d0d22b9a2a13186
BLAKE2b-256 e9ae592aa946170ebcf42b6ed61161f7b120a00a9536136eb1b1b1df9b9a3fbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 122f409c5f564d0f8f893c3cb45ab18dd82d38b3effaee2005757843205b37e8
MD5 1b3d3695b886a9a21e108fbbb9e5bdb1
BLAKE2b-256 933372fd6efa3b6fdbe61ba182fa97bd0c6bfcb1728d2db5d34b89aa6206e87a

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fa9616880e103865e32397078b8bc28f53bea26d3bf8f15affa7c6e3bff97192
MD5 72b8628ff167cfe999213a422b72a0d7
BLAKE2b-256 e0c321805fd6fe93021ce2332c4d892fe1c0f768bf09941d484646a2159a6d6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d2789d1e13703026bc66052547aae723b5258329f5f87d54573e866b8fd2603
MD5 839b52d04784c6651080c2eaf56ff667
BLAKE2b-256 f29501dab6e04bb565108dad12f1d392415e3a1612fce6f8a449e758bfb4e762

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3c9e1550ff38477190c6f8e3c76b014536416752c8746fe2603f006431e7f450
MD5 d74a523a119e03a4fb7bc595b52cb826
BLAKE2b-256 d6ce45a8d471e640ebd64d184bb46815eae51cebfa5f47a9722ca65a9f3d267b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6dc1508a398f99189bbaacd1645fcb66ceacd35ff629bd9b49415f579ed6f71
MD5 9d5737267fa136a9382d742c61c50218
BLAKE2b-256 ce29b59548cc59193e3aa5c7643fd4d5c16453dc98ac2c3ca55e2262f000d817

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2c113f9f87d02c68cb8f845c6e17dad694c7ddbe84d952f9793f1751500fca77
MD5 738d7a5a202433fb8c10d14de6ac611b
BLAKE2b-256 63c7fec7cfb2efeaec2c1dbe08619d5c48ee7900461f239888953d9e07dd9eda

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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.21.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.21.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e5064d6c1b83f312635724c2fe685a4d3bd023da09cddafaccc5ee601c07ab21
MD5 38562502cdb21d243ede103fbdbda60b
BLAKE2b-256 4bbd04fa5cb44430c3f1419e4e5ae7968504ca0dcc3c780e6d0938392d4ddc3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.21.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