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.34.1.dev17-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.34.1.dev17-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.34.1.dev17-cp312-cp312-macosx_11_0_arm64.whl (412.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev17-cp312-cp312-macosx_10_9_x86_64.whl (414.0 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.34.1.dev17-cp312-cp312-macosx_10_9_universal2.whl (824.1 kB view details)

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

amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-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.34.1.dev17-cp311-cp311-macosx_11_0_arm64.whl (412.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev17-cp311-cp311-macosx_10_9_x86_64.whl (417.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.34.1.dev17-cp311-cp311-macosx_10_9_universal2.whl (826.7 kB view details)

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

amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-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.34.1.dev17-cp310-cp310-macosx_11_0_arm64.whl (414.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev17-cp310-cp310-macosx_10_9_x86_64.whl (420.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.34.1.dev17-cp310-cp310-macosx_10_9_universal2.whl (832.3 kB view details)

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

File details

Details for the file amesa_inference_dev-0.34.1.dev17-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e93669497b4f8aa935795273bd5c232070ecc42b19b868211138ac0a3873b29a
MD5 aff95758379d48d4721e729b19829aa6
BLAKE2b-256 866e2856327369fd2511e1549e8e7dc2d3c5d66f7302750fc510d650aa95b466

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2f843b25e83179e121ad6485ce698835371ec6411ccca1fd8f4a767d3b10020f
MD5 2a350a74b7531a68a0c5c15fcde92aa3
BLAKE2b-256 c55752f5268b2f7fb5815725354deb518ee2141117c21bf77dfbb92b33aeb503

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c22c9cee684f01087c2e6e82ebbef95e134c736702bc060aeb503b284631224
MD5 429ded8aba88e1b8ca28627da3b36f05
BLAKE2b-256 46dffd3e8d502a04b1226108303594b3c930476afc770d7c2ae2577c06ee0194

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d913bff4a6c877284b975c47bdfc3dcb461dfe52aa6aefa8211690584f600fdb
MD5 0b5a959f062a9c5d21ebe954f5b133cd
BLAKE2b-256 684e4ce7a8a023c269f529707975948cde7d7930dfb7e6340da5a89120224ef8

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d7b6c21aee9d60c88d6aed81946e98cdd54b607e26b7596bf266ad3e7e40189c
MD5 3ce6bddc565d4c57372433b0e90e1922
BLAKE2b-256 adfe1f92b324f828887adc0ced9aac0bda6fbdd8c0a0674bc126650c6cc53f57

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a7c6b23cf5e6188fddb296686068d2dd760d8753303dd321166840d0cf268f0
MD5 02c01fa360e2a0e5badb52d0a13f50f6
BLAKE2b-256 f05a8069dfce4c6c45a9f17279b49c0b5771a1cf964d251ec12a4ab09bd25159

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c47105cb1151eb1adede718f3f6cec1a55932d3acbd90230c260b86f122ed6bf
MD5 3c28d5b1f049ca95f560d0c3ade8b88b
BLAKE2b-256 d9215e221de739fe6358003026aac6d4c6a9c13db43fa06bafd296ebe9cc4857

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d54ca48079f7d4ab099e28c44e841a4e62c1b871ca13faeeed91b97cbeff7387
MD5 7e86c8bc1d1e73533a069d1ba26e06d2
BLAKE2b-256 560ab36be8463b1792335156f38a077432bd9f1a50e4e87ff0531271ce7e8e22

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 06ed7440668f406a57ae6bc624acc72b75205a1363c7fa023515ad535b68ad2e
MD5 f9ce4be678385b4eec4ab88afeadf985
BLAKE2b-256 bb3345d459c527e17b439f4126cd8bd2dba3b139dfae923ee4f76c03b9171552

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 930f8306f520bd81a22f4760694ee4463bf3fde68e8925367ff276b094cd16ef
MD5 66e440acee94c5c8265c4f15e0f6b7ad
BLAKE2b-256 5bfa372acc0d067eb2a8a17a6ac68881b9008856fff8c0d420c6287f0809d0f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 22e71854a51d3e4618bd21a92e39aa35cfffe8b8de1f00003ffc093d5eb1ddae
MD5 5e20eaa56b4ca17633f523d31753c13a
BLAKE2b-256 13c303efac9aab046c6f653e350706e3152daaa124ccd8d4a4e989e1e8e58642

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83c433189d771a93cee476b5c1a7a7733f322d054448e9aff342f866688821e9
MD5 a424a56ca00279c8c6dcd4f086ae9c63
BLAKE2b-256 02deccd1005e5de6fc4208fb2cff029d9bb0deddf507ad8c19f5fbfc1085ce42

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6a3e9877e64dcbd35ab2652c389d1371801e0652fc1b0d157ba889cbd98069c
MD5 db56f265c292e555a69b96aab73f0551
BLAKE2b-256 9a8d019296290f59d766b87e89352f1538073ba2a987f1bddab8a433e6b5e1af

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 37840af6f3383cb5708709f9abdd8dcff42f8db4e7958b4bdcc4525f9308e69c
MD5 9e0518127905e0251f12616554f6a6fc
BLAKE2b-256 f1be955ad2cb8e1d93dd6ddfc88a7360b1916c450e72d526c3bcd31d09f17b2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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.34.1.dev17-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev17-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8e3bde09e112090272f0f986a55fad46c51f1fb77b45800800372216274b2021
MD5 8b45ef8a95a0f738fd94f28e916b9c7a
BLAKE2b-256 1416b6aad2b5508c39ab6d7e943f0f8e6d6f05b5dfd54c95109cc1f78d5164ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev17-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