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


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.30.1.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.30.1.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.30.1.dev3-cp312-cp312-macosx_11_0_arm64.whl (408.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.30.1.dev3-cp312-cp312-macosx_10_9_x86_64.whl (409.9 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.30.1.dev3-cp312-cp312-macosx_10_9_universal2.whl (815.7 kB view details)

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

amesa_inference_dev-0.30.1.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.30.1.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.30.1.dev3-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.30.1.dev3-cp311-cp311-macosx_10_9_x86_64.whl (413.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.30.1.dev3-cp311-cp311-macosx_10_9_universal2.whl (818.4 kB view details)

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

amesa_inference_dev-0.30.1.dev3-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.30.1.dev3-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.30.1.dev3-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.30.1.dev3-cp310-cp310-macosx_10_9_x86_64.whl (416.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.30.1.dev3-cp310-cp310-macosx_10_9_universal2.whl (824.1 kB view details)

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

File details

Details for the file amesa_inference_dev-0.30.1.dev3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c3807aecbd6bbaeecf0cb08c5d653fa85470bc76330136b35b3d2377c7c68d26
MD5 0b7e2a843d2cc0c6c7b1516354f230cf
BLAKE2b-256 a6ab11851fe8227a6d75b35f3110a43d234de3351b9547facc60cd5f27854a95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4074a860f1062310512ea8b8e399e194fa238eac63065cdb46ced33f67033bf5
MD5 0f212dc85ea05b1533b9580ac1c2f6c3
BLAKE2b-256 de42170d8056a7b39490c87e7a66afede5ced331d601d15b3a4c0a08cefbb47c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f946a7a71c3120966489663a5713582ce8f58c0b83fbfaa4de88cede9adfc496
MD5 827bf66046da447718d6bde71ecaaee5
BLAKE2b-256 40d3a89488a28b0bd2fd26367719b1843019b15ed6ca66db56d1b5a32136c87b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f8049c05ab0e1cb1b33c79bee60f5a163a84d7c6169abb6a68bffd0ee4af381f
MD5 2f17fb14187e92edcc782161e977ca6f
BLAKE2b-256 c5844cf54fa6bd9473f3de2eaaa262c8ef7af29c7cb35b65bb07234ebe2f2912

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f72e92f80af98af728f8d1758151ee57aad0ba8fddf5c38f5cec7e6579e2b688
MD5 1e931913cfeb5c45aa406729cfb85a1f
BLAKE2b-256 1267117490db75255cebbd384f428a9703c508294e6b037b6da72d2bf3d77020

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b060681b9de741bde2172e3c79b52f51bd33c5df49be9f3147db28d18a8ba0ad
MD5 1ed694cb2738f18d4defa4b9ec9be32f
BLAKE2b-256 ef4d777820affa64366cd385ef74309a96f01aad7330183b1cd92767589a32cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 84debeb7fbcc92f8ba9cc634ea8f0d030cfa7704b469b6364fd703a631199153
MD5 87ca55fafa7be8f955ed3b2161eabafb
BLAKE2b-256 e8867bb1ca3ae21a23abb32dde8afc4d51af903fd60f72cc6d3a117b04789cb6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 915fbc8c07e2eccced9a1c02cfeb654033e6d08a61a780d144e7eb08f83781b8
MD5 227847f1485b8110f86296bf47ee6c44
BLAKE2b-256 967484365d2466bc98f69464990752677bbf9660afd6e4fe2c7f988384bc4b38

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 83e0381a24a51b42bf779a7162913a1b18a38b3e05332624d4d38e39f921bbd4
MD5 8d4581e4f8746d6f6ac1d18fe9b50d52
BLAKE2b-256 c531b6a2116dea67aebda308df5401dc34634026e9fc2f41add09393668be91b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 32d403f0d550ac7a2fca2fe44f9740e8db6c0148feb7347c0d9e84bef48cbfaf
MD5 a0db1b04193146eaeb5da1597e62022d
BLAKE2b-256 9c3cd9027ff05c9e2606a1ac1e91eceb8eb0577421291a75488e0caaf953d459

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1bc9c85d7daab36ea00320a574f60ac3d04e9639f7413bfa4e0b9774bb8d3600
MD5 6ba948a654dde1b9659884bd12673bff
BLAKE2b-256 09dd81a3df7902795b328a8f42e39e1b4b3cd4596a4f547fef60d29df8dd888b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ab0fc1a5da020baf151aac6dce8608afb293dd311a6d7e9d601c34a3aa47848
MD5 5b30252691f324b1ad2380663846721e
BLAKE2b-256 3ddf8a5cab299736fb423330b23abf05a461c3540a04b98b6e41ce225badc29b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b93f705ee1caaa009caf6dad3f97f666d97107daf165030a40539fead1c1822
MD5 9ba7a6d951e4d3ed3d520c3d541ec575
BLAKE2b-256 c07119346eab926c4d814b3990d7156aa5687850813f699de6a1fdb3b5e45569

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 08e965ff2218e4a251218effcbd1f208598de820c05d06686ec1adf4476a6e6b
MD5 4d4850ab362ae34793b664c543d82090
BLAKE2b-256 a178601c9bd594eb156f0dd77f355128ad29912dd40ba2ad248aeb7bd4686e1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.1.dev3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6fde6f65a363432390f7e8d09b0e0deb3d9041bbb43994942da3eaa985442547
MD5 a437faf0450bc5b51d581578f181716a
BLAKE2b-256 ec07f03d1f576fb404c25eea400b182d8a580fa6c94511bf0c05e46216d89cef

See more details on using hashes here.

Provenance

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