Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Amesa Inference

A lightweight inference package for running Amesa agents using ONNX models without Ray or PyTorch dependencies.

Overview

amesa_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 (agents, perceptors, controllers)
  • Compatible API: Similar interface to Trainer.package() for easy migration

Installation

pip install amesa-inference

Usage

InferenceEngine is internal: the runtime server and the benchmark run agents with it, and users run them through those rather than directly.

Authorization

The engine is authorized by amesa_core.utils.license_util.authorize_inference, with the first of these credentials (InferenceEngine(license=..., license_file=...) in place of the environment):

  • AMESA_LICENSE_FILE: a license file, validated offline (a runtime server's license.lic)
  • AMESA_LICENSE: a license key, validated by the license server
  • AMESA_PLATFORM_TOKEN: a compute job's platform token, as long as the platform accepts it
  • a USB license key, on a drive mounted on the machine

Without one, or with one that is rejected or not valid, InferenceEngine() raises LicenseError; when the server deciding it (the license server, or the platform) doesn't answer, LicenseServerError, a LicenseError that trying again may get past.

Running an agent

from amesa_inference import InferenceEngine

engine = InferenceEngine()
await engine.load_orchestration("path/to/orchestration.json")

# The top agent, or the one named by agent=
await engine.package()

# Each execute() is the episode's next step. The action comes back as the sim gets it in
# training: coerced to its action space and clipped to its bounds
action = await engine.execute(observation, sim_action_mask=action_mask)

# Start a new episode (fresh teachers, controllers and perceptors, no previous action)
await engine.reset()

await engine.close()

Remote agents, perceptors and controllers are handled as in training. Pass config (a NetworkMgr target, localhost:1337 by default) to reach them elsewhere.

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. ONNXAgentProcessor: Processes agents 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
  • amesa-core
  • amesa-api
  • onnxruntime
  • numpy

License

Proprietary and confidential - Copyright (C) Amesa, Inc

Metadata

Release files for amesa-inference-test 0.42.5.dev96

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for amesa-inference-test 0.42.5.dev96
File Actions
amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_11_0_arm64.whl
amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_x86_64.whl
amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_universal2.whl CPython 3.11 CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) Details for amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_universal2.whl
amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_11_0_arm64.whl
amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_x86_64.whl
amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details for amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_universal2.whl

Total release size: 18.9 MB

Release files / amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.7 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4318957f35539c4c34c1e5de55f9c46f863133d996c296722dde0927772446bf
BLAKE2b-256 checksum
How to use checksums
afeba3e2032d68674f8b37c596fcb519485fa6bb8f1d77c2ff9b7502892f41bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.7 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
c529b0636a4d6c41369daa961736efa55fcea85e70fbf54d8393e01456632cb8
BLAKE2b-256 checksum
How to use checksums
d68aeaab80a7d73e64e273e2130d4044fe3a76831fb4fdd82fbc821a0a64c043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_11_0_arm64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_11_0_arm64.whl
Size 562.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0ebb1c8ad20bfd7a98cf87338e698b68c678522736c495871fb2376013afea02
BLAKE2b-256 checksum
How to use checksums
f50bb247a912bd69d8069b858a7167efd946788550841d1d1ef5b4fd5a006e37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_x86_64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_x86_64.whl
Size 571.2 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
01e6bb85d184cdf567a0e68c0c4255151e0c4cb7ab8cb0cd8933f21587e06103
BLAKE2b-256 checksum
How to use checksums
138a17e50626bfec24351c1445c2966a14968a4fc5cde34d4672a5d24daf7a95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_universal2.whl

Download URL amesa_inference_test-0.42.5.dev96-cp311-cp311-macosx_10_9_universal2.whl
Size 1.1 MB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
f0eff0c15be30d3d4af1f3b902b44a1d802f6743a14a4988fcec48f00311953f
BLAKE2b-256 checksum
How to use checksums
837bbf60a4894b8dc58e10d003eb633b32860e445539be9371d39ba9ff4ab9d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ff4677236eef58e7d29c04dab8691ddb4a847644844b274c8de6926d4dcf2771
BLAKE2b-256 checksum
How to use checksums
883a94c8db9d5f7cd3fdbc9efed02e2548f265e099f79c4a4f4068d8df90caeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.5 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
88ab60a7d30721ff8917aa861abea7cd8f83ce8dee3240d86769cd1f971cc79c
BLAKE2b-256 checksum
How to use checksums
97fda7b3e2e2043335f6668c960a057fbcd09bb947c980538dc405b13544495c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_11_0_arm64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_11_0_arm64.whl
Size 568.5 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
14ff558c5cb1f3f6167c133db44a824fbebb46510887873d4329fbd56c58be68
BLAKE2b-256 checksum
How to use checksums
192abceb411f17f92ae773a126ce054aae280ada79504e413709a2f8b9414e6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_x86_64.whl

Download URL amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_x86_64.whl
Size 577.3 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
0337970d4d6e25dea5df2ae1304697b84c8b917928bd79312171ab4c82bb063a
BLAKE2b-256 checksum
How to use checksums
a27e9976ad9ca7b59aed8f6004bf10aaa4a32e93591fef24e4c32939a5f77f4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_universal2.whl

Download URL amesa_inference_test-0.42.5.dev96-cp310-cp310-macosx_10_9_universal2.whl
Size 1.1 MB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
61f57faa9c6ac45d1cff0497cffcf69e9caa04685798f199a78ed60248d25c66
BLAKE2b-256 checksum
How to use checksums
c1db313762b08abd72e88c2f874c5fc493c80d1c302756122f47734bb49dac06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for amesa-inference-test 0.42.5.dev96

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for amesa_inference_test-0.42.5.dev96-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page