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.30.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.30.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.30.0-cp311-cp311-macosx_11_0_arm64.whl (407.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.30.0-cp311-cp311-macosx_10_9_x86_64.whl (412.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.30.0-cp311-cp311-macosx_10_9_universal2.whl (818.3 kB view details)

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

amesa_inference-0.30.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference-0.30.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference-0.30.0-cp310-cp310-macosx_11_0_arm64.whl (410.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.30.0-cp310-cp310-macosx_10_9_x86_64.whl (416.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.30.0-cp310-cp310-macosx_10_9_universal2.whl (824.0 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a4c79b73c2b0934780b9c479aca4eb7522c85151f03cbdf5eb5b51b8f1cb0f4
MD5 710b18b572929b01adf4b24811869f2c
BLAKE2b-256 615ab824b779c59ae254a912838069e9cdddd47198be69cc441e3954edd385ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1b5027ad3ebbdc79b32c8ee0bba25bfdbf5a47c146bd724a8f89bcc675530a48
MD5 3b8cea699d50dd246170463c5b50f3ab
BLAKE2b-256 e24e7b51c7589e71820eee218f1d15953e85db3d576363c29ead1f7ea4726964

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 051dac73cc862e3b2f839c09e61e5e0e26b9b9a9570ac94ed8638faeaf29aa02
MD5 657a6e1327b21f85dae3034ab3f864a0
BLAKE2b-256 d35decf3c4680c0daaf2249e1eb4c6c638c86edddd086f7fff195312cddcb82e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 02f7c8870d8b66e2a9591ef1faf2c4b285a8060c85ce8d4b27117589bf518792
MD5 4f702a3306cc7509a7e710780ee68e90
BLAKE2b-256 cbc0cdd309b2cd61898e39308d79184ed0321b98359f031f07b4895bfa550016

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 40ba268a5e4eaee2fdda377d7136ceb40bdeab7af1d5e94efdd7adb403c089f5
MD5 4208fb30f27fb2df1680fb26c56a3efa
BLAKE2b-256 69d4f94c43a974c5d5e15329ea1a4d7317eaccee6e1c1337c27758156384d0ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 46aeff51c70dd53e9bc4495d33b1414278e78d6e77e0cb47742e4b3cc4e2a387
MD5 775d84a67573835e679ff52e28187ed3
BLAKE2b-256 7de07b241e0b64eb39f7fb7e51c9501e529b2ffb8f1147b0f443a1d31fa4b067

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 60634f08040f8e6cb7f0fa586ab7bdabc71a505c5c8cca88c8d4615e66e53cd3
MD5 c9f65ca28921a58a182c9d375ee55dc8
BLAKE2b-256 de9d02f109b5737577e324bcfa5b35a311f9d78f4a98bf428a0a995e4a7d8b30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ea999149c085b4d3bbca836cd52b4a0fcfa0dc36a7d5008ade8182441e318da
MD5 f7edc41ba8ef80f931966bfdc1da26a6
BLAKE2b-256 19c194d020df9233fa7149c092afa1e3e88fb7112f8b3857a922b3d0172b5750

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c49bee32a140a89de40662f9401ca47b9cd2239e3a0c7aa060b5284c1869129f
MD5 d6a68421db109788b1630a09a78e3d2e
BLAKE2b-256 0377b76594e13b941f375a7add1c71a4e948e842dcb15287039b8fed82d9fd28

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.30.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ac0257a8c395e641e9e563351b214c3c7c15f15033cb5672bd1e91a04dc394be
MD5 5d24be06c6a481d035d5f5e4e7ab5dbe
BLAKE2b-256 408551f77c73bea49f32bce605cd7a60e09884925cd217815264f332f75fe215

See more details on using hashes here.

Provenance

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