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.28.0.dev9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.28.0.dev9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.28.0.dev9-cp312-cp312-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.28.0.dev9-cp312-cp312-macosx_10_9_x86_64.whl (408.1 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.28.0.dev9-cp312-cp312-macosx_10_9_universal2.whl (812.8 kB view details)

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

amesa_inference_dev-0.28.0.dev9-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_dev-0.28.0.dev9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.28.0.dev9-cp311-cp311-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.28.0.dev9-cp311-cp311-macosx_10_9_x86_64.whl (411.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.28.0.dev9-cp311-cp311-macosx_10_9_universal2.whl (815.6 kB view details)

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

amesa_inference_dev-0.28.0.dev9-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.28.0.dev9-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.28.0.dev9-cp310-cp310-macosx_11_0_arm64.whl (408.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.28.0.dev9-cp310-cp310-macosx_10_9_x86_64.whl (414.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.28.0.dev9-cp310-cp310-macosx_10_9_universal2.whl (821.0 kB view details)

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

File details

Details for the file amesa_inference_dev-0.28.0.dev9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f7f27453bf8557bf9cad1ab9502af1b883a72dcb5190c8a35072a570417809d
MD5 b4990a690680fd1239e1efcf7633f8e6
BLAKE2b-256 1f612e8fa501798c69e1d10dd90c60758692fda8138d0ace76cfb308447a6fa5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bb56b0523097504f81b57cb39f282caa3bba1388390d1dacca033276c337de17
MD5 83fff7bb531156585ab73c9ea767e828
BLAKE2b-256 afd2f2d13f9bd87b70f4145c4ce49d2797f2f64cae11aa308ca9282f7ca86ce9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a531e0a80c933a38f4863d1ea70323230535709e8814140d612a5f70e446830
MD5 7a13521b7eec65e3c5de2b9ea13c4900
BLAKE2b-256 5731e217a6a1b35db54c185ffab5fd74f58ad4a1a52b4d59005a52d4ab00e66f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0b3db6853b99d805c5f75712a3a89763f944aa7308b88a89d8120f32cce58049
MD5 7c3a5705a46d34d1e1dcff6d0e3f7e63
BLAKE2b-256 c96e4d944ff2305463c5cae71fbe6e25c68fe7d4142d7358261e182b1eace315

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 df5543aaab35bf0471919b12b317a6f4616dac434aad3b1755b4b0d65cf3e224
MD5 9f98e619ed01e827f130b73fa516f757
BLAKE2b-256 786fe8ff18c9b08e234c30fc2581c97faf5e447ffd55cc3dbad597bfc7812376

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 695d66785dd6408edd4bcea3675af57bfada760f22e541c3157304e6896674d3
MD5 b1324be88857b9d47c227e1876b0104d
BLAKE2b-256 a9588e1225782ee3a727d3aa335466f1265c3cf25ad88c97efb937e55b6fa398

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f5006de83e15f12663d2cfbefe756bd798a7f886b6f9d5971745560e8e716df
MD5 a0f8b95c3ea0357866eb3831bbeab6bb
BLAKE2b-256 2eb319030ec87454f0ca4206e23741696896c8cb5ea6110e15441028c35dfe28

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cba192b86fa832c682583c4d599bc2503946cb7186691873894fcdc1f43d607f
MD5 e95afbf4787c19b4a677e6272f5fd6a1
BLAKE2b-256 257b05153c489848571a1f9437ef2ce2b1e9d975a7eb91c6ef1f8e7f161d80ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 70f7288a426ac4748e8b0be68f19ed62fb07845dfb8a5ff698a8e45e711e2140
MD5 54e11991328cfa7dd4327612c645269a
BLAKE2b-256 f0c0427c72fc4b69a96452a7ed97d8e35bea4acc82f19b46f1209623362c6dde

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 45869af51fe9d81b69f16c5d813e9b0999b30fd2aaaec64dc3a987743f827f2e
MD5 13eb985efbebc1ba74656e850690d94d
BLAKE2b-256 f9d6137143b7327b7f16a00f08c19de696fbef3c435cd914b5377273244d1b95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b411fc60175c7160a33a78d3cf599672600488525bc38e7add1bdec587e3b986
MD5 fd3e60acb12e4b181190cf6e739a5134
BLAKE2b-256 0d2af7565c1beff229f6b7dd849f111927cdaca976222e3f5c1c72d9dd99b42d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9a2d139242d2cfa3e9b866ae00bcaae132c1a1ac6d36526a7022cd6bb75fd68b
MD5 abd00e8b778ed42ad2d2fb9fc8e42f73
BLAKE2b-256 ff40606e8966a58fd0eec5b38adde16c325b33f93e86ae43787c1d060385b844

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f6dbc1deed080f113668e82ab2201ef54d4cdcf0fa49658453633e28d8e22f6
MD5 844529bb36b9cc494e2f85031123f37f
BLAKE2b-256 a9115b46bb17c5f81ef28909afb0f34efd3bc993c3a673163404d965693eaae1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 677aad346abb0c7dadeac7d34b81b28e7b04c8be19bcc1b909153f71677f1ad8
MD5 6e2fc8ae75e8642eaa99647abeb78c10
BLAKE2b-256 615ae041714ffd6dfd716932adabf94364ee35c1a8bd5425829061084200d2b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev9-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e5504c81167f2d7e0248223bf02398b3f27148527e85dbb87e77849c70e23544
MD5 0a571b2bbdadd3bb94db3dce5d59992d
BLAKE2b-256 9bfc64d25e73b67e67e432018be628bb0ed1a0dea8aa8f01cfb35696938a7861

See more details on using hashes here.

Provenance

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