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_dev-0.26.0.dev1-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.26.0.dev1-cp312-cp312-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.26.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl (408.1 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.26.0.dev1-cp312-cp312-macosx_10_9_universal2.whl (812.8 kB view details)

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

amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp311-cp311-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.26.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl (411.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.26.0.dev1-cp311-cp311-macosx_10_9_universal2.whl (815.7 kB view details)

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

amesa_inference_dev-0.26.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.26.0.dev1-cp310-cp310-macosx_11_0_arm64.whl (408.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.26.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl (414.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.26.0.dev1-cp310-cp310-macosx_10_9_universal2.whl (821.0 kB view details)

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

File details

Details for the file amesa_inference_dev-0.26.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8cc9f6185b0f2bdada54d15f5785dee078bb1e6cb7ae3c95ec05b906a3bfc51c
MD5 7d4b671aa4bdf1d8cc504c5394af1960
BLAKE2b-256 a71e18932d93c483c0121190edda1b0fd03c6bd3c7c6a2bbc24a343079df6ee5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f66d7d4df564fab065c645f81ce3887e5acec132994c1921a366cc615976a9ce
MD5 8bcfb811c0100cb2a7ff33d9548e4c77
BLAKE2b-256 f0a43129892aa4569ef1327ac2f74566be2750bffd6ba91fcd17d2193fc469ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7c463f8429ab59123db4485e2441355b064b8002509a2258ff5abe3517437180
MD5 36a0214c2135021386d074ca2c363781
BLAKE2b-256 afed34fa045a335b0b1834e679b2dea5b2eb83efe8ebf4791cc7694659bba41f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 561b33fe209c9563cff4faa9847ce6808878bd38ac8de5c772be13f3eeda6d2c
MD5 76eaa41c190d400dfd585d41d4729e5b
BLAKE2b-256 ff56193847e632db7b5bb3aa98caac00ba926c4c37d4ae9baf36bc6c04175580

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8bfb29417179fe686bee81b804349b403456c5b51651f9562b65f6b46b4d262
MD5 afb135453e9a4909a07e2a6eaf659cc7
BLAKE2b-256 1fbf8597631942765ca40113c7f0b190fd29f5c292d207623601aa1d53f93e24

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcd3789eb6f4a66e4560c425b6455ce72a27eacd22bcb8c50a8372cebdc5ac23
MD5 0c3154309ffbc66d7978b32642fb61e3
BLAKE2b-256 a8c49716dc9931d1a0064c72dd52e0024f07094943eeaf3858a858d9d93e540e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9b3aa698068c9110758cd23703a73ead7207e24196ddcdcdd7b63587ae4d94e6
MD5 ad8e042fe3c23eb8dbf1d8c4428123c3
BLAKE2b-256 ce451536b6cecce4a58dc81b0589d75d6725adf35f91913dc3b946000db667f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5b49c3034cc3e585aa88b9dbf15ce2942d1e1d3634e681e4b0f57f32a6c5db78
MD5 16af05a8d829a384caa57666ce63dae1
BLAKE2b-256 8bb92715fc9ccf55f4e62b9309bd05ebab4ae5a7b51086d1117a5703382e5a90

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e75aaccbc64e620e36aa8eb38fb582fa021f659e25e9182313c0d184a9fef6f9
MD5 7f21f872a6b8662e313f33ce5871b784
BLAKE2b-256 7425291429791706f536ef308004ba4c13a55f8abbb3ac58c4542e096343af83

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bf9102614f1691b3a21e86b48b538cdfcd67596b54f80ca679361734d93bc0c
MD5 09dae177f49ac21dfabfc0107c12644c
BLAKE2b-256 92160dbba3df053302384bbd52757ba522d7b7bbaa89c6b94c056f040658449f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5c5b018a818ca2e484c5c4bdd1e47a821e6774f703b7d357e0325855c1dabb6b
MD5 f56c9c52c41598705e5bcdfbde8d5d1e
BLAKE2b-256 fcfa74bb6693acfc3a14efef7155e8c21c8e401c9601676f2c376f0e935afc53

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.26.0.dev1-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.26.0.dev1-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.26.0.dev1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c8628ef4bdd56018cec91fcfa541b7b5f914e555d5ce49d48e8882e418771da8
MD5 bf71cd5e4b41d5fffee9570502beb84b
BLAKE2b-256 0ad66424d9e8606c2c9ca96407471017c6f2fb9c77eec694aa04e1bfcb3387bc

See more details on using hashes here.

Provenance

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