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_dev-0.30.0.dev4-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.30.0.dev4-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.30.0.dev4-cp312-cp312-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev4-cp312-cp312-macosx_10_9_x86_64.whl (408.1 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev4-cp312-cp312-macosx_10_9_universal2.whl (812.8 kB view details)

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

amesa_inference_dev-0.30.0.dev4-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.30.0.dev4-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.30.0.dev4-cp311-cp311-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev4-cp311-cp311-macosx_10_9_x86_64.whl (411.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev4-cp311-cp311-macosx_10_9_universal2.whl (815.6 kB view details)

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

amesa_inference_dev-0.30.0.dev4-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_dev-0.30.0.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.30.0.dev4-cp310-cp310-macosx_11_0_arm64.whl (408.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev4-cp310-cp310-macosx_10_9_x86_64.whl (414.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev4-cp310-cp310-macosx_10_9_universal2.whl (821.0 kB view details)

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

File details

Details for the file amesa_inference_dev-0.30.0.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e3182d46b721042e8774765865bddfb003710709579f31ec0f88ebe86f31ef6
MD5 c0f204b246f8e5cf1b88a2124a24646f
BLAKE2b-256 858c14b05c0640eccae073e46f35f8756ada87ba5a24704b8fa0fa24729c0512

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ae077b6db2a2edbc4b3cfb7c9979d60ca4457a410ac1d979ec378413a142e95e
MD5 8c54c245952cad13a43c8effee6ab872
BLAKE2b-256 e07289144df6e62d3ea9d8ed623e51664aec47ca64a993314307f7ac28156b38

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee30505a23ca0c93e8a0c555ba79eb9d44e68935955aec180c77ad2dc01e9fcc
MD5 b7885e1a29ac1cd516dc4415ae5529d2
BLAKE2b-256 57b7b84ebcde188cd6787d070eb80e14f2ff770624730d184e1c324dbe07d7da

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 89d8f59a7f06b98b4a6cdb42c94aaf5f3d7c1be7e990dae7817c0398f175e228
MD5 0dd36e31ae98269a483ae8ca0df7dbec
BLAKE2b-256 33a26ed59d93649dee6d1fc12e5fa0ed54ce4ec1355ff299820776c414406fea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5ab2758bfe2161daf477d7daa784fc9f969948983719744ffc24a5a8ef342fdd
MD5 6191a24f31312c7db2f2fe5a22a1a4f8
BLAKE2b-256 a8f52fa7eae489d8d553e091d8a9989d4dc207adb8d0ecc9b7aa7d59ccba59f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ab76ff9b906d50ffe7e0effb33c5311f60284b3d7aae81a91cb5bc01d0ef755c
MD5 1de8a5287ec26bc275af969757a2ac8f
BLAKE2b-256 b7c0741b4b8f116fe3f660dc589c2224131f417138099b0a48616e4154f70f85

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 174f569b43eeeab43252c9efe487dd5fc9878290a6a56e6d4bc66da82ce49fdf
MD5 61504a825fefd29a9bc401be1f2146e4
BLAKE2b-256 8d786f143f2c72de5a115799d5210f5353361d2129edd38de7edfb9837318f75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9db5d0e72a499576ce64542c3553441a76c0d93e9777dbf8960f3371f8616f1e
MD5 22ab604fb6cd103e1c2691123f055bdd
BLAKE2b-256 6ea6cb6bf9815fa2aa3bccdf0e7b08ce8fb0b6d2c3f8167ca381dc8b74a35de4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2dbb0acbdd80f32265e467685779e41ffc4da0375a65a67da0ad7281ce341be8
MD5 0e97782ed43ab922abeab7c1c82246a5
BLAKE2b-256 706324a7b5b7d6d0dce774542cf55f808f60fd58712f444587934ae3b34ce25d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 93ff8eb0c944eea79406d324ab2e3c2ded2e409585e778f27397c20fe960851b
MD5 4bb79663f39be0446a105ba93d036996
BLAKE2b-256 9abc44cff28f2eccfe9778f3a3b49d09093d3f0cbaf28327783b7b470d9e5ca1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c44c110b4d08601756e55397e5d8076e276a93e40c2d843c8df75c798c0885c7
MD5 1bd30330019be4fd2c52087d89856a05
BLAKE2b-256 76f22adde3988b3c584dbdd3136b5528903f547fcb554121d26396656e822b3e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e7b2fa1bb46168d973cce18dbddf2d707232b13b1ae2c5310eb8378264b83943
MD5 c096e9a2c6bf3658c84ca3c0c5b5b633
BLAKE2b-256 bcccc67ce30febca29a1ffa16ca1a5b0f30bb857f00b22c6eec0b031b00ff745

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 579b29b0d8543b380284e7b77b4381921cb44d2c7e945e618913c7eb09c3b918
MD5 b7c6ed944991532ea1ec6bcdfe0a310b
BLAKE2b-256 141df0f2d615a262f615b63c139146a9fbab90dea674786cd0728caf261841f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f7c45dff53c56ae5f8369fcdd79225f38f06699889308fc8b3105a079356d49f
MD5 ea469a7add6e35d59020cb0dc7b56aa9
BLAKE2b-256 6d7cb4fd71f1aeb335cc92d454bcfa31e4dcf10d161281ce921ccf39ff773745

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev4-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d6fa99e13e4c49bcaea155de29d2aec97c758f3b2b546b99cf4700d24dd290f8
MD5 2431717d3a505c74ced5af3aed2f7bfe
BLAKE2b-256 eaf453a4e128c3312b1a1bfdbf50cba6915d92cd5602742ac4533d6291fc95e4

See more details on using hashes here.

Provenance

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