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


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.33.2-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.33.2-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.33.2-cp311-cp311-macosx_11_0_arm64.whl (411.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.33.2-cp311-cp311-macosx_10_9_x86_64.whl (417.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.33.2-cp311-cp311-macosx_10_9_universal2.whl (826.6 kB view details)

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

amesa_inference-0.33.2-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.33.2-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.33.2-cp310-cp310-macosx_11_0_arm64.whl (418.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.33.2-cp310-cp310-macosx_10_9_x86_64.whl (419.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.33.2-cp310-cp310-macosx_10_9_universal2.whl (836.0 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aaecc1753491b6c5750422d96a63f7fc1ec5647cc7c8b0b29c410d548e3308aa
MD5 8f3891e652faab564a36eb66e72bb4f5
BLAKE2b-256 f8444185d84b0eec708990b3d79c94e5ca7b9e4299923f5041d59736bdfe89fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6038e7f6e0a1d6b39c46639d41e5479cce8492122085ebd0124495393ce0fd11
MD5 87a36e1fa125942965d4e4c245e902ad
BLAKE2b-256 e0f086938480ae7ff70b88801ea9268823fdead250f55e44d21a1810f13195ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ced74f4a46e87a2f521d186577b515b171d468f3a433c159b2e3fb7aabb7832a
MD5 da0a139008eabe18ab30f3c711bcf2d9
BLAKE2b-256 5b31735bc0a817e04097b0968c55c745173ed50ab2ab280b1947f0200dc60ce2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e05c13cebe78b75caac76d0596d579b89a845ee1df8a78e4c3281f4649fbb00f
MD5 3cc0716a8c0bdd4167e967db35fa6149
BLAKE2b-256 7a3b1803a36ca06b8a248c0962df33ebd270a8a2f0c3a6c13ed40312814c1fc0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5f733762dc2fe77988367ece00134f52f87c8e75d556daa3e707e5eac79ae87c
MD5 efe6bcf7ecd81b76a20ca9016697dead
BLAKE2b-256 235f12aef988b0fd709bf384421335ddbab8574712d49c3c9101587450a44361

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13ed70cdd416908fff7b8f93c6ee90dfc9a3927a9281589d2f43489b0b2d537a
MD5 0268697a8cb6886521f236cc60d8e3c2
BLAKE2b-256 90f38e452d80d21604880e002f61aa469785e976ef05620a03051716cb97b444

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3ff25d0428c1c8c7e9bbb4b110302925ee553e4d6581cd71a1a5d68f2b143db0
MD5 9083c1b0c6f18f9f1c664179e7f7ef71
BLAKE2b-256 04e410245216c13d90424525f9663cf95fb5a725d7f4427f6f9e268243b2e220

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b695299fe8d0ddccc74e4c421f944b58c5653386c27b3f3568517daabebf225
MD5 8bdac3aa740ed73039209c0328bb1382
BLAKE2b-256 8a71421a3e2be5cc227acf3205eb90ac2c97f12059ea9cfdc4dedc030ffa5a8f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a8e86d9aacad0058ff839ebc144e09a24753ca45ef8d71a3e95e0efc725ddfb4
MD5 8168319cbd734c5b7e52598f75e02705
BLAKE2b-256 0e876637a4bf2308ee9b3a481746a54904140713acdced98da40e0fcd94187e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.33.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a02fdec921cdb70401482dcc617df0681220e3ed3aefe4f7748687f78fa0c1b6
MD5 a0ea98c585c46cc31f143bbabe78ab0b
BLAKE2b-256 56c558347ea0faac8fe9a31b2076ecb93286da56db4d86aee4717d48e3715c14

See more details on using hashes here.

Provenance

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