Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694057b6-101c-8007-9a65-c40578c7252d
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== ### ==== Each worker instance is created with a TimeoutPolicy, e.g. * connect_timeout_s (TCP connect) * headers_timeout_s (time to receive HTTP headers / accept the request) * idle_stream_timeout_s (once streaming, max time with no bytes) * prefill_liveness_timeout_s (before first byte/token, max time with no liveness evidence) * absolute_timeout_s (optional, usually None) * restart_backoff_s and max_restarts_per_window (crash-loop protection) Default stance for your environment * connect_timeout_s: small (1–3s) * headers_timeout_s: moderate (10–30s) * prefill_liveness_timeout_s: large (e.g., 20–60+ minutes) or None if you want “never kill slow prefill unless dead” * idle_stream_timeout_s: moderate/large (e.g., 60–300s) since once it’s streaming, silence usually means trouble * absolute_timeout_s: None by default ===== Timeouts that apply before first token depend on having something to watch. Require: ===== * liveness_probe_interval_s * liveness_sources list (enabled/disabled): - subprocess alive (always) - /proc/<pid> CPU time delta (portable on Linux) - optional GPU activity sampling (NVIDIA-only; nice-to-have) Define a single internal value per request: * last_liveness_at * last_stream_byte_at * and a derived last_progress_at = max(last_liveness_at, last_stream_byte_at) All “stall” logic keys off last_progress_at. ===== Callers can override upwards or downwards within guardrails: ===== * e.g., submit(..., timeouts_override={ "absolute_timeout_s": 3600 }) Precedence: # request override (if provided) # worker policy # module hard minimums/maximums (safety rails) ===== If a timeout triggers, the request ends with: ===== * FAILED(reason="headers_timeout") * FAILED(reason="prefill_liveness_timeout") * FAILED(reason="idle_stream_timeout") * FAILED(reason="absolute_timeout") and the worker may also: * restart the subprocess for stall-type reasons (prefill/idle), per policy. ===== You can optionally define a few named presets (just for convenience in your higher-level config): ===== * fast: aggressive timeouts (small models) * normal: reasonable defaults * slow_prefill: huge/disabled TTFT + large prefill liveness * debug: disables restarts, logs everything But the key requirement is the policy object, not the naming.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)