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.20.7.dev12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.20.7.dev12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.20.7.dev12-cp312-cp312-macosx_11_0_arm64.whl (394.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.20.7.dev12-cp312-cp312-macosx_10_9_x86_64.whl (396.9 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.20.7.dev12-cp312-cp312-macosx_10_9_universal2.whl (788.5 kB view details)

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

amesa_inference_dev-0.20.7.dev12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.20.7.dev12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.20.7.dev12-cp311-cp311-macosx_11_0_arm64.whl (395.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.20.7.dev12-cp311-cp311-macosx_10_9_x86_64.whl (401.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.20.7.dev12-cp311-cp311-macosx_10_9_universal2.whl (793.4 kB view details)

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

amesa_inference_dev-0.20.7.dev12-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.20.7.dev12-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.20.7.dev12-cp310-cp310-macosx_11_0_arm64.whl (398.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.20.7.dev12-cp310-cp310-macosx_10_9_x86_64.whl (404.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.20.7.dev12-cp310-cp310-macosx_10_9_universal2.whl (799.1 kB view details)

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

File details

Details for the file amesa_inference_dev-0.20.7.dev12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0bf422393ab2d0c16085be8ae2ec47f110f4900dd0d080a6d1acc2284da59c0b
MD5 ca9f8ec98b0ea55f01cc838f54e98529
BLAKE2b-256 e398f7f325b10665226d7e41eb0a86e4b7376823c3edb0a278a4604b51fbb5db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ad417984567bb7c558e3126cf6de8423e64be954b7a675e0f4e7a8966e3bfa2
MD5 9a09769df38b037201fbe662e952ccd3
BLAKE2b-256 b17629e244b8ae953dc115e93cd8d31205aa729a6fb220ac9f4cd4403804f663

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19af9ba161a15b4adae14a7c04b98e9bacceb8152bcdbab01c052f9617f89421
MD5 718f78d1d82e437de7231cc47b032040
BLAKE2b-256 98712d087d08b9806691d14a6309c1ae415816da2c41a5f461d401756800bdef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b1eb927e4468a7c47323c7b345f5431cc8b090ef5a0686c5944704650cc3bcf2
MD5 d6d7a2980854b620e0977b58804f8976
BLAKE2b-256 2342142e37b721316714f90d9eba430923a4e45efae891fcd92bdda9a777358b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0465c5f5c5222de82ff2e008dbb4dfd62e5e6761ad5d54ee3e89372dd4b0ca91
MD5 610b62e3e7503f4d57428293bc26dffa
BLAKE2b-256 a65814cb308d7fdcc48fe7f87806c388c48feb726e722e2dded0df1a090a3d44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73aa5bce1b06918e94fd5f4d85ab83412793b859945d83e39b2bd149873444e9
MD5 c839b001447e1bb36987eb4c8e196ef3
BLAKE2b-256 78c413f3b4d90956090ba3876d850b44b5b51dd605d9eb626391a4b602d42a66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b181aeb7dd32685e25c0a95b4087fc6be3c3aa12059e6c289b3094a137c168d4
MD5 2f6aad0f8c66156bdefb4310604ac6ef
BLAKE2b-256 ed33bc40979f941ec968e245a780bc2926a909c695461ca8611887d707f73103

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fdcf2b6aba8968cc1845bc2acb452b7b97332cfa8e873f108227b46281030e7
MD5 79db4fbd853567fcf68eb71a2dfcc256
BLAKE2b-256 c56de260f8e29d703d590ee0b836955768fd943f819df6816ea9b6fbf3e5a54d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f4ab5de333ddf96bfff1936a10150f97b7f3d1d69171d93d5b0b516dc0a83e66
MD5 b44871653089f2af6e977d34b5e04fe4
BLAKE2b-256 65860385e38f921cc84a01a32a0298ce6fcd6078c0b7f7b1a35d98bbea5df988

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 dcbcdc9822723142fb44f88d3b49967df1e1b8303b0dcf6d509d9fb28f9648e5
MD5 42fb10ca3a4432e6002d0961aabcde01
BLAKE2b-256 731c71ffefc6770cadd6b4485f81be509b0d355ef179f73d690c30b15e124e7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1798c0136c4bea208364747b61fe5c2118add8dc4a929601ac182a07113593d8
MD5 7d97c560820fe375a9d7a7c0bcdf9f1a
BLAKE2b-256 177dacce70430e3c21f991a67b168176f3c453947888b22b86d68fd9217f2c64

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 776b0b1c839fd48a46720234b6f7c2bc94e035f8f0185047b364cc3ae37491df
MD5 aa2b3db00d6c67d4173b92dbe50fc62f
BLAKE2b-256 5f55359fc926113f1b058c6fdeceafd19a57db641340c2abbca4c86825df00a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9013919dce1329f89de4693c74b49cc294addfc100c78405a9441af749c8b52f
MD5 f1e089f46c6a1853de924a52d5ef50a1
BLAKE2b-256 dd154b0d393036cfcc494c6238f001ce03f9e92adf78d38c33394f2a4b0370d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a644c7e87fcd5abec8f1067efa920ca64c93e53475a9708dd4032043443c3544
MD5 c85826186c1dba638602318b671374d0
BLAKE2b-256 cf59915fba9afa6928fef057d9bd52791328f5962617d384fd3e082308a1a787

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev12-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4387354fcacb4b928a7a46f99a1a89077cfbe19b48d835478a7bfb026361853a
MD5 b93e55602094e889769661a323316b5b
BLAKE2b-256 55fe8e2a83ff55df1cc372e5f8151d596abfcde6f6264a539845f479e644d30e

See more details on using hashes here.

Provenance

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