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.30.0.dev5-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.30.0.dev5-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.30.0.dev5-cp312-cp312-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-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.30.0.dev5-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.30.0.dev5-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.30.0.dev5-cp311-cp311-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-cp311-cp311-macosx_10_9_universal2.whl (815.7 kB view details)

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

amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-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.30.0.dev5-cp310-cp310-macosx_11_0_arm64.whl (408.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-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.30.0.dev5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9399b5c8b7bf522386b2ca3581536e5c230a54eeece54192f29462145203850b
MD5 138fde333ae9deb9f14c71541920cbcb
BLAKE2b-256 2271b48bd6eb9f45452a04f9806458b6420e509a6ff1dad9733aa310af63b70b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 984b2281a4c1aa468ba90827efa9aa88073552a188781121162161f09d0b56e1
MD5 ae4ccd223024855f4d5985938c97ce9e
BLAKE2b-256 b6c270d75d71cac9067ef59de233a5713f8d1b99cfdb624e90e92d0474ed3070

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd10bc425b4aa0c828110a9750787fb3e48d7ee03d37e658d4a64b166a977be5
MD5 63f0f6276d52d801f5598366cec506f0
BLAKE2b-256 bedaef559042a5e03c927149d06e49141979bc0b7b4294974b9e987e34a51fab

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fce314f405cc42b871513d8b3866110ef09f367106974bd6201d27c25092fd99
MD5 7d281ba4beee051c5a2c3ee489983ee5
BLAKE2b-256 ced46ff7d392386bc35a44e47b3975aed897372341a7d7ab2222aeb0576aff65

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.30.0.dev5-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.30.0.dev5-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 41aaf9e59fe3dae7ac815af42c6e9c61fbf097d6ef1a211214a7dfb1e05796c3
MD5 ba87eb147499a685da0dfae303e4c133
BLAKE2b-256 41149310d701325d04693a094d73b5320096119e8d1a647262bf82254784a814

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 668ab4e4b9b93bff4709fb0572614d356de1ceacb99da0e633fb5db38b76682a
MD5 594f77e5c678a0aebe98a9430d7ea362
BLAKE2b-256 deb9b46ed9bf05868b0ddcb1c2f689cb8dc330563246a086902f3e22f9f4c260

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6d3adc39802dccc331a932dc44d8c62e7e1fb73adc0fb56e1cd131ef69a9368b
MD5 60f46d2476d2c9860b3c8a3e8164d16b
BLAKE2b-256 21dc97295262eb618e9b75c1fdd731214ff5d591ed64e5318ce8c5a682a621f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38fc5a2d57f4994962fd11e28e779eb34861fce827efb86e446958ab4e1abee6
MD5 afcdaa94f070bbf591886009ace8653f
BLAKE2b-256 50971c508906898839fb5800f6120f82ed1651a936a5b960d035e2460706f520

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9c7de1191af792581031c9fbca68399c6e38e3c76c067b4062748c8155e47f6a
MD5 d4840657ab09226bffc196f380ac72fd
BLAKE2b-256 e3e59619f869f358abfd9e4da1cc8d32383881ba89829818b442c61d4b00b2c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 201339d6a1f94edb01528562d85c7b072e596858b459e469d1aefdb87cb6b35c
MD5 039893b5eccb7fb16e735ea8d675f8af
BLAKE2b-256 e602c1b63470da064dd1e40b2bed7fe986b5d8534b21255e575d3c867c1eb252

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 985b78d76c57c77f22b28395fda62c1d3aaef0dc6d36c4291fb9eb512a329685
MD5 2aced900aba49d478aa00df70fb8ed0e
BLAKE2b-256 76752e3d2bbc825f6c894587e410618b5676df82f9929e32e69221d65d6ea4b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0f148f0ba94d1c6b9de32c1c423d3ca5a7b28eacff021b7d096c3ee8bf6fa4db
MD5 061fa4692ad23d41c57ea3b0cd4cb05a
BLAKE2b-256 18f7e618ac20468d34162b9e432bbaadd55f81c8a9a9b5fc355b36b66f2b3823

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e2a949388c4727d3881688dbdcbd5046f2d7b02202728e6236e933817ff9bc8
MD5 1239ec47643f375ac566e9bd6fc2085e
BLAKE2b-256 c911504d579418f8b46743667de9bae5a12039277fb7ffb4cdcacac2fb12d275

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c34f78fed7c28c295239967f72ad73c7f7b932ba2446d93ffc68bc8372549866
MD5 c99b14b9fd87f60e404a1c4dcb7ade1c
BLAKE2b-256 f46e527e747f9b140bad3264718aa73f563d22352b22e5fa6062596d94919933

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev5-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b172383e19035a903a34fc63fe532d6d20bad8e6faf09ee9e17d9af49ba0d319
MD5 f287bff092c3b4f678e15a2e006ff345
BLAKE2b-256 860a2b786d32ed6426f34eccd9ead1f3eefff4cfd1cde712d245f6dd8b629be9

See more details on using hashes here.

Provenance

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