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.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.33.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.33.0-cp311-cp311-macosx_11_0_arm64.whl (407.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.33.0-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.0-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.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.33.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.33.0-cp310-cp310-macosx_11_0_arm64.whl (410.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.33.0-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.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.33.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ad83f1d59855621de952c3d38ffff383b155ecb23119b2e4e7d23231738358f
MD5 f74a619e1bac01e95db61b33dae0c4a5
BLAKE2b-256 158256a5f1b296f8f0fc5482ed24e55ce29b657e22ce6c5d8ac2c27557643a47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dbd1769fbe6ae16ea6c8589e0cb6e3aac1b58157cf37e9b8f532d9ecb823a2b7
MD5 9444ca8aef5161a81d932b53e499d584
BLAKE2b-256 87794b8560f0a363916e6725dee51bc730f0dd0bee9d76ec74e9204c9597fb95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c13545b7b54ec606743f35049fbdc846231908c2aa7fd07a5af5483aa6ce0175
MD5 f0260734a49286a3317483202b38cdf8
BLAKE2b-256 296c15f66d305dfda37de6504cf50a4152adb4e771a144a6deee2a132ae205f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7a0b35b1ab8738e65a56cc7fa7b16cae6e84ad3b573e9feab1782f0992e5ac62
MD5 4cfaa5b342d9d6cb9f6afabe8339052b
BLAKE2b-256 1f3b2bacd8b8720eb0eebb62f5caf90c9f112c2eb6d10ad6ab7014124fe6b6eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5c7506729446cbf193fdc78e9db450bedc4a0b1a144e42d47b15f6029633728d
MD5 2caa3def608b69da23659bf1a7e0293e
BLAKE2b-256 d685fee2ae085c6c7efaa16375a46395a60fcf368b19438d2a29ec1311deb197

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e61730b414f9d290b5f093dd512bf20aa6e8f662fdaba1aa9542a91cb3a910e4
MD5 e81143de8d8f15ba4148691dc994c513
BLAKE2b-256 f065a0a37b8a812c9c75d200da3f9740e59732f86d4f6cddd24ef713249c939b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e233d1dff11fe694d669c5914d7ca12c0becfa96399c7f25ab84e3a0aaa1906a
MD5 71621bf9d53d90728985b17e18e7d854
BLAKE2b-256 6aa039915463f2e07b9599ceba12b662363e79f84f4e8a5bbfa96573e1dc7b98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 566722fe5742d3a9aa4bb18d45b2880a41c00efb039c6c9193aaa3bb1536056d
MD5 b6cdfb855d5f55e264d73cd45dcd358e
BLAKE2b-256 9c0b2bd124fe5c7d08a712cbeab858a97c627e771cb13d23297c6ffd16b96b37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 43219288c560575c2b596c2718884829fe6ea16904e2d7fb7d26661178e1cbee
MD5 5dbeab04362acb0f09976726500d70d6
BLAKE2b-256 6197eb50757ab125a1ac15c2b74afea0aeb36e76d01d5958f3f787b3e206cb90

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fdc999e4000a2772c63c2ecbca2631b1ee6b74d897ebdee1d85b8a7ebd6fb69a
MD5 7ff4ee5a2de59e76ce568689ac6c370b
BLAKE2b-256 2d6c035ca765942f75699f16637cbf1e83e06b64d7a5381efc51c7952af7c159

See more details on using hashes here.

Provenance

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