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 (agents, 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 agents, 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 agent 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. ONNXAgentProcessor: Processes agents 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.33.1-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.33.1-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.33.1-cp311-cp311-macosx_11_0_arm64.whl (407.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.33.1-cp311-cp311-macosx_10_9_x86_64.whl (413.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.33.1-cp311-cp311-macosx_10_9_universal2.whl (818.4 kB view details)

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

amesa_inference-0.33.1-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.33.1-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.33.1-cp310-cp310-macosx_11_0_arm64.whl (410.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.33.1-cp310-cp310-macosx_10_9_x86_64.whl (416.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.33.1-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.33.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 057c214039736a95f20ec488e0da312d4d99d155ccb56137045401343dbe7b3e
MD5 24be1a0af52792d3a1b413370fb0fb23
BLAKE2b-256 bbdb8fa2ffad7c8ea2cb60cf6276289684f01692bb8f2df488b2aefd2cf3704b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f83759b89244d4d240c34872dfcb31964bea1a648e067993d23e6e48219af5d4
MD5 62f22668d7cd1349a2f3989c33ddfb64
BLAKE2b-256 e67deb6c594814608fd5fe4c3c3fb6c667e871a1af93faca83e066638c8dcc4c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f22f8ff79e5c7a73a78c1719be5d91144d1659162c59550e2c2e02d47ee24b2c
MD5 f7bc82bc548a05847d829f9c6dc21b9d
BLAKE2b-256 c25e69f6504c421839c5a09e58ae12fcfc855bd2d01e408f44232b1126f55255

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 210c10e0c338d830abf47833eeaabcbbc7793f230dfa5d7fef453dfc9de55011
MD5 4ab751d7c41b173481c532771bc9f120
BLAKE2b-256 1bb8feab4222435fdddb8844df49e7d46c145166ea0fd0a2b0a5c93f9c9c28cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 91710253fdd4ab350e76b7a63521c31e28f8469768253b13958b7b2055604983
MD5 0980a4e6ec6ce63c57c28a093c0b2155
BLAKE2b-256 0b06a430222beb78f4fb959280b6c832b0211a81bf36b77a38436a243180afd6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 205fec3b8fa61109a669c9f53a4fb952de0d197a35d6cabb1e4fe917a80fc7d9
MD5 303bf1d192dc71748d5ff8ab11b44b70
BLAKE2b-256 66483fd4e0f9313d211dd5656e76382ffe9ea051a03d0ac198916282540718ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9241cd3ecb98947348d6dbecbfe32c0bfec6fb3897cf7bec21bb71e9ba2c5a68
MD5 2403ac463925458c9fb8f695b2f8f9ee
BLAKE2b-256 cdcbc5d35538454eb382ba0fd28092b78648845ee089e284fd5baf549788cccf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e3156c34e757089957b45063ae13864e6b8cab2110a32cf129abfc9178f6370
MD5 20338484a3a4e103290bb3dfd8fff565
BLAKE2b-256 62291b991a74cec93c7b5d5889d9fc82dd45d57059db658996ca447026a04c14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 993e297d40f07cc869f091688b40e5d4801633cbdaeaeeaf1f49970d44bbd226
MD5 7960cddfffb2614f447c871715a493fa
BLAKE2b-256 9e3463d9ae9cf0c17fbbebb731e140fe228be20e4f32950235f20e8bf3ed3b31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1590719c7acebe8c0b78f9715e3c4e4d5564e516b71802ed552bf6e7710ae627
MD5 a1f1533ffe1ec9be5e1208e98602f9ad
BLAKE2b-256 d5ccb7d4516c9d96a6bea6d71ef69d774835dd91874d88f5b76a357f8286af02

See more details on using hashes here.

Provenance

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