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.31.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.31.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.31.0-cp311-cp311-macosx_11_0_arm64.whl (407.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.31.0-cp311-cp311-macosx_10_9_x86_64.whl (412.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.31.0-cp311-cp311-macosx_10_9_universal2.whl (818.3 kB view details)

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

amesa_inference-0.31.0-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-0.31.0-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.31.0-cp310-cp310-macosx_11_0_arm64.whl (410.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.31.0-cp310-cp310-macosx_10_9_x86_64.whl (416.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.31.0-cp310-cp310-macosx_10_9_universal2.whl (824.0 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 43d6ba4d5b635254103ad56a385b154651ad1a33ec19e5d4e671efc4854a9be5
MD5 d81e94ffc36f4675274bc033b962112e
BLAKE2b-256 385e36e15edb13af4a3df8fe533bd0a365dd71e91088d1267d2ce650a7730f91

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 82f468b6201bbec6e24306e625d6eaf85a28ad1fa1c37072e70ad56a9f6308a4
MD5 6a21535c033725f14ee0b0d62cccde57
BLAKE2b-256 2c2cb56a60a3a0f6bf4d7f3c7c54ab43a586a645554348985cdbf13eb2950c83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c662d3562e9a5fcdb0087c7c3ddc864d57c636c093074afc1fa5ef61719f5e85
MD5 eabd5b2a729ea820ad329ebbc075e874
BLAKE2b-256 7248f34b6538394548a87d95a3a236033662e264ad810ded3146bd2051f3c599

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 720185de1e7b5c39c797c2e2ec7ffdbd50c6562cd5b52a4ed07567ff6d7aa188
MD5 e278395feca98c15b6f238beb5b3a302
BLAKE2b-256 751e69b38ab21f1aca88dabc6cdf39746fc3fe3dbc24009d0b583ec93c718d9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5f84158b4704c0cb762c34839b6253141de6a42f9c869805c536314c9dd52ec8
MD5 97f4e78644b9e7f46c94d2e4f1778bb8
BLAKE2b-256 d71b0f8b24eae8414f6610b77f667583b67e06da357cf61575af8bf217211dba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 913540573fcb405267f2bdb70eeaa130a6af6ef6c10abc377af9a661549e7281
MD5 e463b3cd61f03931520e45bd652d5ff4
BLAKE2b-256 b3baaff7e31fa6e67ccf090942cc760a11ded902e3ef47187ca2ac547421524d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e259fb967707c166966826d29a082e392546ff3a071fe3bdc2b2df065b70e679
MD5 bf38fce784eee826a12ab7da987e35d5
BLAKE2b-256 8c936e44f46d30b0d81a291e78be5aa1747b29b4391415972373754209c12349

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aa68b49a8bc2e1930d90fed966e1ce9e46968e216d8703c83eae20dbe50c473
MD5 a947ac297b5bdb49fba35e8da59594c3
BLAKE2b-256 8c2c84bc97259c55552eb5697eebb101bab1096da34eeb9a28672cf33df37596

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 19a363d3a9d405d10c55b59cd8c94993852a6b0dc8bc3dd5df31a45ea078d392
MD5 70a7dbdee6c9b83fa5fb13630d5c44e7
BLAKE2b-256 49d5877480876f88692304cf034875eb1640eb9880abdfffbbf0dec6396074ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.31.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1282cd6607c25e19a1bd963cbe3bd803ae4cfac2751ca774eb48885c34829620
MD5 507ec58ad89a2205faf10202abb521fe
BLAKE2b-256 7795ea5a6b23255555cac60e33fbd18e28ae9211372f7a54450c3403d066b603

See more details on using hashes here.

Provenance

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