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.34.1.dev16-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.34.1.dev16-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.34.1.dev16-cp312-cp312-macosx_11_0_arm64.whl (412.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev16-cp312-cp312-macosx_10_9_x86_64.whl (414.0 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.34.1.dev16-cp312-cp312-macosx_10_9_universal2.whl (824.1 kB view details)

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

amesa_inference_dev-0.34.1.dev16-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.34.1.dev16-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.34.1.dev16-cp311-cp311-macosx_11_0_arm64.whl (412.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev16-cp311-cp311-macosx_10_9_x86_64.whl (417.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.34.1.dev16-cp311-cp311-macosx_10_9_universal2.whl (826.7 kB view details)

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

amesa_inference_dev-0.34.1.dev16-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.34.1.dev16-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.34.1.dev16-cp310-cp310-macosx_11_0_arm64.whl (418.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev16-cp310-cp310-macosx_10_9_x86_64.whl (419.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.34.1.dev16-cp310-cp310-macosx_10_9_universal2.whl (836.1 kB view details)

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

File details

Details for the file amesa_inference_dev-0.34.1.dev16-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88d39a841f5c25f44a990c04d83f9a6d10663714e58d1f7999434e0868506ff7
MD5 c07a3d36cff1858a72a0c8e5ea71fd13
BLAKE2b-256 5c7a2cae10ec4837ec8178d78d734bd62164a1f438cc868be6052e94e46dda05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6c10262954d66746047870f179a470b5178e52004ace459ef57374f3f4e2fea2
MD5 1d442733360e909001cde8d93e28da38
BLAKE2b-256 4dca407a749d6682b934127ddf1c7ac550c90ffa16ea16d44baeb20b15596566

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b9aa42951acab2296aed2bdeb4e94125279e66b282bcb3e67874500fdaa9441
MD5 9bdd4b5da13fe67c447696a818f95332
BLAKE2b-256 9a2c107db8046195f9cbe2cc6fb8d27a0efe1f7913b37df766c02d6fd2cad2d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 75b982cae0dcc278a1595e6619e6dffac25eb2ce642d7f3cc70c764f5f14c1a7
MD5 5bf7564090b324a844bb3b0b21044646
BLAKE2b-256 3aabee8fbd2f959225b9b3c7c0d4f73311bb56b92d08a7f9a8a2b2abd1de174b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a4b03c3b2569b5d0cda22390b8c5bbee44bbe8bc590ef0730afe47ef12aaf8b0
MD5 92efc6630aca9fe55487984bbd647f56
BLAKE2b-256 e3bc11cb1811944d81946eb818df6a0c87851a230fb7118ee8f86f53077cb26c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9c6e6b0cb5c020c87638d0c3f0872768a635ec8686102a13e718e09fb70679ea
MD5 78da42b525b268368a9e98171d90f50f
BLAKE2b-256 844af4eebeaf70ed539d3ea7c0416e9b455c1776577e1bada03fc928d44f1cd2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bf6088149fa787b69fb4e6ba53e98519126854dfba6b64f74850d5625abc4f00
MD5 745cd14a803ed1f24cb3091adf8431e2
BLAKE2b-256 3122d2248e69028922a041a7f8937a06c2aceea87bd73ac9e5cef4a788b06ed8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49f27af4f6bd972804a4781b5b23acd92afc6c53e2a685a1d732dc84af1fdcfb
MD5 febea5de3021f393f50be4e91d0603a0
BLAKE2b-256 8543927480739e67b7df9c479fc326f986f6386c8c2342b4be980fd977f03c66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4f017c3f8510f2d33e436ec4c72ceebf05542ba7617b28951cdba42d043e4e13
MD5 f535d4f4d7fa4d74c28537da79e001a5
BLAKE2b-256 321d74fa1254506cddbf0415127a4860b5254595eaffb4e1683b68a7ec9e8df3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a805dfc17a4ca7b1d344c228cda6b4a1291cb38f8e6cb4754cdaac92330fe4c5
MD5 ae0b1f18bbce2bccd65d0b165855f47b
BLAKE2b-256 41f09a059025019dbf10df46cb0add0703c3a949d1e9d2bb928d4b86e5e2e558

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8f3292999a97e844aafb4b23832ddc7bb2ffbfbceeae0f9131878bd1fc41d0d3
MD5 740d74a9f15b08bdb46a950975f1e89c
BLAKE2b-256 3ed6ba34a72f4873b2a1364ac68a5ba79044dd6528bc0e1701d56086c668f998

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 164376bb6020b8229fc56d9cfce8dfe855260414b4bebd4ac67bfefaa5945e2a
MD5 3e6ebabbecb3ad742188449365bde815
BLAKE2b-256 1ec644d9be7991ee7ae3c4b44b622d7007223aafe5af184aa33e57f15a0e74ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b86c99b727c00aa4c72acc15b13a9c602c2bcf57f493587514cf1d520caab913
MD5 9c1a2cc3fa7c7125e04bad2830f16c17
BLAKE2b-256 c358f58f6fbd250d078bd30ac01e91e2649f591c73b87ebf8bf4ad6cfe6b05b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 13add76d0b881fa60fc7fa41aa453eae0a46329e02fba1e4dbe53fac8f42ce69
MD5 180fc470b7824957fa1b428e6ac805f9
BLAKE2b-256 ca72e0e561f4e4755959e336ad864407a818a6b5b45b0663873b0c4b29c9b1dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev16-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f9901caf02cedeb985b7972bab63459b1a064b3da6694657acafee61c60b4c5d
MD5 b30bdb6174cc1b2d6d2a3035013dbaca
BLAKE2b-256 2e129001287c1c1c039b2d5382247acd08637cf6c2414d0c79665570e3cc33ea

See more details on using hashes here.

Provenance

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