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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-cp312-cp312-macosx_10_9_universal2.whl (788.4 kB view details)

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

amesa_inference_dev-0.20.7.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-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.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d04eb633fe0d49c961c001c652dca3f5711eb446fe9e26e08364561ab7ab4fe1
MD5 7bd4576d315bac522f9c1f2acc0f9576
BLAKE2b-256 2019716396d6444a8459075129907c14eec63db7203e048ecb254e23ec729526

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 37e928f5eb30e838df09b6d30ba302cd4fc1a42a5903b8bef3e58cc7a042eee4
MD5 0ebf46409c5a29509f924fedaed424a8
BLAKE2b-256 ca6779d60d6c6093175f57427787f9152715bb90ecea77b30f8d6a62b5ac1345

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a7d05b1b5692762e7c28be1da0c9cd39f0d2eaba7547357659a56260ddb5e0a
MD5 d619956d1b6891c3532f956d03a70c14
BLAKE2b-256 511935efabf676107d0176f47dcaed89fdf7e89bf093ef6790e3c9f1f93315bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6a3cc4ed88bdf8a4dd022065d169fe05187c175b927834aeac0c0726dc36d25d
MD5 8c038a94ce3844e1f74d06956acd9216
BLAKE2b-256 780929df0966285e6751258d8dac2f953803e2282e36ba9f61f8b66fce409d44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e1ea2b014b8f53072556a573aecccadfabcd69fa89c480e490f5581696686a35
MD5 15c53762bb0ae040f5f1f11cdd7339bb
BLAKE2b-256 e2658ad11131ccdc5e6b91634760dd5e4c1f85385ca403e9a972b552da2882ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c43e1040c0c0c7cb26f3e210e467353494cd742e72f48928e8a3e4a8d3993fb3
MD5 0378729bb9bde2fd94e09fbe6a3b6d7c
BLAKE2b-256 e3551d121a3269012faa4ccc384d7590e46e471e7174404ca54e8ab912526193

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b22ae8db197feb74d48420227bb0f09bf1e953a547a32c18daeccc606d6e9791
MD5 d17361297158ee223c14106eba976335
BLAKE2b-256 07f80c60156c8310bf0ec9b02e5b95b7aea4a9c8adef276401540dc5191854cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 472988db7216c27b79df5129547ae36323d9d635665e23091b5f3c6411f0eb66
MD5 541d0b3675874a9df61400955977b585
BLAKE2b-256 0c309955e4c7ac94fa1af828b66681208bb655f6f612faf3972040723c5c534d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 217e0774a1bcf0854e48d9478eb6dd1b7293341968b2bc9e359f96df0f9cd69b
MD5 cdbd72b01e90213c5c7cdcf8a64d9c73
BLAKE2b-256 dee835aecf0b9f8f6952f5dc015f8033cceef9c1682f3dfb557b69a370aed2d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a598c7d7dee77630268f386678c83974cad948b4e0d31708941067dcfb290136
MD5 8a9629168e8e22fe91a14516e74fb64d
BLAKE2b-256 ab779e13a9ab6125dc44dbfda9e4a236365d5e5f15d8465737a8dfdff65ac2e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51ad6c56179cdbe8679d39ea54f837299597319fe5173d2f2e62473f7dc0cfbb
MD5 7ab2b2cc29ca717fb4221f10b04de865
BLAKE2b-256 ea77b939290cd3fc9114d2ecdc7c8770bca44d81297c835558d2b9123dd43aab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 63cae8d53b44dbef54282ec19d0fe295e4105a9556f6a55ba70440d55b3dcb48
MD5 14ad31688926f17071f01eeadf4f0412
BLAKE2b-256 c4cf791c7537181cf8378f55a3bb9c3c8ae722ff10b642d77358d1086da151d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3b46a46408da9af70ced5e35b9111ff3c9b683de1c9326762a43b5a031ed175
MD5 89aacd6af53b5b9293e9a97ac819036e
BLAKE2b-256 96452643d3340702bd3df91124756e02a30eb91c3b52cf8a079233beec87cd7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 10039b76b8030c63e7fded95a3899833dc48eb81d4a28b00b41ebbdfc80a0514
MD5 d097adb4349c61242d90edfe7af57d92
BLAKE2b-256 e6e17055c000a96fd41cf484a88b993936f843653dc67ee327cc8ef5d8f8baac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.20.7.dev6-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 175124608542bba6fb4d677f3aae6546ef3fef0a32e7fe73d1fa7ffa223ae895
MD5 0572937f6dae4564df1af816e204d1b1
BLAKE2b-256 e0e9092222c23e87d76868a7aa254342c7b1fb01dd3af6815cae1ba81b9fce1d

See more details on using hashes here.

Provenance

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