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.27.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.27.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.27.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.27.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.27.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.27.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.27.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.27.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.27.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.27.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.27.0.dev1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 951ffeaea49cf13e2cb90669bb0a455a3dec5dc1e2c0f6dd80b50d2620641a5b
MD5 7f62e3bc6c1ff2852aba4602c2271843
BLAKE2b-256 bda12d6649e9200927f5c2716e928855291d23b39bcf4cb3385e5912aacd71fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f3484995b8f51e88156f45d741fb8668549104b62d5d879856bee2fe1f7394a8
MD5 a6cda202a9a48323f22a232d709a721c
BLAKE2b-256 53cef3352ffc7f584e0df6c5c51aa84576e300d059ecc0b1cfa25d777bf04ea5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 844a04af57f9d6769463cf3c4925c765ac4c15a245ff3380a35e9a69e8273980
MD5 7e31c3021ecf8909393cb2c571d3fee8
BLAKE2b-256 bab2fd3b2b6c70670d389c538f033b96984243abe9728d10d04bf06eabfeb2b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d67a0544c2aa012a2329a4b2bb0cbb6f0518659475dc20a5e12b45ccff8f9421
MD5 86b5aed761f164909c7b53002a6c8350
BLAKE2b-256 6e1fe30a69cd596589b336b5472cbf58fb034781794c88e1aaee7643d29d36ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ce49e76cedb65f7fbd0ed09d908ee8cf4ebe663911f898242c999d834baf9fd5
MD5 ce30cdac63b6f3231b45d205c53490d7
BLAKE2b-256 ff16aa8e93f03d15b7adff0bda3a7cea7b593d8e279add1862a144352ac40f6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 777b7ff33f4da326d60009713e840eb4049759d816b56da7110475748cb1c1ab
MD5 502212e9c2c689e570086619523ba1f9
BLAKE2b-256 9f8b4501e8ed3e856173849655d21f6f4dc7bb64635df453e1d88d5e7f7e6ec7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57d13c2c830357a81900daf918ccc771045a41d9ac07af4910deb2dd07e72325
MD5 d4a3353f689d05f6fb7ef29b8dd8456f
BLAKE2b-256 56ed5ab83dad5b569b48351154c9dc6d1ac8e70b3d20c7adb88dea91faeefeaf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76654240828707be5e05be5b618caa932c7784d9a8e8d839aaf3b256af396aa4
MD5 34c301890d4b0064bf17cee82931304e
BLAKE2b-256 8f5f059898b04fba48f727d1d7336b537efa6e8ddaa32b3dd31e850c66857baa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 99dce552114b245f1e113d544c6c83e2360e95cb505b2f33fe89200d89fdb538
MD5 340c2dcc86db0386a07a05672c7ab97d
BLAKE2b-256 3a109fc69bfc7452dd8472217eab71af7407e0223f22adb91d78f67a275ccbe2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.27.0.dev1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1125661c49bba5cf06bd97339e618afab7947efa04dda4e5c2bd6de26f9725cd
MD5 9f2b33e5ff74672d7ecb74803aba48ad
BLAKE2b-256 1c804858ac7af3b027eb54a84f963d842e0902dcce19c60370f928151770e739

See more details on using hashes here.

Provenance

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