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.30.0.dev1-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.0.dev1-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.0.dev1-cp312-cp312-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev1-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.30.0.dev1-cp312-cp312-macosx_10_9_universal2.whl (812.8 kB view details)

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

amesa_inference_dev-0.30.0.dev1-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.0.dev1-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.0.dev1-cp311-cp311-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev1-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.30.0.dev1-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.30.0.dev1-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.30.0.dev1-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.30.0.dev1-cp310-cp310-macosx_11_0_arm64.whl (408.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev1-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.30.0.dev1-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.30.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b010f790ba8e653c8fb794fc0649afc99e2ffbf791aeccdb534f9e05e90f00f
MD5 f172dd0f67839a0b954e2544650bd050
BLAKE2b-256 0cf5d1e6ab0fb6273e7b85d0b222c73fa746336ac6d319be8987b6406ae96eff

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c70cbc5bf41504274e4676aee304a8b99fdcd1f92367267abbd8e8cd55ed672c
MD5 b7fb11cd784a89993f86ac8883a829b7
BLAKE2b-256 b2b9e7b97cc761cc963897d72474181de1945f878a6aebcdab24619b122d9fc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 886a8fc06e512e141b1749d95a89fc404f4df781dbcf5d1d5c74946ef992ca46
MD5 3e47506b9e41efeced07e9e97e6e3d72
BLAKE2b-256 32b09bdddadbf765ac6be8343b49bb3bb2c23f528151a76ed3b47fb25dc9553f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 707633d18a7f8724097bde77336aafa8951e1fc7f28fa3055806a0d9196a0d46
MD5 cdfeda42d48645eddfcd42e3f4a7fb9c
BLAKE2b-256 82821905a1d73feee8e533da746559c18f68bf01c4e437b374ba61f4633c76b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d35bc85d209bc4d355e41c4f34cd9816daac65cf3a75b906a766ac0b0517fdea
MD5 ca44c3a6e1514228ba71be2c65244e6e
BLAKE2b-256 b3d01de0456702914930f281fac24fa8d47804c80f6ddf49ce57596845b1e4a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64189cc22d19124a1dcb60283dab1ec57be6722a4b7eaa94b7e45992eb59ae9d
MD5 3326be6d454f889b6cbefba596043ceb
BLAKE2b-256 f030b2aa84f942fd70438b87154e04f6b1bdba8e50669686b967f6a8c7132789

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4f6045ecf24ed1cc627b6049508af23a54566f35a5b5ef13bf5bfe8e48e33ffa
MD5 f70bc216f7ef5d7a85f36a690da431bf
BLAKE2b-256 1f1294bbb2509e0b74bd501687812640b8d9fb94fa716c113f956d717da99574

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c8b851bf6ce2e8eac43fa4aa56626f831fce5cdc5b061e5eba7b6d380966c98
MD5 11960b81530b89474fad0d5f8663133d
BLAKE2b-256 64a2ffc3dd9e1dd60611fae504d80c487f6003dd53442b03f9bc1d90287e8adc

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7dfe604bf532dd0a2619adde27c4d94d164605cc55a4afeb2c6ad41ba831ca38
MD5 a06d6f35cef68d5d680273ffece183d9
BLAKE2b-256 2e6367b0df0ebb0e3dddf4f1ede171b621365e72c8cca76656b6aafa7187d2c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 464901bd686cb64eb8283cab43a11bf0382913e5133fcefcaf193634430a5f5b
MD5 c6a13e221b2215b1ee510bf319b715f2
BLAKE2b-256 bc7a93baac5e6940c40e64d22aa07cc41e8109881387be7860589a615d921d00

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7424794ae39c401601ae6a2b9596600da79298b8a14015422cc33114072bee4c
MD5 a57d113dbfac3723f3155e6d77ed1f0c
BLAKE2b-256 e01722c31e90c3a958dcc119c98be901385993e3b03646a50800ae795c750c63

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 49604cf0b73a34356f09cd932e5e2766ca34c176b441c4a5757256684e4d6337
MD5 8ee4a9e3953ea6e005a2e38cfdf636ba
BLAKE2b-256 07eb90f2092cba5182050026f4635dc0f6220bc359ba592aac67bf5921bf8493

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8109beae7cbe488507a88b569d275a8e6e135bf3e45aadc5c977bf972e00df86
MD5 4f836f74a2f1a33b30e91db830365bda
BLAKE2b-256 74a2172c731d1c64c4a1fdf89e306ce1fc3627645e8ade1892e9d9a02ce9c2a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d7d3a2c149e22098a369bc36eb9f1374f300eb1dc4a471dbd584b00476949208
MD5 2f1c3c48a78124ee1b2fbba435ee437d
BLAKE2b-256 26a4d39dc616455bbc931a1be1244e336f60809a8057d16fd7998b91a6d1af13

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev1-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.0.dev1-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 cdde6d90661a5e1fa4cbe5ec9a4d45e78f32bec9b702279e183fb1b0d81f2157
MD5 14698b1d7ad5f1938496cc81d7a44141
BLAKE2b-256 4e86a021cac59e263387e597bc55e9022e66a2e40415c37a4e08f0e4c4534c88

See more details on using hashes here.

Provenance

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