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.21.0.dev4-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.21.0.dev4-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.21.0.dev4-cp312-cp312-macosx_11_0_arm64.whl (405.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.21.0.dev4-cp312-cp312-macosx_10_9_x86_64.whl (406.4 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.21.0.dev4-cp312-cp312-macosx_10_9_universal2.whl (809.5 kB view details)

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

amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-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.21.0.dev4-cp311-cp311-macosx_11_0_arm64.whl (405.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.21.0.dev4-cp311-cp311-macosx_10_9_x86_64.whl (409.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.21.0.dev4-cp311-cp311-macosx_10_9_universal2.whl (812.3 kB view details)

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

amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-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.21.0.dev4-cp310-cp310-macosx_11_0_arm64.whl (407.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.21.0.dev4-cp310-cp310-macosx_10_9_x86_64.whl (412.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.21.0.dev4-cp310-cp310-macosx_10_9_universal2.whl (817.5 kB view details)

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

File details

Details for the file amesa_inference_dev-0.21.0.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 99eb3f40c31db512be3d7be851afce862e22440bf1f728dc2aa910ee48614b57
MD5 25700c005450d6c07ba0d2225d5d2e26
BLAKE2b-256 f594b6aab2b58ce836c33925ca95a5ab0d27b611410ecd4f4ffb6b010e41c8a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 62cf35125b91db71719b476d88aa4c4223a0ada9c2ba3bf237ee7bad20326847
MD5 df4e0736dd3cab4d81388ce980332ce2
BLAKE2b-256 926181085f4368963fca254a77de91e6e8a590348779c56ba396336990b0a43e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e156e20634e10f747503c42738a21bc62b52537703b7a7b4215123a8dda42896
MD5 d4cf10e6f5bb82463e0fc47bc031e898
BLAKE2b-256 0dac0ecf0ae9a1e83554fca541fb8f542680724f0657daf9a73a270f8f3305cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3e48db8a0c9613cd9d90a664ae33f0f2b3b464d06d9fc29fd43e31d7dd28701a
MD5 c4a37e41b30626354a25a66f262ff75c
BLAKE2b-256 4cb8a862b09a393dd42d7da41ea5d08262371120c822fdd564ef89a844588cca

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 559eb6f96308b0aa30b22f81b3f4d5c9d1d6bac6f69117a50fd7737379ee52eb
MD5 2e9823124c8c779deb76f11925a44b65
BLAKE2b-256 7c03fa5d9590cac6c82d347d65cca86ddedde86f2fac0d7f5899b1607c7c20cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 944f5eb3dd4eee9331ca562e38f7af48d6369285c414d63b4834d212a6bb887c
MD5 8f8c360f0f21d2876761268620c04de5
BLAKE2b-256 09c03e7a24b45af8cf28478a62ed90c1b5883a5df153cc4c106eac96ea139370

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b74a6040326b4a3ab23a6e7058a4d4e5c348f5f06f055d3b29e763653942eead
MD5 1610662c3b0ef5b87e70f24d9227c00c
BLAKE2b-256 013144cb2a416af5b34cc8e64db7726f20a21816cced38728c06615b0f8ce0d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b3f154ec953b55d2bda69d2d55e39549b60ca01df9fe80994d9e9c7898bbf98
MD5 5a646c0df309764b895737edb13a23e4
BLAKE2b-256 c67fd07f0d69e89badb8190ad8589b5bfe0bf18e91333fac447939a1c8bc6cd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a213a636e40e10ed2cc5f0432e21b59bd78e9975b42cea57c4f5028c0974a93f
MD5 ed6bcef50246cbdffc6777230cada842
BLAKE2b-256 263f62dc914b4bcff2772d178d310a49f74aee3e7ef25f699cc2de14a86ba957

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f40465359d08940e1e54919156859715e662303a3f31d3b31968cc8d4924d7a9
MD5 c8edeb16db1b390cda392549783139b3
BLAKE2b-256 23edc8de4c49a87a475e017374cb175a4f87905ed243fd7bcca5b3b83aa73d6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fd2b6914379dc731deb72ccf627382ed113c2120fe760e3548667f521f14217
MD5 f1996f0b387827ba3542ac4fba5e2cb8
BLAKE2b-256 ec3c3facdc9d1a470586148b850d4d08f602636ee75c3b6033aec1e73b4f3598

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c35c647713626ebf569686c1d9ee60947c6a91e3be326e401fe9666c3ca2a8e8
MD5 fab8a67b90a754f941de8d5502ba0370
BLAKE2b-256 1100253522bda15d8ad594865effedec4eb48974f8f5d7f5a45d3a87d815cb4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d914b9b08b3c27d16db37963a81bed1748656a64f813472332d4fd987ef0f197
MD5 75713fb233d123bc693ae7596db9ac8f
BLAKE2b-256 10750bb653ac6e80e9be2631c2f73e80404026bcb18c8167f6b9fe7fad8a9cdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 81dc685862832d415102aabb6812ed19833dde3bb1b426fa6995545e90130e12
MD5 e9fea9e7f1811ed484214653a38518df
BLAKE2b-256 db019396a16d5e5f52b67bf90a4037ca6477819f0dacc08498b720ef74a85f99

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.21.0.dev4-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.21.0.dev4-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev4-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0449b40632a818d8f9c61bd6072bba12817b26c886a8e9e7b7a844964fd240c4
MD5 af7b25e887d6942fdae57ece75c3a8b7
BLAKE2b-256 8dca975f054a54a348e90ed7d0cbaaaaa3c7a323a06357ccb4155a8284330484

See more details on using hashes here.

Provenance

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