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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-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.dev24-cp310-cp310-macosx_11_0_arm64.whl (410.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev24-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.dev24-cp310-cp310-macosx_10_9_universal2.whl (824.1 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.dev24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e96b34e06d169518644ceb301393b215339007c501fda8feb8e807a72f568f94
MD5 3ab8a5cfae0c0791127cf17a2259e994
BLAKE2b-256 e393f3e06bb6e42533b49fe1f91ffa349965c28235e49c9a2875f256936a516f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0ee539571946fba428f2694c7dd989136a82e060c12ba3f99d76c6720a9d9040
MD5 73a31e2408cd5f0ef7cabf504a8ac058
BLAKE2b-256 f741647667b2973c6b24581ac8b295807cdb60f0b8cca735d4b7d5774f4f57e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f09dd92d1a905d49e6e2102842177e2bf5ab77cf77668d386be195a33b44367
MD5 44adc18750e0c0bfbd25689ab2c9e1c8
BLAKE2b-256 0356f662d97ef7719791d1a22c3007abd171bcf52badf7551bdadce23898f164

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3219a80de0e512c10ac85af2324271951416038bfa6cd9516955d9ed7c31e106
MD5 00d53ec4a0155a9eaf3b6d2957c797ff
BLAKE2b-256 2dd4d6f5ad4137c2c53b2f923edf216acd7096814e72e7f6db7fd248f87d5e8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a638bd7ca8479e50120bfe4ef1cfabe0018aedb5c79e533fedcefcc1d9f8e0a8
MD5 d6f38f3a3dc255a00ed0ce72339eaf6e
BLAKE2b-256 434ed83b003127aa12433d400369503a61244b418bb50aad0a189532079428ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8a04a1ae5d0f46bdf4991bf9018b78134fe5699db4540a0161ec8ea191edad9
MD5 f4c7ba3a36ba60194b7bff83d89b15a1
BLAKE2b-256 624c72b18e1fda87a5ec73ba4faa02b8e438681fe4488b7c1e12f1fb3f642701

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b049b1e4dd8bf4aac13b83c9286c3281310c3152c588de93d93135646389363a
MD5 a7dc4100bbb1274a6b7cbe91637c9106
BLAKE2b-256 58fd70783d282bd4caefd4e21ff6b61976f06604bfd5ce5bca97d415387e9e4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a6d2cf7e413627f128ab2b81f9473c2983af3863bb1fc351fbdf276605c0ebd
MD5 0ec35df5c29a3550a447721e5249fc5f
BLAKE2b-256 9188341f3b8d1453acf90a005150d70001d5720125ea5c7c3ef8bced5d6ef9d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 baeeb5ab108e522faf59708a7ffe6d0c74ec0fc50c21a63dc1f16a410b816500
MD5 6f04361a39f80de69fe02f34ab10f600
BLAKE2b-256 0da888e9b71a6acd5bfe13d8f7d6a0ef0f9f862974635ea5f71b4eac5035a239

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 57d740d68dabe970ef24a1c3ba506fa266cf269bca8948be55c3d00186762697
MD5 d38a165c78c756f050a929321855ad01
BLAKE2b-256 4ae000a19245c9a7dd272241f856ea73100a2fe014432b03fafcedb9dc1d16bb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d836081ec9fe4a1a38ac62d44b9fca6d407a4bc26df46ce8727408723a77ebc5
MD5 8044d470d981410e6ce1ae2500946a46
BLAKE2b-256 27702b9abec8a40ba7ed59a934580af2f77058190da34f16c86abff3e267d507

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f6cbc49dd363f6e44d61fd739f0e8a451d5bfc0d44c02d20c7ef29fde7b41e79
MD5 0a9e5f264cd8ed73ecbad2e1c4904b14
BLAKE2b-256 d9eaf8e8b4822a7460713c95008f500a81d5145dced5bffb92ced41bb572253d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f5c1786febf373f9f2cb28400dc0bbd4658cf8da6523147fa6dd361fcfe0ccc
MD5 b2dd3ec01c9d39393cdede1de331275d
BLAKE2b-256 00a0bc509ac10fb100c79ece474f69a554b1f8640099a9e2f936ba529db9625b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e18787e54ef409758708c2f10311c05fcf5d04a974a0a7c926fb45368889c4fe
MD5 60e9f43396326b65d9e8ea8295e0431d
BLAKE2b-256 57a0df0be7f7f57150498889f2b44edfeea5b756323bb60358f18f972f0a01ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev24-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7a6c878e3e3ace7648dc5f532d9819c634a4866cad886fac80fc725b12e3e9e9
MD5 6f180911024a9a8ec02ad6285216b322
BLAKE2b-256 ee6fb9420274f5c863dbe7dada6302aedbf9763af1e9b81c070e49fd4b6290f2

See more details on using hashes here.

Provenance

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