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 (agents, 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 agents, 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 agent 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. ONNXAgentProcessor: Processes agents 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


Release history Release notifications | RSS feed

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.32.0.dev22-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.32.0.dev22-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.32.0.dev22-cp312-cp312-macosx_11_0_arm64.whl (408.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev22-cp312-cp312-macosx_10_9_x86_64.whl (409.9 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev22-cp312-cp312-macosx_10_9_universal2.whl (815.8 kB view details)

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

amesa_inference_dev-0.32.0.dev22-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.32.0.dev22-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.32.0.dev22-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev22-cp311-cp311-macosx_10_9_x86_64.whl (413.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev22-cp311-cp311-macosx_10_9_universal2.whl (818.5 kB view details)

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

amesa_inference_dev-0.32.0.dev22-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.32.0.dev22-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.32.0.dev22-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev22-cp310-cp310-macosx_10_9_x86_64.whl (416.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev22-cp310-cp310-macosx_10_9_universal2.whl (824.2 kB view details)

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

File details

Details for the file amesa_inference_dev-0.32.0.dev22-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 17ae5e90fb57d14d7efc1f17f3dbffd89d464af67858ff810d43e80d163b7b6f
MD5 c08a8ecf4cb3e8fae1a91b6bb8b4ae63
BLAKE2b-256 295933db41733ecbde69ce82136f2d747a5e054a37196e2df63378239b1e2618

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev22-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.32.0.dev22-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0db9585d3706ba2d9f87681049d27e833e9399f8a6b6cacb748fbdd65882ac50
MD5 da9e6c81875ee68696ec0f9a4c43be5c
BLAKE2b-256 2d5c70d773f90718ff4386bab2b65eabf2ed2aee11f95f100dc7dfdc0fb8931c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev22-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.32.0.dev22-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c86b4663a7ad94eb08dd6283c5148f1468c80ce1249e38b4943d9c6b6b275761
MD5 58765c10d67659da99be18eaa2f5c956
BLAKE2b-256 2d7a41417dc9add4cdf24ef0445f67f73c7b228b7d75512138fe6df86eb960b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev22-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.32.0.dev22-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fa1d4e91760729e9f6f90b72eed5530f21f3323bc9f35de857196b8107a4aca7
MD5 29979b8de8f6f28f3a0156f35e29e96b
BLAKE2b-256 c52a76fc2052d1ea23aeb971835345f94bd734beda5116b023f81068cce7d9ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev22-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.32.0.dev22-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f9ffcec83f0887ed61f389e583a7675fc3411e86a7b215412e3cb40d6c9e9c54
MD5 af87c0905ef2ea192e3e07b470e2010a
BLAKE2b-256 8aba2ea7eada6cc181ea8f7c81d463ee92211037bfd9a33a736e71ca8d0fb61d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e9d73a6aca3d711f488c2f5c0ab4396572e34df1b73bbd01ea153807ea2afc7
MD5 cd5cf8ab5065f41daddf2d4d432f507e
BLAKE2b-256 8ddfa41cbf83dfbc024c388847fbdafe6c659b6bd13935ea5175062c8ea247b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 510be9970ea908c46698889d9154e06de7cee571b7da7e4a86bb9905aa855d2d
MD5 207e3e4cc39b33d6ed2ff0773cea27d6
BLAKE2b-256 bf9bfeab70d94cdad2e11be8a5ee1b4689630e045c858dbb65c03f13aa4ad4c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 906f4cab65cb0e1058ef0d91386010075e4ec03bddfff7f049a9e35f7a0677a0
MD5 8369c9238d8de36282568d0f04ab4b87
BLAKE2b-256 2c542cfb338ea2ed472f49a30f84edf18f3129942b1b8363c3e35dd3a1dbe6cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 635b3425134c6a1a92aefe386770cd7d7076d12710cccff2fadb6481079235b8
MD5 f04fbcd24e0f9609bcd195f3a8e837ae
BLAKE2b-256 6bd1ed3ddc3ee08d6e6f69b2e75afa5ac1dbba5c515490665313c747f0ffbaff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8a094c75f5aa7055cda22e407e2fc126fad5fc3e60f7ca6ee5b165a7d716f5fd
MD5 94ac165100805bb475824d7ef71aca16
BLAKE2b-256 cdff89049e30288a2efb362453db0a4f8b0f57a09846c3d4be0da3850c7abb3d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fe702d52731f9a37f410594b846baef9d04e3b130131d33f19113fdb73fc6fe
MD5 d743206e7f015d6e507b191482e1f514
BLAKE2b-256 2e2971bacd75625824a0c1f83b43f35590ef6ca80bfe867781e74f5eb8130469

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 22eb16259b2c9b49cf158cb5f417c8a5dc0fa1ff097c2f32f7f29610dc2d55f3
MD5 3a4130dc9938d70da31fffd87d34fb37
BLAKE2b-256 a59f673cf42355786b678076945adc87d409f8fc36126e1fb779b10738a7e7f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4637df8bd8724b2e27f4bf037c2854811ac9623364a1562449e0f37bb159f61c
MD5 7b5bf824997969977ba578afe8c1e43b
BLAKE2b-256 edafc4f630114a6df4052ac8cbd5cec7e51b1b77549c76bef26572ceee398076

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b318fd6e32eedee7bf731e7e7ecc7f91d29432d208b801309121e77b39d94b71
MD5 07a79dd8c4032d10c0265d67cbd429aa
BLAKE2b-256 b4f0cb5646b31dca68b829916c920da02942f7c7696f6dd24e9fe27731c00140

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev22-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8382b48f1b54997e37952db9cf7a0a2a950e15edde2f72bfd2ba7b7095e36939
MD5 01940fae6ec8bbbef32d7f3848c26a5f
BLAKE2b-256 46658010be0a252af7651dc7aa01a0485faa83df2e2407d752ec4429e7b9ae78

See more details on using hashes here.

Provenance

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