Skip to main content

autoinference-utils

Shared endpoint abstractions (SGLangEndpoint, VLLMEndpoint) for autoinference deployments.

Publishing

Bump version in pyproject.toml and merge to main — CI publishes automatically via trusted publishing.

To publish manually: cd autoinference_utils && uv build && uv publish

SGLang defaults

SGLangEndpoint applies defaults that any deployment can override:

  • Server args in DEFAULT_OPERATIONAL_ARGS (metrics, cache report, --dist-timeout 3600). Any extra_server_args entry for the same flag replaces the default.
  • --tokenizer-backend fastokens when the image has fastokens installed. Pass --tokenizer-backend huggingface to opt out. Under fastokens the server also gets SGLANG_PARALLEL_PROMPT_ENCODE=0.
  • Environment in DEFAULT_ENV (keep-alives, the metrics device timer). The image env and extra_env override it.

SGLang lifecycle

  • start() launches SGLang in its own session, so Modal's SIGTERM+SIGINT to the container's process group does not reach it. stop() sends SIGTERM, which SGLang drains on, waits up to drain_timeout (default 150 s, keep it below the app's exit_grace_period), then kills the server's whole process group.
  • In a Modal container, start() then watches the server: if it exits or /health keeps failing for 60 s, it ends the container so Modal replaces it. Watching stops once stop() begins, so stop the server with stop() rather than signalling its process directly. Pass watch=False to opt out.

Metadata

Release files for autoinference-utils 0.3.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 autoinference-utils 0.3.0
File Size Uploaded Provenance Actions
autoinference_utils-0.3.0.tar.gz 31.2 kB Without provenance Details for autoinference_utils-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autoinference-utils 0.3.0
File Interpreter ABI Platform Actions
autoinference_utils-0.3.0-py3-none-any.whl Python 3 none any Details for autoinference_utils-0.3.0-py3-none-any.whl

Total release size: 67.6 kB

Release files / autoinference_utils-0.3.0.tar.gz

Download URL autoinference_utils-0.3.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6d9217a4a6217ee06a9b22e7bb1f3f6d226cdc87d69414dedd3a014906ae86ff
BLAKE2b-256 checksum
How to use checksums
2eb5695e178abdc0f594d032348057332c0356025c3be914d18acaca88638376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / autoinference_utils-0.3.0-py3-none-any.whl

Download URL autoinference_utils-0.3.0-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06f44e0b12401074d55b82e621cb592ad7cf751f9592b8d23f2e304f8dc14568
BLAKE2b-256 checksum
How to use checksums
c4f982a2d8191e4c63ef0c3327d4d541a1ed85be08410b50eb10d3a4b379230f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for autoinference-utils 0.3.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