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

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.33.0.dev6-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.33.0.dev6-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.33.0.dev6-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.33.0.dev6-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.33.0.dev6-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.33.0.dev6-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.33.0.dev6-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.33.0.dev6-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.33.0.dev6-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.33.0.dev6-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.33.0.dev6-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.33.0.dev6-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.33.0.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d08fb4c0b8b0f03217484fd7628575c2e0012660c507600981d59bce350ba6e
MD5 919cdca339156baaddf64dfa14ddc08d
BLAKE2b-256 4492713e613ba228a6eb0412de02fbc9ad8311dfbaab424b68c65bf2fc22400f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd545663697991c7b7ba91ce3670aeaf9e5372e6eeeca351aefba168d16078c2
MD5 185865c968d53e4c99ec2c3d9c6d91de
BLAKE2b-256 4c892573a87aa1c5fce21374083a525bbbc3951b5e678798a636682f01498fb2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9609f785022432f2aa0f92166a1dcd564528a6218b8dceaa5faa82c65199bbe1
MD5 decd5fa79be72150ba6a340eff26778b
BLAKE2b-256 1554df23ad81dd2bf8bf3cbb928e838496c326e8a53123122dd0a97ade977c43

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0bdaa3fb680ab77c4084c69f0c6221dec1d2f04030c64f2802fa8a453f25fbf8
MD5 066c8592d11dd720068ff136a2fe6cd0
BLAKE2b-256 94e6dbfbd4098b1eceb10a5a801b0ced6b03b0bb1ae42aa2d1e4bb168e433669

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 94da23591fcacc1c1f7923fdf08fc361dc95d528ccc37685aff02cfb341689e0
MD5 5f87f0affdc8e21058d28aca85583c13
BLAKE2b-256 b78562e3401397690d40d265a7931a13240283601857111e9c78897bd2075bbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6e428cc411417b3be234c5e00de7b2c3e465b19e68de71e4c7344f0d47736346
MD5 7a332af85c40fb6a1218e752378fe139
BLAKE2b-256 60595637de1b4da53a940cb7174aa61273950ee9fbce3d6728bd8b701ed7dcfb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a3c67e5b411d521a100c70def836090a88ab0d2bc243cce5ee7892356150cc0e
MD5 e8590f8db73cfd9e66aa39446744e634
BLAKE2b-256 0644d4e79bebbef838b9ef6d0cd2717dc32cea772e75f4d304b80c17d1428451

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa1c4ecdecfc4c3718597f1b9410cad2b4370bc13788c17112a159df795ac725
MD5 2b3a82812ee821d6a3515d830700cd30
BLAKE2b-256 82b6d1624c8475be2ca1029afbf18598f83c7f2c59c01ba72dfab862f17bfea1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bf8cf410bafb0849aa5a707352f7e97327edc5726c14898798cf9025ebfd7b22
MD5 6155db56b4bdee798cf14de0acf02e2f
BLAKE2b-256 36d7960208fe90f1a4b0bac1980b0f33253b0a6751f918a64136eba62829c790

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 61043d11025dae07afd923c264c9e1c8d592120a15068e00ad52366b26111e70
MD5 ecd1f664c8414e8abbe79590759d3077
BLAKE2b-256 555950099300b0fe86d9fff818ee6137823bacca9e63eca893b37ae6ff664ae8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bab02e0e60b0b1c0baf2781d5191b1c388cef553789ac3c4e8d6eb1b4036b10
MD5 b3ae06c5ba07f0a36fefedeb01727030
BLAKE2b-256 5c250c55af183b39ec411f7c14f110ca6557e78028a775460edb630bd45b147c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 57a30088dfef88fc9f5c0ffede296080759d521ebe111c50989db20cbc1249de
MD5 fab8afc6f9971cdb05af91ee8b42e9dc
BLAKE2b-256 c4a602e74bfa977bcadf96f20a39583e25870ecb265e7c76716fa68a74fbf3dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b879d3395b45e41eaae7a3c1ea257d5974b9e2d26f3b4d16380ceb2ff4083c7b
MD5 b302926b902df990d6aa74b7a70bd8fd
BLAKE2b-256 d6c7d7bfffdfac77a5d67fbd37ff2d2c52810096772e2e3d18dc71d97e4b6d86

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bc7730eaa7d655a96ca37929c4b31b55818cef47cc6535d142218c37f0025c29
MD5 c21f63ec07009fb59dc7438018c1f5ee
BLAKE2b-256 1b1bcf322c0210e780a0795a9ee73a24b2101020fdf2b1b1c26d42a7d7edc6d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev6-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0a7fffe09603eecdb09e40ed55704850aba4c6a7a611c9cf69bab519cfbb4f75
MD5 19183c0f1e6b21dde254e71ee570e427
BLAKE2b-256 a0bafa312c7ac2031efcd5891aa80492a6be61706909c4c2d7c7ce3a5d9988df

See more details on using hashes here.

Provenance

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