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.25.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.25.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.25.0-cp311-cp311-macosx_11_0_arm64.whl (406.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.25.0-cp311-cp311-macosx_10_9_x86_64.whl (411.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.25.0-cp311-cp311-macosx_10_9_universal2.whl (815.5 kB view details)

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

amesa_inference-0.25.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.25.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.25.0-cp310-cp310-macosx_11_0_arm64.whl (408.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.25.0-cp310-cp310-macosx_10_9_x86_64.whl (414.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.25.0-cp310-cp310-macosx_10_9_universal2.whl (820.9 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f149719625e0ddaae609fbdc8fd55bd65c578b0971a7c270be9d3c4aee5d5ba
MD5 3dcfe153432e3f73ebdfb4ed2af3fea8
BLAKE2b-256 95de4a95f32d83e43ff3351e40895553c52dd0ab9e1058a1f6159a034d5421b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8632dbef03babd38018ed4ccd762b3501220676c0bd378ae3cd01a49399249c4
MD5 41c52cb26d7bf24c5fd215f87f9e7169
BLAKE2b-256 3a2ad78d1241e6a8e1d7951c0e17ef67ceb2978f940a1f84afbd302cbb9b4c95

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6bf5348bb20cb3b4d4ab762c7650478067bf10a0a61aecd3848ea620b45941d
MD5 afc0d2930b3e437707d804959656a782
BLAKE2b-256 fb348fcf76a38985dba446a0a69f3dbb190e3cecd2a77c04b3235a803b1c8f3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f67a71f6d3889ebf67177fed8dcbd9f9191f23c60bfa84b6009655e4e180f4db
MD5 90c51e2a7764759371ca0293cf5f2ad2
BLAKE2b-256 cd95c6873aa85e5271db98f037c4062f18af76f9e572a80d090311e1fc688c0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bdee0b7e459ab4dcf84750ca0c0598bd996459e827470ba834b609be2d2b18d9
MD5 ae8816c1a863eec950461365d263fac9
BLAKE2b-256 4686df0c7d28021cc7490f7c1ccce8213b818d998ba64615a765eec400aaf57e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 60d9519115372790f81a372c65eba52158f75df38c0501623737348f9a6057b8
MD5 547c14571d828758ec3564e56d8e12fc
BLAKE2b-256 9da0437513160f3cc70ea6121257b993bc0a49d6cc9eff9fc9970e18dc950c3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 90b72a4fbfce7fb5de5f2222fae47cbc84f7810e4c0120792ee6fe746e104c42
MD5 4dcf6db024bc5f91d054fc5028c086ba
BLAKE2b-256 226c97c50b1ad4fd4cc9c2569d0e05f0d55d4977e9793348611c22e2c7cb2dd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11f613e6b688f37b17704a467867b3d5290ecb22159a9f536a20052225d9a024
MD5 22c2d82ff41859cf6400865a61d8d555
BLAKE2b-256 d83214b11b88a2551a3531151ee51d7bc34c29f4bd82bb27d5cb8b35b079c651

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 18626a3ce7cb78889444af379dd5c346ae7c1732c29295ddf1a4c5d7b566c41d
MD5 e576efff9faf3d6fb1f3be63b49a7752
BLAKE2b-256 70e8017272b47da4cb76971282526766f36df51090d1adc56dfaac079ca1ca75

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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.25.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.25.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3be0cc11490448834b58f9eac9a116dd14f8efab5d0b8b9b46f3dd3b0ee26e35
MD5 0f9621ffeef607d0cba03277cf0efd7a
BLAKE2b-256 d911f6e78d7e856b7dd65d23b2ac9773427b8501f64bfcb5afb6061277ce10b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.25.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