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

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

Total release size: 19.3 MB

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

Download URL amesa_inference_test-0.42.5.dev153-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
135ec678c8375a3f014aed50fcc7679e9082da1d6f3b64e2b9009e6bd3f11ee1
BLAKE2b-256 checksum
How to use checksums
cdcac2baa2f720c510ea90b90fd6a0ecd68a474f7830ec74c3cdf2e945e64731
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
d621d9e4e3eb57e25bcf9936fe85d290814cf9ff03c0f031e9dc446f2b0d521c
BLAKE2b-256 checksum
How to use checksums
ca693db98f7e23432f5eac07074c3a8fed218aa0ae5eba25a517458430f3bfd6
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
25decc1e86b56726b48a1a307029cbfae0ed479a98365bc462a3aaaab4f9af88
BLAKE2b-256 checksum
How to use checksums
6b56c18e8ab501c3f8bd2f4a7d180b4a0faad45996e079ff8e8127af7dd78ca5
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
fb3b9770c570556652b3d7d369b8576ccea24445c22121b40916e39eda9111eb
BLAKE2b-256 checksum
How to use checksums
88650d206aa22d02fa08cf06d93e0fc36db2fa84de73c0fa283c46fa8712be76
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
487d2df2925178a46ab231ae058f995490b7f9df0ed9afa8203787c1c6006966
BLAKE2b-256 checksum
How to use checksums
65c174a5a19e1e418936414c5d4bd3a3c5990bcc21c299f8ee3d68ff0d423114
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
4f59f0afaae3d48e6dcd299ba14186870bfd35a7b373890a9a8a75dbdaa182bf
BLAKE2b-256 checksum
How to use checksums
1f862e9457b1aa46265516e1490954414b871a11f42a4ace57c14ecec4d08973
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
4eec0952e979b5a6750e1478b3ccbc4f53f3b70fe5066a058792c240b79e6601
BLAKE2b-256 checksum
How to use checksums
9331a20283f8518fa2551417b5e3fa3535ef1d12babf9c54bfda5a58ac80fb5a
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
77dfee97c57d8d7a5deccae1ba0e6299f1ac1f530ad23dcae3cf25e5a1ab63c6
BLAKE2b-256 checksum
How to use checksums
d36294166b5f8e49ad2a6a7f316c51e829770312b92bc2e5544d8431661dd802
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
9a3bfa144a70aeb8d63851085c3b5427233fca1c41a851ac6b51438c5e471199
BLAKE2b-256 checksum
How to use checksums
c0a732b49cc9bb83d7e684d384077814e6822ae38e1338e01faf312b3716dc98
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 10, 2026.

Transparency log

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

Download URL amesa_inference_test-0.42.5.dev153-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
380b80bad387605ea1a3be2170f4dec440acc65c2f8e165e058453c59dc7ad46
BLAKE2b-256 checksum
How to use checksums
4cc89b5aab2ebe4fc0f6ff210efc980e0123b6077fec5922ebecb976842bdfdc
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 10, 2026.

Transparency log

Security for amesa-inference-test 0.42.5.dev153

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.dev153-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 10, 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