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

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

Total release size: 18.9 MB

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

Download URL amesa_inference_test-0.42.5.dev122-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
cd5d1d0097b25fd8c3185f5be53fe7eb688b6193c391c2785f976457fadaf082
BLAKE2b-256 checksum
How to use checksums
680009cd3cb4edd0ddc716d2d71d3c960dd96ac2d0d2e9f76749c3436b2b906f
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-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
505fdf1b63750c7c5cd3f0051b27788792eae2f7b5ddab27d2210690e171b359
BLAKE2b-256 checksum
How to use checksums
fc636b59b2d3b563c016f7a062069136060590ff5cfafeabd1f4060d951af05b
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-cp311-cp311-macosx_11_0_arm64.whl
Size 562.6 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2ab5e2e2fe640fb179a936bb6e9a5a6f3dbc0d3dd10a7d957c0da416bf7f5c53
BLAKE2b-256 checksum
How to use checksums
c29cd5ad4ff34b3cbdc6e443119849bf2dac8ae3ef041cc962b927e8a6661fb8
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-cp311-cp311-macosx_10_9_x86_64.whl
Size 571.1 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
646fc8ce1d2bb12370baf3db9f9c2b8060cda3a6b3d2faecda0798a35fc84d44
BLAKE2b-256 checksum
How to use checksums
b6782ac7bda261a441f3ec1917daafa4a49a9f8d989379bc9d15bda22b49c1fe
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-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
30a51ac99b5445bd1306f82a2ceca800a6e3e8042832db01d7c72770d75464ac
BLAKE2b-256 checksum
How to use checksums
528f53c3714da4c925ddc8a69d1a27ec7448805b1e61ecb518dd0f240ec8e419
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-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
bf78a74f7bb440bc05bb08d8356018e8fb63b37347ae91cddd2b10e35c3f4d2b
BLAKE2b-256 checksum
How to use checksums
1642682f8e66208aaeed02543fd82208b0d25aa6d23186fcb23348d4e86d58bd
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-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
97300f8788f96a16b4449f08cfcb07ee15e3427d1fe5c2aa9c340903ac5dee4c
BLAKE2b-256 checksum
How to use checksums
5f74fdbe3f2dc2b5d53fc714d49244a65e6011de20d1d2ee683d30c68108c2b1
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-cp310-cp310-macosx_11_0_arm64.whl
Size 569.1 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6345059804630ac887f2e541e50fdef1de104ab6a0650eca13b325369ebc267c
BLAKE2b-256 checksum
How to use checksums
9150669f384c080e3ad616fbd4dabd76df8f3558c409f2ec3cbbcd89ca2fa68e
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-cp310-cp310-macosx_10_9_x86_64.whl
Size 577.7 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
d8ab40c9f84cfe7ad80dd2dd7c5c83a6ca4b6af38b2f969b714cab213515e4ea
BLAKE2b-256 checksum
How to use checksums
3e72ff6562449b9bdd8c2624f17be5b61c9618b7ee2c691e1dc25ac923af4389
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 2, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev122-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
a35c0bf62c458d7df1c40513589d97cb958e1db20b121939d47eb60f495dfe9f
BLAKE2b-256 checksum
How to use checksums
a5122e8b2b4ea9bc1daab9d996c22b8685782107f82cbcdedeb61fac64f2f958
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 2, 2026.

Transparency log

Security for amesa-inference-test 0.42.5.dev122

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.dev122-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 2, 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