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.28.0.dev3-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.28.0.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.28.0.dev3-cp312-cp312-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp312-cp312-macosx_10_9_universal2.whl (812.7 kB view details)

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

amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.28.0.dev3-cp311-cp311-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp311-cp311-macosx_10_9_universal2.whl (815.6 kB view details)

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

amesa_inference_dev-0.28.0.dev3-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_dev-0.28.0.dev3-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.28.0.dev3-cp310-cp310-macosx_11_0_arm64.whl (408.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-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.28.0.dev3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7da77293c5e5d9d5579d59895c0f7b894068448215fbaf4f55e4e9314b4c0f01
MD5 cf9571cd530a13660a75b6a60518c850
BLAKE2b-256 396dd5333e0fabd1412f74279556e6b54ef5f5680621ff51994d2cf5441aceed

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0f911d920a916d0b411c0fdca12fd5a481f4a1f5f03bb077a5ef9d69da2ed27b
MD5 92ea33b6210c45903bd88ac50f38b775
BLAKE2b-256 02cad66c2e323ae25880ba9aa11a3f1c0d67b215bc3bfca4c25c6af8972948e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-cp312-cp312-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.28.0.dev3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e504e37805fffa1e8767127a19f8c486ac4073051c5171e6cbff77341cebd9e
MD5 753b14b4f7043baa90cbae81743e26b4
BLAKE2b-256 c6e7227b361730cc18eec5fc1f6635870d6bf796894f60b157cf3adf24bd4509

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f3603c2c6591d221f6199362388cb25d36249c4d30d41c84505d4ac5b0ebef17
MD5 e0bed4bf87f53c3ed4d1cd26c1abc03b
BLAKE2b-256 ef22d2862bf8dd241197911d0bf43dfdc2badd66e4f8adeb606a7c59f7338e79

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 989be83d488fde51ff359bb6594f96ce02187e0d244bb5fdaba7cc0aae90ba15
MD5 ba358748e159dc40d6a80fba74d9dd6f
BLAKE2b-256 2d9da68e8ad18cb5c6a4fa1211898a90b84b6efc335d69ca59232b40f146901c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 878973a696c2976899151af4f7555b7c52d4bd5b228d7fbe3c23131ba0476d09
MD5 b571bbfe208b901a668acc407c3d0ec7
BLAKE2b-256 c0b67bb1b8189ab9d33a26b20ba0943b6ddc13f6d09e5deef259e6b3c220647e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e2d8656b35ece04ee02b4b05d26541e9ccafc65d3cf1452807c4842573c42b72
MD5 211cccdecdd8aa51f2831e64753a7cc0
BLAKE2b-256 e06f7f21a64c939e3c16daeed5ab7a1bba7af1a05d5a3ad7c2d342a95848ccaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-cp311-cp311-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.28.0.dev3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c928ba4b614154d9d986e6f5f4cb0eccce689ce7121c7760ac4d51b0934ac5e5
MD5 53a9bf37675d7ab81bdc90123dd6999f
BLAKE2b-256 b3a06e2025d228838daf37ab82d4cdbe59002026fc4d16a168f97a5b77346ed4

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a46596327aee4df12cb9cd93f93176ccdbd1cc64f3498431cdff21fd79304c46
MD5 3fcf09a5296785cad9d43ee3d0dda4bd
BLAKE2b-256 e68e0c20bc4863202bc4124b89318299ca8477a74eef005922b8304e63f08114

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 79ebcb48245083c0e9fb12718b6ea7baccf2aa87a12b14f2bba5f49a94cdab1c
MD5 2febd4f3ff3a4459b6d5affc6b323287
BLAKE2b-256 d0e910fa638edb5db7f2ca84b356c08a412dffacacbf73d63cd37c3737c48d95

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 404295fa3c718e117cc9d55660dcd3f432739e7a61d6787c23ac710d7363063a
MD5 a67126cfdd5aee9d31b0970f7329473c
BLAKE2b-256 c269150957fcac796433868be67921a7bb6e1da74743624006d532f68234b73f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 50e7d8bd0cf9e8c5b844b20abb1038abf398d2bcc3cb9b3f1e4f8f3becd52e40
MD5 2bcc1c676531ef170875a567d68dd3cb
BLAKE2b-256 91495a9657dcc26b61725906b1979e6da879600d3e205abf8d6f36815f8ecdda

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3eab855486041bbc597dd4e07a82bafcd9f93ff58478825d407678bcf522bb4c
MD5 e3b816991731901d45c7a03b951c7d38
BLAKE2b-256 f5467adcfa6f5f31ff96aca20ef32d5c82b3d48f4c6bb7242a526f6d7c8d04ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9231bf9cb8f9af30234692ec5acc7ab105d30b6462c3e3f3a91c12edbf1105c5
MD5 93bcc252f2aab39bdf5af90fbdb2a567
BLAKE2b-256 03854daade1eb58b82b1787ef4d67ada53b0d88c8a6a402fac5659b8a0636bde

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.28.0.dev3-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.28.0.dev3-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7f7341c1427af5e47a027f96a4aa53672832a3aa16c7023cfa0ea93c3c4fa790
MD5 8f0dc434ae61a139ac05263be147f786
BLAKE2b-256 536aad1e948e7dc902d1479f0de919198a0c60518fe3ff9cc65dd33a3f02f4b5

See more details on using hashes here.

Provenance

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