Skip to main content

AISim

Built with Llama. Historical bundled Llama model-configuration metadata is credited in the third-party notices, which identify the applicable versions, sources and license terms. Those configuration files are excluded from this release.

AISim predicts LLM serving behavior and searches for deployment configurations offline, without bringing up a GPU serving cluster. The Python package includes the simulation engine, performance estimator and profiles, Replay, Sweeper, and deployment generation through the compatibility CLI and generator SDK.

Website · Repository · CLI guide

External materials notice and disclaimer

NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.

Install

Use Python 3.11–3.13. This branch builds the renamed aisim distribution; these commands require its publication on your selected index. Until then, use a historical aisimulate release in a separate environment or build from source:

python3 -m pip install aisim
aisim --help

The aisim wheel provides both aisim and aisimulate; both commands use the same entry point. Python imports remain aisim and aisim_core.

The built-in engine runs without Dynamo. See the installation guide for platform requirements, source builds, nightly artifacts, and compatible Dynamo installations. Documentation on main may describe features newer than the latest published wheel. The optional Dynamo Planner integration requires additional dependencies described in that guide.

Migrate from the aisimulate distribution

The distributions share their Python files and CLI, so uninstall aisimulate before installing or upgrading to aisim.

The commands below repair package files in an environment that already has AISim 0.14.0's dependencies. When upgrading from an older release, insert python3 -m pip install aisim==0.14.0 && after the uninstall line and before the force-reinstall line. This dependency installation must succeed before the following --no-deps repair, which leaves those dependencies in place.

python3 -m pip uninstall -y aisimulate &&
python3 -m pip install --force-reinstall --no-deps aisim==0.14.0 &&
python3 -m pip check

If both names are already installed, use a fresh environment or uninstall aisimulate and force-reinstall your selected aisim wheel to repair overlapping files. Keep a Dynamo environment on the old distribution until its Dynamo release requires aisim; otherwise dependency resolution can reinstall aisimulate. Import names remain aisim and aisim_core.

Predict one deployment

Save the following as prediction.yaml:

engine:
  mode: aggregated
  model: Qwen/Qwen3-32B-FP8
  hardware: h200_sxm
  backend: vllm
  workers:
    aggregated: {}
aisim predict --config prediction.yaml --output-dir ./prediction

The CLI prints a serving summary and writes the full report to prediction/prediction.json. Prediction uses the built-in engine stack by default; --stack dynamo selects a separately installed compatible Dynamo runner.

Search for a deployment

Save the following as recommendation.yaml:

traffic:
  source: {type: synthetic, input_tokens: 1024, output_tokens: 128}
  load: {type: concurrency, concurrency: 10}
  stop: {requests: 100}

engine:
  mode: aggregated
  model: Qwen/Qwen3-32B-FP8
  hardware: auto
  backend: {choices: [vllm, sglang]}
  workers:
    aggregated:
      parallelism: {preset: default}

optimization:
  target: throughput_per_gpu
  hardware: h200_sxm
  constraints:
    max_candidate_gpus: 8

optimizer:
  max_trials: 8
aisim recommend --config recommendation.yaml --output-dir ./recommendation

This quickstart evaluates suggestions for the explicit 1,024-input/128-output-token, 10-concurrent-request workload above, with an eight-trial budget.

Inspect recommendation/recommendation.json for search results and recommendation/recommendations/ for concrete prediction YAML files to replay. The CLI guide covers workload inputs, latency constraints, and detailed output. To create deployment manifests and launch scripts, use the bundled compatibility CLI or generator SDK; see the deployment generation guide.

Documentation and coverage

Estimator coverage is separate from serving-accuracy and deployment validation. Use the published evidence for your workload and verify deployment choices with real benchmarks.

Legacy CLI compatibility

The wheel provides the legacy aiconfigurator command through AISim 0.13.0. Removal is targeted for AISim 0.14.0, after every remaining workflow has a verified replacement in the unified CLI. Use aisim for new prediction and recommendation workflows. The migration guide explains replacements and remaining differences; the legacy CLI guide documents retained commands.

The canonical Python imports are aisim and aisim_core. AISim 0.13.0 removes the aiconfigurator and aiconfigurator_core import namespaces; see the Python source migration guide for replacement imports. The legacy executable remains available as described above.

When upgrading from standalone AIConfigurator, remove the old distributions first so that AISim owns the installed files. The dependency prerequisites and additional install step in Migrate from the aisimulate distribution also apply here:

python3 -m pip uninstall -y aiconfigurator aiconfigurator-core aisimulate &&
python3 -m pip install --force-reinstall --no-deps aisim==0.14.0 &&
python3 -m pip check

Metadata

Release files for aisim 0.14.0

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

Source distribution (sdist)

Source distribution for aisim 0.14.0
File Size Uploaded Provenance Actions
aisim-0.14.0.tar.gz 65.2 kB Without provenance Details for aisim-0.14.0.tar.gz

Release files / aisim-0.14.0.tar.gz

Download URL aisim-0.14.0.tar.gz
Size 65.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4287e8dcaa59e212fb7dd4ff25240d9bb086d670b4164f3c9b27294d92efa12f
BLAKE2b-256 checksum
How to use checksums
b4f24394dfdbf3141023e54c96abfafffd5a1ccdc71c0a9cccda726a3aa516ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for aisim 0.14.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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