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.dev139

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.dev139
File Actions
amesa_inference_test-0.42.5.dev139-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.dev139-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp311-cp311-macosx_11_0_arm64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp311-cp311-macosx_10_9_x86_64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp311-cp311-macosx_10_9_universal2.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp310-cp310-macosx_11_0_arm64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp310-cp310-macosx_10_9_x86_64.whl
amesa_inference_test-0.42.5.dev139-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.dev139-cp310-cp310-macosx_10_9_universal2.whl

Total release size: 19.3 MB

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

Download URL amesa_inference_test-0.42.5.dev139-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.8 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
669cfa067f740fb2f36fa29f96b67d9cedd8ffbf97389b3ae86bfb58a16a32fb
BLAKE2b-256 checksum
How to use checksums
12b6cbde20f0fce6e2214004d86f98c5cb78f8644f5da6e22efec80c60d2dbeb
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.8 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
70664122f999d94942dc06673bbc1ca42ebdb8a627d6d0871576d29f4f8f1c6f
BLAKE2b-256 checksum
How to use checksums
a9f017913c1bc37bcd544b6979af31c77e70aceb97dfce2c9e5822be291f3bfd
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp311-cp311-macosx_11_0_arm64.whl
Size 572.6 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
464c764c9985ab0b6bf48f414ca1f30b9b40c334dba20fdcf5691c8b55b643de
BLAKE2b-256 checksum
How to use checksums
9bc5616e21eabcf92663a64cb2d831a0aec190d04c25e9c491bc47da2a28d655
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp311-cp311-macosx_10_9_x86_64.whl
Size 582.3 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
2c105da495bf395970498f24b4ae6cb3a72270234b6777a08efdf2c3e8ff0e22
BLAKE2b-256 checksum
How to use checksums
ea431ea44fdb390d081face534fd3c9d55ca8ccc47ec2611e936b0e17eb0bfc9
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp311-cp311-macosx_10_9_universal2.whl
Size 1.2 MB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
1e16caebdcfff03a0207a04feea361ff165ccf479a5e1a2b2b485804fe82fff3
BLAKE2b-256 checksum
How to use checksums
e3e9bed58a6e61fdd9e2c03d05435cf4431f07fd076a142c58f33dc206a8c87e
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
aad4a33ed52a0e26475af94df7eabdb517437b42a4eb8a2bc3735a3361f3074b
BLAKE2b-256 checksum
How to use checksums
f961dc9e0cd9be9357f37d49b51672322195be6f235d3b1b1c777494765f6b04
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
7cc43e614a0f769c532a41aa226a8fb70f4cf979137814ad1fe8838b8b8f51e2
BLAKE2b-256 checksum
How to use checksums
8cea4602ce1e183f1f1921ef3502581d1e1f095c4a600ae505b6da7ad6b6f6b4
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp310-cp310-macosx_11_0_arm64.whl
Size 579.2 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3857bbae81cab153a06b6b53503f7eb46e3cea124d26fdbbd9622e1acbf03a3c
BLAKE2b-256 checksum
How to use checksums
03cc69336f4eaa3a1c146c58618e3bc53b0428bad2327f1d6e5ae76e724c6415
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp310-cp310-macosx_10_9_x86_64.whl
Size 589.6 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
9dbb80326861320762259fde163ef8c6e629bb2a55485f3084990864f47f2766
BLAKE2b-256 checksum
How to use checksums
ec59285a903f4f64f58b68645cf124ed27a63ad2726a94a653f8eaeba059c752
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 Nov 9, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev139-cp310-cp310-macosx_10_9_universal2.whl
Size 1.2 MB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
39ebd030bc05afd7a0faa361415387795aa9b0c94b65a0f5726e665856e8872f
BLAKE2b-256 checksum
How to use checksums
a584f47f0f505c7b9ad6b1002bf10c9c247d91643465d3bdb65c5dd64c76ef7d
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 Nov 9, 2026.

Transparency log

Security for amesa-inference-test 0.42.5.dev139

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.dev139-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 Nov 9, 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