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


Release history Release notifications | RSS feed

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_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_11_0_arm64.whl (408.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_x86_64.whl (409.9 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_universal2.whl (815.8 kB view details)

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

amesa_inference_dev-0.32.0.dev30-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_dev-0.32.0.dev30-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_x86_64.whl (413.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_universal2.whl (818.5 kB view details)

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

amesa_inference_dev-0.32.0.dev30-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_dev-0.32.0.dev30-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_11_0_arm64.whl (410.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_x86_64.whl (416.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_universal2.whl (824.2 kB view details)

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

File details

Details for the file amesa_inference_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51771ae3ae947b1939f7eae450f8cc3c73e9747df6322250c051cf73fe61efeb
MD5 323e4bd953434bee2926e2966effc918
BLAKE2b-256 cfc6e2fe7320b8f706ca74c69e860e70e7f71a1c59c1595ee7ad59cb72246a9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 25a2ae8808b57f7b1c489c27f0ba5c0d84fa4cb61c13fb5d7badc986acbce8d2
MD5 84696f7dae9d7b8927f9a74edd15f02e
BLAKE2b-256 1d3cb3694fadc818529dd07cf4b818d7ad171787609c91cf3bd3b967930b09f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52637bb6921c4c463131907a0c3f78e0aaa01f19cb509bf7fde05d4ed4db9ef8
MD5 c507d6c6062cf157a767231e464e9ad1
BLAKE2b-256 802abca2722453b87948b9b4add18a3cd968606df703e5a0b4ad4d92e7717ce2

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 31744cf673012addc14792d8a76d203048fe39377eacca2d04ab397b791947ef
MD5 e8b7b6ec8c7e531e3a953f28200b0dac
BLAKE2b-256 fbd88befd4a94fecc3279a2e77a857255b43e556cafcbbe88c26a5692dd2afad

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5cabdb009c309c561c48e3fa993f94651134507a0bf0b6d17920fe1a160c75c6
MD5 95b1bb92ccd47d366ea2cb758de92b80
BLAKE2b-256 deae377f582f5d8d358386254787b0adb00719352df7ae408532c21849f2e752

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp312-cp312-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16c08bba89b47c2785c785ad970820ffefdff16ca8f56daacf6947ccd1e6907e
MD5 aa8f5021253aa258d672a71f96c61313
BLAKE2b-256 9b038395e5e30b8d47dae01dc570a4c4499cef61f2b63486e0e4aed871796a56

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8ee8288e3e4045e1b6dda4e65e1c583f6ee4d77c07d11046efbcd3c05a010b74
MD5 0dcdbe95ff18b14bc390e5044adfcf50
BLAKE2b-256 d25f54954565f4630c22e6380d6674855d31e401b86d681e5e759fed39a8e798

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0e24d249d8830f660c394b60511bbafcbc97cb18661ee32875889f941d4ab39
MD5 723c20670f7ff8a40c169059b703f9bb
BLAKE2b-256 7ed6b2a28fded7e1ae3b92567f80d083f392c2c384a0850dba04b16df81b7176

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e415e0fd2d2748eb72dd90c16a24b96a7151864958f589cdf33239067061da29
MD5 5fc3c13758f0f33581c9086edb631872
BLAKE2b-256 b18a85d9a7e77e9487b5724587f1a4a8af49f085ec249461c75aeef277ab28cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 dfa57dcd848115703220d91e2e0a18414a40c45c7953340c7c9c36e8f03409b3
MD5 b67ad3952e8b045b52699d97f515ebb4
BLAKE2b-256 8663bbd898daa129646bf72ee4a79fd788884e4322d691528bf8eb6672ad2574

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49bda45ae8cd04bff3a936d1ef3e517ad7413af1ab71262e856868d4921ff002
MD5 003d9579eaef778a2190581f299d7e43
BLAKE2b-256 0737eddba8de347bcef18ad76c6f712683a92b1d8fee07d6e1d288cab3dc76d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2def0bf55099f466cea3c8bd13376a551a8af2c188a9fbfc6cd62b3cb92ac76b
MD5 363febd78aab1d511af462a3a74e0086
BLAKE2b-256 3e673888d28e60803c22317112e234acc4675ac2fc4714b9028438400487b860

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c7db605dac40a11c3c84405522716965f66e875fcc476870e36172018d7376d
MD5 9a166a122d3f7a5ab4d271669ce075f2
BLAKE2b-256 473af9ba2f1bdfd040a9a939485285091002799ec8972bc6d7dd458ff1cb6a1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f89310a8ed92ac4ff9a423265ac9ef409d98c09ce79d046f9b4ac83f34e8c7f3
MD5 ad7fc9f1ccc1856629bdfae355e6adfa
BLAKE2b-256 12d392100b3c5468b573bb975d7a39918462bf4bf2db70019e28ba68415e1f9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2dc86f2817171dc69fb1448a66dd9c9c6f2dcea455010bcb9affcfc6f3c0e436
MD5 16223c99f5fa5aee4512ac1091f3c433
BLAKE2b-256 a38f3f68ccc8c9df9a6ceb42df628d710d32fbb20ac368579db9c7c10493e53b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev30-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.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