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.28.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.28.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.28.0-cp311-cp311-macosx_11_0_arm64.whl (406.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.28.0-cp311-cp311-macosx_10_9_x86_64.whl (411.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.28.0-cp311-cp311-macosx_10_9_universal2.whl (815.5 kB view details)

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

amesa_inference-0.28.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference-0.28.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference-0.28.0-cp310-cp310-macosx_11_0_arm64.whl (408.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.28.0-cp310-cp310-macosx_10_9_x86_64.whl (414.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.28.0-cp310-cp310-macosx_10_9_universal2.whl (820.9 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d5994e958c70c47a3be0b228f5a9c2c8647bf0d7c4ea43e98df0ca4941114eb
MD5 61a274bbf4c1dc09ec7c3908342c8f43
BLAKE2b-256 caf5ae25e97573da9986b3f28a2f3bbcb90f44d41231bfafc5d6bfaa430f3a5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 aee895035c3beab713cac70c22164baa6b56823600d5473aff010cd255d2597d
MD5 360f6955175f2dab412ddd809d2d4605
BLAKE2b-256 1c4bfc7d8092ad1987e1e8559d570e5e3759290162b6ec0adc219f7edf49a078

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c700225ecf640f852575f57bfa6fceb5b55ccc1fa1ae73ae7d2851175728d70
MD5 1532509d27e2dd24b1c284d362af667d
BLAKE2b-256 c465611ca6675df11cf787a4dae86ef07a6acb4730f8b7aee19170d8ae6b25ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 36c559c531a649dc41509d8c8e909e9106e32c872dce210836e637b34c49a8fd
MD5 872b17cf4d4f07ea3aa3452735605a44
BLAKE2b-256 6e0b3f7ff5eb28c07b516839844c7412964f38d748dde71231f849ed4875c904

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 10d702ac7273bd4a70304af012471d91ad6033fc09466afac2e6340815f12a7d
MD5 2136201592566c31e6a20aa93425ddc3
BLAKE2b-256 c973b97a5f9eb1c2b98776c5bf0e21ca0532d369b85e66878d7abb53edb8fd34

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4b4b61e81059840e5968a3588bf559cb5251a86e7ee7c1bcf501ba70e62846b
MD5 c3a3b53903ade7d7d1ca0cd4e80826ab
BLAKE2b-256 10b5bdcb1755786297cf41ddc2d58ddd551a0483bb7d7b91c6fd07379429f0d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5bbb791bbe107853f0dbf8491201f3a05845e3b11cbc0bb3b840aa1cd0aa2ce2
MD5 06b0662253c479e5f02cf6734962fb4f
BLAKE2b-256 7206be4f68946e0d013edd5ce9a496848d6122a01647dbb51fa9cf34775ef2b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7b65757c8834200e08ebb65ef45a7c3599d051af65a87556f4c4b18b9f9ccd0
MD5 29453bfc95ce1efe5cc8e095951e730a
BLAKE2b-256 4451e8cbedf6853d0ab6b3952a55620643585ec4d929e6c9118647b9b2a36622

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9b94774d91f34517fbaacf60353214787117f5a0600e52b7ce7185fc495d1ece
MD5 477c10b4862db003c70564dac8d1319b
BLAKE2b-256 abe9871b4fccee77e47d478877608659e5b4dd6bc1b75d541178a9ff26c455b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.28.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 87dbf04b31a7a99a1f13f5a340bfaf2bd0946d3d93fa7396cf0b60e953a33272
MD5 da36ff69b5dce1a55f6e9e989a822a66
BLAKE2b-256 ad096692fcafbb7f22c762ee38638cbc8d359245a2d67a865c9ff0fce68ad5fd

See more details on using hashes here.

Provenance

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