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

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.26.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.26.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.26.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.26.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.26.0-cp310-cp310-macosx_11_0_arm64.whl (408.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.26.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.26.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.26.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 828da296af452320523d615e5c75715bbe51e76d1fe0fdb144916676d1b89502
MD5 68b2448773d51b9e4529957b965216a0
BLAKE2b-256 aef52ac8df5e394652568129d9a735993bba3b5c6cf5eb7425034f064c73e2a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 792478ca1a94a3fb7bc449c7f2b36f6d200ec4af2ce6e8c6f73f3d8ac1a31476
MD5 ac41d150903eaff46d76ae1a0955a17d
BLAKE2b-256 249c371aacee773b120966d92b4cfb24911464e30c6146622bb77344d603991e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b3596ecc3a03ca56bd9647c27ba0f2aafb67e5a90212d0b727a2c4455ae3b8f
MD5 fecce0fb8f6aa3871f2318d3075c0f46
BLAKE2b-256 2f2323595d87619fc1b9523a146bb6b23ff09b43894d3652a8e865a3f7ca522a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 83aeeecac3b51677610656da2e2d9ce447ddaf87fd390a7458a3dbe25bf289aa
MD5 e4212729f44d99a5f3224024d7316ee8
BLAKE2b-256 52e49c09fa050f1fe259d12f2b36842adf1011f6a5e10275b77c0ca823133ecc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d6b00057a77912ca58c46385c36d84f4f55f85595d2d5d15d5d0a23dafdcb74a
MD5 ea2bcfc884e200ada61b447830a0efd5
BLAKE2b-256 d41a895e449dcdd2a9de08b63f504883f13c91ff2c62113fcb2ac3a2c72102c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc54512e5dd88e2f65ea8136b2fdafec2c0a378deeddc5e2ae46f4015f61aa7e
MD5 de6aca7a9f96984b76937576cd93617c
BLAKE2b-256 15222a5356bb72cf3abd361c7db57fe138edab03f6d4d7a97e9f3dcfc6cc6564

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c393033dacb26677e4214642e00eeec2bbf7774bf941de0183c82087b4471e38
MD5 922f633c53b86c4076456de06e07fafc
BLAKE2b-256 0961b3c6c10c388d8aeb6a65b3d726e1e6ff715c1feab6a0e12d3e7a21d4958d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78aa3bbf9a723287df51137f5317539c4292aab2d6533ff7cc9b782a6638ff14
MD5 563610f4297069d0aef47bd7dbcf80cf
BLAKE2b-256 859c1d1da945173985e93d9ee573a52d13e2d8a9486c223bb1266694fa55973f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cb2fc7ccd509fe1d9abc26a854509b0d9f3eb90f486424851484426d0521e06b
MD5 057d1e314a9a413a4f17d53ac67c27d1
BLAKE2b-256 72d189cf2a825f29f7d6b678533668c27919091edbcea79407b3f646f000c16b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.26.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3aeac2e4cb9a0755f19762ea18efb32f1492509c415c298f951fef7cc8eee3f7
MD5 a1f18360993fc265744c2c9ff2c86ef9
BLAKE2b-256 853c7a079588dab0f67a9ccb9e0555544a77c58e2e8ba602e5f74a72ff2cbcee

See more details on using hashes here.

Provenance

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