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

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.29.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.29.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.29.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.29.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.29.0-cp310-cp310-macosx_11_0_arm64.whl (408.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.29.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.29.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.29.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66927b81637c0486f9259279f33494040c58ab95192328f8e4e3b80cfade8727
MD5 d4864fc5b23e198b05b5ae854c1341c3
BLAKE2b-256 62ac60c9f442c5d3d8002838dce62eff8893082412edcd9a2ede4956cd32890a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5988b9739831919676a6dc0d460716ab07dd7d1806380810da2ad5cc75391608
MD5 ee4b0e12675b9cbdbe6a54ed3bc35697
BLAKE2b-256 fbee3fb5813fd5e6f701f9571182b5b505352dc08ef1662c618a9b454f5532f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79db4e9d450729b3450dac931e385c2950ceb59a8ae1c5f65ffb3a90b7bafc93
MD5 944820db4160b74b3e58f7d993e0868b
BLAKE2b-256 f1402e37c0376aa8ad260b44f233b6847ee8a58f4967b51c1118f58dacfde129

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3a35eefaa27a7a36ad05f909307ab7f27c1e8386db425358091db4e304706525
MD5 8905e7a1955aa2310e54e0de894cb872
BLAKE2b-256 90d370e9bb2f2a14ea815026d074a4c71b6599dd6020a4dd6b0ff75c65865478

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d49c916fc497f05ad452788b1a2755119bb2f6a53c08b423e84f44a4ac33ae83
MD5 87ef35b3234389d4eb12485e726f0c55
BLAKE2b-256 2133788846f1f09b764c54c03c512497ec2a2393a9a8829916a80539ada0a86d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 22e80fd9cfc8cc5ccbcd9bf878f111189f9eca3fcf5a54d8c8d3d56c561e1b78
MD5 bbf4e663a77c39e31a182a65d0d7ca48
BLAKE2b-256 7c56163469b836554ae51d01c62f01cbad1f1d59dba7dee7b94d443cdded0ce6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3d5b5cff786c2717b204f8e68748f1aaf1b933999e107b390605fff45cd995cd
MD5 5e4e91a7f70e332ab69dc4e4069c6967
BLAKE2b-256 449b8f5dc486aa6775b6a64e7231fe779576488eba6b06f1ca0267e94879954c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5eb4a501d392a714700b484c413434b4933aeef02f4efbbd977e45176f5002d
MD5 e84fecb94bbbd1b28c729b7d42e528da
BLAKE2b-256 391c82b68a34a83948b58e7667b39644367113b6842ba7d8fad1ed9462894a6e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9d01b8c21c55ae3c0490d4e01b84ebd2e8062157b5cd860c0e17922a8afbae37
MD5 8565852c572e556fdab27b8e325a7e78
BLAKE2b-256 1f9f62a50aef01cc37749b84d6a2a9df0a56e586f228f5bdbbce9182f6753546

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference-0.29.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a4bef4c87844adcbbe8c4691992517f33f72f172d2d802e4f615fc7e3161d61b
MD5 4492a6174205093cc7ed303fb98eee78
BLAKE2b-256 c82d6be494b2d9d8f077525c6225ace82e4b6097c8590408a6892309d0194b8d

See more details on using hashes here.

Provenance

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