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.29.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.29.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.29.1-cp311-cp311-macosx_11_0_arm64.whl (406.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.29.1-cp311-cp311-macosx_10_9_x86_64.whl (411.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.29.1-cp311-cp311-macosx_10_9_universal2.whl (816.4 kB view details)

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

amesa_inference-0.29.1-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.29.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.29.1-cp310-cp310-macosx_11_0_arm64.whl (409.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.29.1-cp310-cp310-macosx_10_9_x86_64.whl (414.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.29.1-cp310-cp310-macosx_10_9_universal2.whl (821.7 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 250f9aab65e05a87bf83b186050c9fe884428f9bc01eb03d0e5599a17f335e07
MD5 7bf50957c3379944a5344b281c53ca40
BLAKE2b-256 4f356e8c2da8206c528311025f96e6ecdbc028ccb84f1f06018fd720d652e956

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0c69d4c3d37ccc5389b98c4d460e594b784982080fa71cabd97b1e03d200df74
MD5 16363d7bd80644f3a6a7d84947b0a157
BLAKE2b-256 44f9ed5dded0ab0b8f9a3a7a25dc4b2166a050be29e5115384dbe127ce82b183

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b49e58a53bf05832347cf7ee44051153d0260023682abaf2abf1f05518eb7d37
MD5 54ad8dd4e7dc840f3b17360e363bd494
BLAKE2b-256 4d860fc45a3e73f99f6782eedc6a5d3429c1c7c9984df5a64972b3d3d366a00b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 27a14f31c1d64fed8e865ebaaa1eedb99ef4bda6ee9e91640958471ca8462963
MD5 1ffe77acae16a0fb03a77442db7e171f
BLAKE2b-256 d751ddf51e9248a8ab57b80d78f7d8256824b36ce4dcdc38825460dd89375265

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bbe947b972b64c61bef208a1a269ee5f24de856c66e2398ae8ace8c154668413
MD5 641eea31eb30894782464d2ef85d6cb4
BLAKE2b-256 16e1d652e8310c9a5c166fa753e0b04c69cce07137d8aa34b2f3471f0f2a7434

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9120a3173c434fe27aff51dbc04c74d0ec793a026d778fd17688324011957c77
MD5 8336bb9a1c6e5b4907d127069c8b640e
BLAKE2b-256 a83b738b823531703994349975ec44298f80a5d16f3b19c823d231c2e8b7ceff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5af21484aa66d714e93ab876a49d0c57c8bfc76a1f3253801b337e216889f87e
MD5 359f32997a2ad49c941e0d023a426f2e
BLAKE2b-256 fea7cb1f72d0ae7f24b7bd2d6a6153769336dea2a1256e7604ab867c23f0ad4c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e42c02a4c3a61543429697c8e4e61c9ac792f40d1668ed68400ae9959cbf664
MD5 d8722a4bfdc8d1ae251b330042db6d01
BLAKE2b-256 fe22500cc390f5855db3b8a7118d25ec46ceb68b203df2ae302086ea5aa1e448

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0f2408f1ffe1c9652b3912a3d8e15e54d1040ac4d6aa1f31ebe5f5026f8102db
MD5 7f8c9c758a89b0f6bb431696ad907371
BLAKE2b-256 58b23ef29e4de6d4909df0bae4c6b6b8dc0b87de915515073fef9b14e1ed02ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ff731adc92769fcf91e7a0bbb3b51aa246f21378e8de8457ca2117e51f2c329e
MD5 0012fcace97173990cd6fd19d4f85142
BLAKE2b-256 a36b2b57b27ea71b80a0e489c06b36b3c3b25858e3cde84b6f5bc69426afe145

See more details on using hashes here.

Provenance

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