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.dev7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.20.7.dev7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.20.7.dev7-cp312-cp312-macosx_11_0_arm64.whl (394.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.20.7.dev7-cp312-cp312-macosx_10_9_x86_64.whl (396.9 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.20.7.dev7-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.dev7-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.dev7-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.dev7-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.dev7-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.dev7-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.dev7-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.dev7-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.dev7-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.dev7-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.dev7-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.dev7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d250e3d4cafc8fbf592eae6705e45a782d7b29eeadc1a2720896956304f14fde
MD5 969be61237c30bf3353824a04e29dfd4
BLAKE2b-256 60c41e6b4f92eaefe25ec95f274e9ff1d97cd5903d2115237e8487d9c2e4786f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8995067deda6161075e8ec47ea002319b240872dd5b8fed01f334e90e5162a5f
MD5 239a31f82192e296155b4bc195ec333d
BLAKE2b-256 b331016e2e762a5ff7b09f9079f1f3b8444a80f9cf03f9d4d4ec3b9bdb8c0944

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e095d58dcdf865e467faba87e5544035efe50eaaee6045660d2f4065b47b618
MD5 7cf94732145eb410553dcf7190e7263b
BLAKE2b-256 d6e52ae6bf9dd1937bb556beee2c1a06217035ab9777b5321d08462f3d543939

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a65ba7397caf4f845bb7a78b6960f498c47ef71c4770c78441f2c9fc827a7f41
MD5 889e42d1ac1e73ed99deac3d12780c9f
BLAKE2b-256 82fbf77bfe9a93d1af52552bb10aa0cf3ec5c569b9c0c23fba88986c73d3b163

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e27df2deed9af89a17239fd1b944f934bb59188f821d6c9b25a87dc9e1d725c2
MD5 f3b673a9465433511c39d23ea26d29c6
BLAKE2b-256 f7b8ec06037e50f63dd76e8d269fca5fb0d95a784d5d7598185907c305fd3aa2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2d60b84c94db34e5b0f32c1b188d230894fca54918f281d4af33c21284387c7f
MD5 948b543d16d07cd6ff58ce3f477ab64f
BLAKE2b-256 d8af7432f145d261a99c58f18a336afd5e78fbbd7524cfa952c0bf58fefde425

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ca770648686541178fd73cb986be3fe1cb8cd97cbf76d0f6becd4a5449d3dddd
MD5 aa2f6f1040bf2d5d0ff6d0e31f406146
BLAKE2b-256 192defbc01edae6ca8d8002af86759e724dd8dc18e6d02636ac5bdc4d1bc4fcb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00594fbe5fa3d0f2e8cae1521f726d556afe49bbc38745bf73aadc8036838534
MD5 5a1688d2041b32984756af7998466efb
BLAKE2b-256 f31b27425c55b24af7680d87252dda3b2389f0e62612a8f047a53fe39cf783fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1aebc7218101b21bfdf7d0f5140f686e9f21b18d5a0674ef94b0cc90d5c771db
MD5 7f8fa374670441714b5b0bc6b249a9fc
BLAKE2b-256 a01db3fe94376d36b2bc6e1ef52127f0d2d1763cb15c219a21c09cde29281a73

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ea43270431edd266e99124706454557446694df354b629d1f7038e1e85070f88
MD5 b0f55becb6f76b10844bedfa02d44b3a
BLAKE2b-256 4dbc6cbc4dbaa017370a95d88721e53102d763e5bdfe8e02b2c8774cb1f1aa4d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d610be226d20ddf961e4da39dc320ed40c838ba86c88472bcd9ff94c54458346
MD5 515c8532a8e53b1b6a82ed9b8081ca0f
BLAKE2b-256 43e036c6e0808fe2e70e0aee37a731675ea56d35053e6a00468d970b3e602907

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 aca2f9891d0eb626c8a991519c2cda9ee8833d5ec8efacf981be03636a4a8275
MD5 d975e0eed9171a5aeb0a6a320e7435b9
BLAKE2b-256 5ed3dd07db4d33687fd9f690cdd8221ffacea1648a208e9dea3418e76f87d8cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 541b96ab2fb9af3b50fd23c5507ef05bd6f174fa318c898b1ea4c3b729923d08
MD5 5434bd4ddc6a6239b50e567b89205a7d
BLAKE2b-256 5aa167397ced35be4b16707cb5a848d3d1282fbdff1ce02899b14fce6d715ca1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0a3845ae427d30e7c5703aa4353961ad3538b1aaf2190a5d3feeae0ec1daf03c
MD5 56751c63186a41e2184cb5e8533640ba
BLAKE2b-256 946b0a8c5232d7e998b56bfe29f998561bb9a5ce8486a05b7a72ff6ea7697e7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev7-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2730a0a9a3716e31fd7d01fae3bf3a9fa61bb5aafb263381941766d683ee41e7
MD5 c53ff47b946d5f372930e8ff8d486e7a
BLAKE2b-256 f43bfbe9782c5f8a56a1c2e6c3a3bef3ab553a3d3fcf9a36db16dbef279ab9ad

See more details on using hashes here.

Provenance

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