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.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.21.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.21.0.dev1-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.dev1-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.dev1-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.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.21.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.21.0.dev1-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.dev1-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.dev1-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.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.21.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.21.0.dev1-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.dev1-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.dev1-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.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6609213b0a29767be86d2f770c276f96de1e9dba0239d15edeeab493fd9d8d84
MD5 27db3c90c2d0bcec2849c4c972a8641b
BLAKE2b-256 2d9eb56318f0b0e1390ec10033fdcc929213ea044425c13f8ef5a6abcfbf6429

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e4a1e34db73ba2ad041a8e40b99f91cf6592ff5411e3bf2b5df46e3806554626
MD5 0e402c255c36a9b1eb1b236a8539d83f
BLAKE2b-256 ba0674bc33923f14787347cd0e966128fb008b51be5f6b8b2c8f549c359947dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09a016e7bb74d1bc598acdde1047fa1ffb4f3f5a14d19c604c41198ffc69321c
MD5 2835794ec2cb99d0da86c22077e63cef
BLAKE2b-256 b729724d8ed697c59cdf3e73627bba6511614dd9474f2d68125d17ffe9b26c60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 64844248d4ec4803a989cfbf33f34d17015ca0df937433a33e8d7a2a60c638d4
MD5 34d6c610ebabdb3895b80782eb67b2c2
BLAKE2b-256 fa1f97dce43f0418ec84f2d22703831a87faf7e6cd3862349ffa93624c01e329

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 633c413f2cc1191c13180c86fad84f4ef4d74af57412415deda0f86e0ab6ea97
MD5 31a0d49448848f85f414f8a23b404e17
BLAKE2b-256 1ade3ea491a1b381423284e0db39c85938c0e7919b80091aebe311fd9adc024e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 83c8cf806a25cee333398619debd386c7fb8a2dab5e418afb957f479acf7ad90
MD5 a2911ccf5a52ea046c0123afcb0776b5
BLAKE2b-256 09584c3d87408a4ee67d9de5c909a3ad61b100c97336d475767e2316e55f9fc6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 26ba5ab5e13558b16791508a2f377af836ff9c47f0c3e62d29ed48cf62e6f405
MD5 7c7203875853c671558a26b07873f448
BLAKE2b-256 e2599769633d0429b08a04c13e4e2189a667ad861254a705518b3e1c1cafd7d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e8054d0b064bc2b537376d8baaf3d597c852bd6453209ce1416406c4b3aeb42
MD5 f25fcaaed8a4741a473b9206770db6b1
BLAKE2b-256 793fba2e9ed56bdbdb78a38987a824da214a20fb3066c59bd81934b655da8301

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 87b5ba5ad5d766c948df43c205530b711abbd0edcea1e5282abd987215114919
MD5 0034c3148e95002e02cd4cc6511aefb0
BLAKE2b-256 02346cbbebb69aeff2eea6c2cac48688469a4529774285d708b64e9e591f3a2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f3dde03d2d7e8fd090228383a68fe0e7a976f42bd41fc6818bf1865a815ebe4d
MD5 39e985e158e341a7e430cde474110a38
BLAKE2b-256 fc7ee3e637d61fb01c12882577adef1bb59992b361b7a3091c902aabc42d21e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db5bbb2da2805210a14600548f47cc7f58a59b356f55deebb3ad40443f7cde6f
MD5 490953f1d95fad0c22b8b01557f86c52
BLAKE2b-256 7952e8877b3d26cb6cefbaffea8dfe7551a378551faee22b240a663c7ba4347d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 545c651ad0924f5e671fe7546e2682f4920f2cff3127b14d99821b25a6d01836
MD5 4014f987280b2605357b80ba988c18df
BLAKE2b-256 333f4a7ff47b8f133846d11614cf10155ef308ee5ccc942414389dc18c840406

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5446d78ad05b233498122ac60cb5a762bc34f0ffeb4f618b333f1d8fad34a4a0
MD5 aca3f4a448ada74676e79c7a07687ce1
BLAKE2b-256 e0449d3e88655ad64e6394611df1e4ebad5c7a0cf779171c4852d54a7fc543dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 42aa810a98af0ac046a155583f62e242a1f6f0d15df20cda4f6d771262af9286
MD5 42bb331106aa43eeaaeac68f2ac2bdba
BLAKE2b-256 cfde90a03b2d9ee8bd5540aa3a92a4c6c4374f95fb121d58fbbff9f688a08a23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c0e2b2cf295eff10959931cc1081118952d73e3b873142ce6fd6e8afba786357
MD5 8c4e0bd0ff0ccc6ab235b0b83efad976
BLAKE2b-256 af75276399bcede997f51b257227748bf0043ef7621835b16c75023794c137b7

See more details on using hashes here.

Provenance

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