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

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.24.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.24.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.24.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.24.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.24.0-cp310-cp310-macosx_11_0_arm64.whl (408.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.24.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.24.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.24.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6640fefb06e846bac3be26f6968466f6416922802e41e48a0742799d101daa5b
MD5 30e6c3a94dd37eb5bdbebc40238e1207
BLAKE2b-256 89099b10d5a2ef28e765f3c35522c261377ee6c152c5eab5b85244fd5bb89e0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a790b3953973dc2b69d55fc745ff44f147edf19627b52cef9af550bf5fd60893
MD5 4f7201ae5ce2ad9b25d1a2c76720369f
BLAKE2b-256 963eedb6b08ad436dbe56c611c6693635a1082a14253815c12aff0749b08658b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85fe495909ba895dc90d793b932ae557b17857a9a412fa41a8083ffc17a13be4
MD5 00940234a02e0fcce8757ff3ccd3897c
BLAKE2b-256 697ab1037234eda2d8117d40c79e6a6857e28da6fb2b71775625db1b610a127e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 aa846096092ce78eb2b34e841c29acc052cbe55fb68e024572a01d91ab1b7b33
MD5 65e01c1b124efea53dee785eb411b857
BLAKE2b-256 e6f0b5cf592336cb8ce3f862ad8ca11ae8814f69db80b57946f3a53445738aab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 667b335dac249f4de504af5183c0169038f93fe66bc36bedfe0ecab320f05933
MD5 46571b4a009ffed55c4d465a21b09f7d
BLAKE2b-256 2043d52131a9df4f918f6bfc4f0eb684bc8384b202f2f1339dc61a808b47ba82

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba23532d6bbed14c93db1f1ac97e08d74691fe222b55f8ed709eea0c3a2f7591
MD5 35370ddbcbe3ddf468f94a2e7dd35083
BLAKE2b-256 fc19e8d024cd3d9b7c3207b6e240ae60e159d0264a9b90b143f3bb3cb46b468c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 555e037114fed0adb23723317067167eeac48f00613c3a154420836b7f71c845
MD5 10f9ef53ea6c9a75c08d384602b006e7
BLAKE2b-256 c4d5c841931be37324a0f875f64260e5a8089c29bae6643140d7e089af31d8fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 013018af55853d09f30199c6e03a4b2d3bf5473c18a287d82c69d5934caaa0d1
MD5 731e60de85e314ab4972453a999cf509
BLAKE2b-256 67b0bb59f362e1c2320273f0d7b6002639d90e87e1607945de10c7484e4a5ff6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 79e0505f79e47189a0d8ca37fef7ddf4563cfd7ff3206b62ec30f2126f66dc34
MD5 35b99566b42be9f5dcb28d67f3335652
BLAKE2b-256 292dd91ac301ec22392b11a97cac496c4863af3110e8c47dcc2b421645f2f683

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.24.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ad1c2afe7fb062678cb610a1da1705b2d949c8fa4094b0c7dc23356c8523e874
MD5 b3c02d1d7f8643f7a9382581521ebe33
BLAKE2b-256 8f56bcb7dc25c283ec2c7779d3230e5261e880ef0860f2e89ff349f49d79b036

See more details on using hashes here.

Provenance

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