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-0.22.0-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-0.22.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference-0.22.0-cp311-cp311-macosx_11_0_arm64.whl (404.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.22.0-cp311-cp311-macosx_10_9_x86_64.whl (409.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.22.0-cp311-cp311-macosx_10_9_universal2.whl (812.2 kB view details)

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

amesa_inference-0.22.0-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-0.22.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference-0.22.0-cp310-cp310-macosx_11_0_arm64.whl (407.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.22.0-cp310-cp310-macosx_10_9_x86_64.whl (412.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.22.0-cp310-cp310-macosx_10_9_universal2.whl (817.4 kB view details)

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

File details

Details for the file amesa_inference-0.22.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 706e08f2716499cc522ce0e7027b60a77d4d081661ba7eb4530b185754ed5237
MD5 c79d227194feacc400b85dcdd8b644bb
BLAKE2b-256 47698c5c2f439a4d0eb1905de81ae0b7edaa224401d2b9c77de9fd76932384f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ddc3ce09599a7e9392cc78bac0bfb7b33710d583b46e4c265d3bef6ef80c1566
MD5 da072848bf053fdd6074f3c2c897d589
BLAKE2b-256 11f801f0b2b474a3dbfc61267248aa4feaf8d8c7e133f609024697a15f0efbe5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c3fad94f784d35623e8e8cc09ffb97e5a819cdc68e21f861beac344e8e70f0d
MD5 73c2707601f6508c0bad3e7d56e77a2a
BLAKE2b-256 f0acf01f9d39741fc4cc2c0885651b0be3df1bc08a845b1ce3f4ae7591da4980

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fcab29f9fadb026569a7ff6c1b4dd80dcae7f080aab062ea176dde3b9e360839
MD5 85f7e9c0fc30076f0b88c2b2c55ede49
BLAKE2b-256 31320876aa551e77322ee8d1c301a8d3e9534330938e394e0e007d2b60970dda

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6db57af13bfd6ba6d0dbcde18d9cb50fe404d5f4b58861f7e753e22729736235
MD5 66c55f8fbe9a567dc92b404853d1a210
BLAKE2b-256 0a0776623ffa64fc053fb57134a22642d432dcfcf1bd3a9696f5972be3980a83

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.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-0.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b452726925470fac1b6046f0174fda07ec88a7b5b9608b082b2e380cf212120
MD5 dbc5777b3d5731a228111ea058e69da2
BLAKE2b-256 eea21ba022500ce9306ce3a2559facd25d7f0ce63b9d3d4665388c67880a18c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c14249aa648364f7131a9c04b516dc3f4224ca1df9f64764eedc94b7274c7505
MD5 7c350d6020c8b5457e31b77b4c9ae442
BLAKE2b-256 78511d4b721daa5ac59b7653697cc2c62e64de79a41374e4ca1325e5c593c945

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6beecb1402e660195fed5b79331abdef9e070fc197244fb0287ea7963c901e8
MD5 69c3477f3aa78bb444a28412d3a32aad
BLAKE2b-256 d97b75e5998a5c64ecfd661042f41c0ced6388eb44f70c3bd254754314fd2be3

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 318b92a7c03df1f2edb641857cc0032e4a1f45d0255404c19b4f5d0381c325f8
MD5 aa71571ad573f55804ec21a87825cb95
BLAKE2b-256 1af9237649ceb7041ab30eebe711e91fd1e7f16b21f99806388c38712e612d9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.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-0.22.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.22.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 72f0899b32cb5f30daa1cb916078a791d633450d97a8c26ec68c7665aefef6ba
MD5 b0e4f16f807b77fbb4a91f3081d5d27b
BLAKE2b-256 a206141b2c1a0c0735aa40fb497b24a233ae60303380d3e6c41f6a2022f46110

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.22.0-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.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