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-0.19.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

amesa_inference-0.19.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference-0.19.7-cp311-cp311-macosx_11_0_arm64.whl (395.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.19.7-cp311-cp311-macosx_10_9_x86_64.whl (400.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.19.7-cp311-cp311-macosx_10_9_universal2.whl (793.3 kB view details)

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

amesa_inference-0.19.7-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-0.19.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference-0.19.7-cp310-cp310-macosx_11_0_arm64.whl (398.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.19.7-cp310-cp310-macosx_10_9_x86_64.whl (404.0 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.19.7-cp310-cp310-macosx_10_9_universal2.whl (799.0 kB view details)

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

File details

Details for the file amesa_inference-0.19.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88459322b74c8a8f72a7d847d4884024afeb8ecaada343def84c8696184719aa
MD5 18b5fbb8a015ace233bb3121c134d0dd
BLAKE2b-256 3885b91d749a3764419e01066e4facf955325e44265746dc4c9c9f3d7367c8e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 160c5d0bc268d61547611d84f1626e2c4b7f1d5efde2c0238d94e807bcca2f3d
MD5 0b92d07947c01cb48eff4af3c78b93b8
BLAKE2b-256 9f07d11ccbf070dcdc1da51ff4a31ff0d0a527956e82fe97ae640d714dfe3523

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0959e68d3ab14cf03857aab78d57f4a9fa256859079aaddfa0fb5e06c583feb
MD5 e13a8cc7609813d58532cbc2ba0132ff
BLAKE2b-256 354f271ef1d03c644bcf05221448fa66e63e317c1289aa9ccdf256d0f4d4b2e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 64582b0d7d4693edc3aff5cf38c87241114a8bcea44a3b9a0e4f4539894e0562
MD5 d402981bc9fb02addcb564682c8646f2
BLAKE2b-256 f4900f09c43db25a445ed5453209ede2a91c8c6b5caee5e9579c414a31d4368e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 14fd9b43aec1847d4f6047b2b4783f9a9f1e43108ae3e8bd3060bb09770ecafa
MD5 379168e3f307ebad6cfd5be462ed7d17
BLAKE2b-256 fa38dbe14afdb601ee79a1206de8fa2c8b326d327516d0abdbeeb6eec066f048

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.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-0.19.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16321d9db80b6c27f48620397b36b82a694ae265cc1cfb9b8a42d256ca382678
MD5 9f4bd44305c13948a3a7ddc5d645ab6d
BLAKE2b-256 2b9bee8a1083ffe01915215d3008b4fa50238bd873c571888bb455db0894cd42

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 98c75db3ba2a71dc4e402d94b4950c63570dc4b2e86474795e3bcf190f4a334b
MD5 0e1330e6fb4ddeafb5812534049724bb
BLAKE2b-256 1a27d9e9fa38f30962be66ff36081b5c32aedf95a0b0ee5bed79c1359be0fa7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e758e59fcd3bd8cb1a5af36618eaae9395bb9e77cf3f1fb24ca4ac450546890
MD5 b975b7e307b8059f96160b6ba03ca3ac
BLAKE2b-256 db1eb5057f70353a7cb374c076663d2609a0dda3ef62c76bcfe0a4883faea66a

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 077d7a55dc4a4e7f2757042aeb41c08188b79becb601eef9d30d0a562fa5b113
MD5 4873107ec9acf20c5c468456186f92e5
BLAKE2b-256 c30c9aab092eb855d83a914ac93e2a87d9663574ff431f1e1df4a152be7da134

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.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-0.19.7-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.19.7-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7f8330d7d330ad322f7447b565e52823a1d139427386e6fefc701a1de9a67132
MD5 99c04b0e749f77cd5a91a960e5b55b38
BLAKE2b-256 59f87768bb4a131407836d4547b2d2a0310c5d519fd043085fb9c62b12dfb531

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.19.7-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.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