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). Anyextra_server_argsentry for the same flag replaces the default. --tokenizer-backend fastokenswhen the image hasfastokensinstalled. Pass--tokenizer-backend huggingfaceto opt out. Under fastokens the server also getsSGLANG_PARALLEL_PROMPT_ENCODE=0.- Environment in
DEFAULT_ENV(keep-alives, the metrics device timer). The image env andextra_envoverride 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 todrain_timeout(default 150 s, keep it below the app'sexit_grace_period), then kills the server's whole process group.- In a Modal container,
start()then watches the server: if it exits or/healthkeeps failing for 60 s, it ends the container so Modal replaces it. Watching stops oncestop()begins, so stop the server withstop()rather than signalling its process directly. Passwatch=Falseto opt out.
Metadata
Release files for autoinference-utils 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autoinference_utils-0.3.1.tar.gz | 37.0 kB | Without provenance | Details for autoinference_utils-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autoinference_utils-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for autoinference_utils-0.3.1-py3-none-any.whl |
Total release size: 79.0 kB
Release files / autoinference_utils-0.3.1.tar.gz
| Download URL | autoinference_utils-0.3.1.tar.gz |
|---|---|
| Size | 37.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcab4861580355c4619b539725702c19f52d6b0359ff2bd9c12824bc9d044e90
|
|
BLAKE2b-256 checksum How to use checksums |
e92279763b38e51dcfab66f991e2e3fa461fc8e9729a403a77952bc89d286543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1-py3-none-any.whl
| Download URL | autoinference_utils-0.3.1-py3-none-any.whl |
|---|---|
| Size | 42.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac8498b556a6c111af380cfa5db0badbddcd4af71a3b36e1fe9c10971ccf679e
|
|
BLAKE2b-256 checksum How to use checksums |
654f9e5376c01b92d87b486e75e9d4b6e01c67da02f10647779ebb7d781e20f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1
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.