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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ea0a7754bf0994f2706f38a14664a497d9395dcc93eb3dbd3eb3768607be91b
MD5 6a2aa893f606025d8d90f132d70be30f
BLAKE2b-256 d17053eeff041ee293b2d808c691fb2e4fc8ecf6fb15bcfdde84be7744df13ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f6fb8343d2f9cc0a90aec31e583c0cfb456849599f90583d4a4aaa27d7a46faa
MD5 dc29037c63353bd3c6c4f8b486ccc2c6
BLAKE2b-256 033960098d185799a3d28cfc98d53bc7e87cd8e26ddf33bb755081d99c833222

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a78998e878c25d5cafd72a665f389f5b0ee84eb8f3582bc7bb015157c073f9ec
MD5 5fd5e114d3af58630f76924ebc446601
BLAKE2b-256 d44b9d538ff12430422609b844f4944cc45c3d68b183fbd28bd904648641a9ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3c344d4c07c157df824b9ae5e587e319a4175e1695f2608903170b3858f69fd0
MD5 742d361ebff4d6306b2d62388eecb439
BLAKE2b-256 d2895f86cf40c8cc651b37b2337e474fc8d77f52fe94bb1c2c8678d68a1dcf43

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3f3195c9a026a5749090dd6b40a5efe3b9da2acc24ea22dd8e2bac41802cd7df
MD5 6f7d730a8c6a5e760d71328b2aeaf7c6
BLAKE2b-256 1f838f3338bf03ef31a3b4ce2b2ccf11ae8aeb94900463656b4a060c1ab7bc4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2aa58b83fcb010255a82b20e6e4e4c9beee52568913273c4b6648121e28be6c2
MD5 eff15c4a0611e44df4f45a85963e65eb
BLAKE2b-256 34cc06fc17850760e5765531955940f841564e3b2cd69ad3a1f890c89e64fa30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 da43a9f636f40e4710a16c358dbbb862ca19080c5ba0759cdb6376cd0f56fb87
MD5 545579ae153d4baf9a5aa88519eb1cc6
BLAKE2b-256 af8b02aeb43bc5fc0a3405642a140c211c0718ac7049fc4bfefe05937bc24c26

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0e8288221af4a95f9c73648af26cead9ce481d1795b4ca1a12d2e9779cedf9b
MD5 45b059f74844406f3729e9c249249f5a
BLAKE2b-256 6dc3e68192a300169aa8f454be2356cdb19a1a026e97cac001b4a3a22b7f60af

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b0f535bf68af357574b6690a2f07da6fe99e8cbbc8dbe63c63d75aad67087784
MD5 139c32501ecab973a0834c4369b10e0f
BLAKE2b-256 b3f907387189dfc32f00acdf02abb0c75889787f4f6977ae3e64d29c1a592a24

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e4a38d4212d8e121cdb087c78b6573d0779420d843754af01702bc75572cf969
MD5 d35a97b35bf6073a170dca6c09eea164
BLAKE2b-256 59125b87f4bcecf685b557a72110fcd543c248d308c10abd6d65e17b8a566fed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27178d7e57d8ffb09188ff4fd410fb0ab5b944ce54c24ae4057fa9ca9f6fe87b
MD5 3b58106518f8e0d0b1c4658a13263acb
BLAKE2b-256 7b569f645fcfbb87035ff2fe220c4036f8306e224c3bd0b08206f77f74a6a16c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 505841fc038fe501354dce0b17771a37c7abd592c2a7afd93c14a23cf35e5531
MD5 e85848b9626c78d4449acfe5c4ad956b
BLAKE2b-256 ae618e50501d9b00166f6ddadf1e031a1ed7bf24054ed7f0469ef5890640e73a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc89f238f4c19ed8940693261be5f31527a43a859bfe0c23602c55fb93bc6b14
MD5 ae7886ecdf6613167699eeebe3df4874
BLAKE2b-256 442692578ae3070b3a48687a9660ae2c207bc7c42c81f94aca232928e7207e7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9ec5905aa8338f5bbc5b83ed1a23f32dbf5cae3c0db434c04944ffac58f28bb4
MD5 f8281daf0215674b0e29b4863f0d095d
BLAKE2b-256 53a512eef9c7c3ec4defcec0a10291dd66a2195e5c991817a03c66b3662c35df

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.28.0.dev6-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f24b863e038f255216de6109298f7b85339a6b468c74e787ef83204d76270e3e
MD5 7377266369799dec30f7b7ebc0643d44
BLAKE2b-256 c0ff1639e2cb9b73e24f0f42c59b22b1fc2b9fcfc244bb825151f6576254ea5c

See more details on using hashes here.

Provenance

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