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.20.7.dev1-cp312-cp312-macosx_10_9_universal2.whl (788.4 kB view details)

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

amesa_inference_dev-0.20.7.dev1-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_dev-0.20.7.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.20.7.dev1-cp311-cp311-macosx_11_0_arm64.whl (395.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.20.7.dev1-cp311-cp311-macosx_10_9_x86_64.whl (401.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.20.7.dev1-cp311-cp311-macosx_10_9_universal2.whl (793.4 kB view details)

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

amesa_inference_dev-0.20.7.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.20.7.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.20.7.dev1-cp310-cp310-macosx_11_0_arm64.whl (398.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.20.7.dev1-cp310-cp310-macosx_10_9_x86_64.whl (404.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.20.7.dev1-cp310-cp310-macosx_10_9_universal2.whl (799.1 kB view details)

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

File details

Details for the file amesa_inference_dev-0.20.7.dev1-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 de5b8bb9459e5a428ebb3c06235f771d4d92fc8d58f41de1510c7b65f891f321
MD5 05e1f33d9b09db5d0c35fcc2731015ea
BLAKE2b-256 07844608ce8e55bc44fb1936ca31bffdf87da4beb13b3ae5542aa7cc4563fcb4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 871b0e966bb5ad12eee242ec509a88db6bf60e20c5e749d548060614f10dfb26
MD5 0784fdccb49de31b6c6d1eddf7ab68ae
BLAKE2b-256 8b0a8490353317578409da8941aad247a7919393ae76001f204cc389ac8e6594

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2abca7f84a222c42ad8d3fa803e49eb227859b48e974d13e44cfe249bd2d7de7
MD5 c66f7fa616dcf9f95a6a631a262f8074
BLAKE2b-256 4290e9a61bf99f4af5091cb215aafbb3fa4240fbc720c3ac41f1a80439e3e2bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdd7a50147da3c50e56c64ee8d8128ea0eacd2cefe0da6046570cb0863fe6026
MD5 d567b08fca98aae358583d12073cae39
BLAKE2b-256 3340667e7f865216a4188aad300ddf561410d316eb10fb3f5093c44f1fb2e048

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f9825cb9781e89d0a8fed4f1f4cae82c8ffcb33f77994d671cebebcac98acbca
MD5 0c534af8c6f8770aa46fb24d75e7c7d6
BLAKE2b-256 287530c5df7f78e0559cebe16336fcbfc6f1773ccf3d459aed7ed10bac2ef66a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f2cfaf8129022f1ddd1cdefba5378a4001d6df628d83a4f163b9b14d379d9fd5
MD5 1e1a57ebb49f21fccab254d326ecdc29
BLAKE2b-256 8cd4ccb4d0ca1ee6cd5446ce2e6eecadcf8b6fbe9b1dc0819b8906737af3ca7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d381bf57e6caf6be37d8e919315fb665f9b3691557d6fc808f474ae2aca14c1f
MD5 c2a6461481c55b1a2dd31ab49365204f
BLAKE2b-256 6ca4650da0d4cf43935c27ad34a0eaa681b4f5e385d746b3779c8e8b16a540b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1bc91bb998bc8a3bd188b9f7f19ba87449c1097c26697dc14dc57d4833e9cff7
MD5 4ad21dc6b5fdbafadead4bd6a956ca93
BLAKE2b-256 4d580a2902c907d0bfb4d4eea971fcac56e749a57b57baae945032c2bf824ad0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efa81f1b5eaacd183d422faadb239104cb1aed815e84906f1d7493088a0b0f46
MD5 7c7aff13a186f4b5ebb3c34e7a0cee52
BLAKE2b-256 7c7e762339b94df13cede69ac20cbca3f2ccad59a3dade359512734bc518e4ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41207e8874808fe0215a57c07ff1667558348fa4769065406048fb68ac1a36e9
MD5 5ff62ba063bad7025915340dbfe18ebf
BLAKE2b-256 20856cbfec28c1af614903611b4a09339413ddaaff052beba4f1707ba16d3159

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1f9286f248716f6513a328014f6b13a077db47aed26872a9e3d6fda54f84e511
MD5 9a91a69fc9bd19c476ebc798dfce661d
BLAKE2b-256 1363db8faa265206405cf5129d5d07c819139638868858293a186ff2fe3b7a02

See more details on using hashes here.

Provenance

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