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 (agents, 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 agents, 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 agent 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. ONNXAgentProcessor: Processes agents 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


Release history Release notifications | RSS feed

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.33.0.dev10-cp311-cp311-macosx_10_9_x86_64.whl (413.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.33.0.dev10-cp311-cp311-macosx_10_9_universal2.whl (818.5 kB view details)

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

amesa_inference_dev-0.33.0.dev10-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_dev-0.33.0.dev10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.33.0.dev10-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.33.0.dev10-cp310-cp310-macosx_10_9_x86_64.whl (416.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.33.0.dev10-cp310-cp310-macosx_10_9_universal2.whl (824.2 kB view details)

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

File details

Details for the file amesa_inference_dev-0.33.0.dev10-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev10-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2daac4ea059076c1cb61868de52cf604dd7e5625c10463ef32b4ab7c6bef9ae4
MD5 749444da81dc15456a98c0587b7db67d
BLAKE2b-256 d3b9292825cc181d7e61c78c1ffeedb5fb2c718ffc4393644a7d48705ea11087

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev10-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.33.0.dev10-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev10-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9824755117262d760409708b1fb60a577f619006173a0f8443652a1298408ff5
MD5 aec823fc6bb2862e79a3d9f4734e2314
BLAKE2b-256 f0163f1aea50d641ef08c6f22459e32ae6f8e33bee2d8fc2faa1d36c307f3ea6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev10-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.33.0.dev10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d0dc8f37cb3362490a2676353aeb9e10ace06dc88823cf9ad85d2772d88568a
MD5 24601a4718cd76c6835790dcce38a193
BLAKE2b-256 3691d8ef7ec88a7b0c939ce3c4340b6ff0ccd80b0a42878ed86bb42fd06495ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev10-cp310-cp310-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.33.0.dev10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e1168fb45a9fbebefaf400278ddaf6a9d58a86559e64544d3cd282b1851d8fa7
MD5 0ba4da87b0fede31d852275a83fcf8b1
BLAKE2b-256 d9ce8d566684addcf0eff6d2a15ef7531341dc69927085f798acd4e8b52178b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev10-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.33.0.dev10-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac20ed289a926bc93739e2758b55278a9ca8ff27241e9f5d5eb6eb2d20de5037
MD5 ae309576d98d2ea6155de95c770e8897
BLAKE2b-256 01b1b057116625b930ad65c99d3ce5a875915de890b2e6ecb539530f6c266bf1

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev10-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.33.0.dev10-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev10-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 91f8a7655e24ddff3b2b8b06295e5650e68d5b2e50e1e0c5b6e047bc892dddae
MD5 6baab0243d8e29700a721f371dcb1db0
BLAKE2b-256 2f80d5764cd7f2d0bc4ec1e55ccc8686a0893bc88a95d34fb68fc0a058ad38b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev10-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.33.0.dev10-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev10-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a60fcf4a100a3e6ed09a7bc1d394504540fe63d3d6ea18536f309969838a919b
MD5 cd2a4ca83170c3c57b90504b402116f8
BLAKE2b-256 defd6e03d6de048057902f32ce29a0c24acb35a0c30b97c945313479ad3a567d

See more details on using hashes here.

Provenance

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