Commit Graph

177 Commits

Author SHA1 Message Date
Praneth Paruchuri
b12258bfaa [model-gateway] Optimize HTTP Router Fan-out: Replace Serial Execution with Concurrent Streams (#16042) 2026-01-04 23:38:45 -08:00
Ratish P
f02d82211a [model-gateway]: move PD configuration conflict checks to model gateway (#16088) 2026-01-05 14:16:07 +08:00
Simo Lin
4436dc0f6c [model-gateway] improve lock contention and allocation in middleware (#16405) 2026-01-04 10:40:07 -08:00
Simo Lin
cf6800f6cc [model-gateway] optimize Vec and HashMap allocations in responses api (#16406) 2026-01-04 10:07:55 -08:00
fzyzcjy
f16606d6f6 Super tiny code cleanup (#16401) 2026-01-04 23:00:09 +08:00
fzyzcjy
27a0830593 Tiny add manual policy benchmark to CI (#16392) 2026-01-04 19:10:35 +08:00
Chang Su
8d58b3dcdd [model-gateway] Clear architectual debt in responses API (#16359) 2026-01-03 21:35:28 -08:00
fzyzcjy
216ea910ad Tiny support forwarding SMG routing key to engine for dumping and avoid string allocation (#16352) 2026-01-04 08:33:35 +08:00
fzyzcjy
c88aaf22c7 Support in-flight request age metrics for router (#16341) 2026-01-04 07:38:53 +08:00
fzyzcjy
66dfb8c156 Tiny fix non-PD router http header missing whitelist (#16339)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-03 09:43:02 -08:00
Simo Lin
65b0b5b248 fix(logging): use Display format for model_id instead of Debug (#16337) 2026-01-03 00:21:39 -08:00
Chang Su
d8ac5eecf7 [model-gateway] bug fix on module name (#16332) 2026-01-02 21:56:18 -08:00
Chang Su
b23e7ed13c refactor(gateway): shorten logging targets from sgl_model_gateway to smg (#16328) 2026-01-02 21:12:33 -08:00
Chang Su
24c91001cf [model-gateway] code clean up in tokenizer register step workflow (#16316) 2026-01-02 16:05:10 -08:00
Chang Su
c4edcac6d7 refactor(core): remove get_by_model_fast alias in worker_registry (#16313) 2026-01-02 16:04:23 -08:00
Chang Su
e93433892b refactor(steps): consolidate duplicate strip_protocol function (#16318) 2026-01-02 16:02:42 -08:00
Chang Su
a2d4f58a96 fix(http): use 504 Gateway Timeout for upstream timeouts (#16320) 2026-01-02 16:01:44 -08:00
Chang Su
f66b091699 refactor(http): improve pd_types.rs documentation and style (#16319) 2026-01-02 16:01:11 -08:00
Chang Su
2f623368ab refactor(core): use idiomatic .min() in calculate_delay (#16314) 2026-01-02 15:46:13 -08:00
Chang Su
bd9a2ced47 refactor(core): use thiserror for WorkerError (#16315) 2026-01-02 15:33:07 -08:00
Chang Su
0ca417d9ae chore(core): remove unused serde_json import in worker.rs (#16312) 2026-01-02 15:31:41 -08:00
fzyzcjy
00562ee14a Support cache eviction for Manual Policy (#16263) 2026-01-02 08:52:01 +08:00
Simo Lin
851845579c perf(tree): optimize input_char_count calculation (#16238) 2025-12-31 15:29:37 -08:00
Simo Lin
60d7279c46 test(tree): add comprehensive unit tests and fix input_char_count bug (#16228) 2025-12-31 07:31:39 -08:00
Simo Lin
b4ce7a6d71 [model-gateway] cache_aware eliminate String allocations in hot path (#16209) 2025-12-31 00:26:10 -08:00
Simo Lin
9940c6f592 [model-gateway]: ASCII byte comparison and probabilistic timestamp updates (#16181) 2025-12-30 12:28:01 -08:00
Simo Lin
8c6f865afb [model-gateway]: optimize prefix_match with zero-copy tenant and deferred char count (#16099) 2025-12-29 11:32:57 -08:00
Simo Lin
f39382c6ca [model-gateway] Fix duplicate classify prefix in response ID (#16101)
Co-authored-by: Chang Su <chang.s.su@oracle.com>
2025-12-29 11:07:21 -08:00
Simo Lin
2ff289e2dc [model-gateway] Generate UUID-based request IDs for embedding/classify (#16100)
Co-authored-by: Chang Su <chang.s.su@oracle.com>
2025-12-29 10:49:58 -08:00
Simo Lin
b2a3f0551a [model-gateway] Wire classify pipeline to gRPC router (#16098)
Co-authored-by: Chang Su <chang.s.su@oracle.com>
2025-12-29 10:44:45 -08:00
Simo Lin
684e148e38 [model-gateway] Optimize INSERT with leaf-only timestamp updates (#16097) 2025-12-29 10:43:20 -08:00
Simo Lin
f44c4b3715 [model-gateway] Add classify pipeline stages and protocol types (#16094)
Co-authored-by: Chang Su <chang.s.su@oracle.com>
2025-12-29 10:23:36 -08:00
Simo Lin
ac78f96ec5 [model-gateway] Optimize radix tree timestamp updates for multi-tenant scaling (#16093) 2025-12-29 10:08:19 -08:00
Simo Lin
162d1cf9be [model-gateway] Add classification model support infrastructure (#16061)
Co-authored-by: Chang Su <chang.s.su@oracle.com>
2025-12-29 08:34:05 -08:00
Simo Lin
c31f62722c [model-gateway] fix tokenizer to match transformers special token handling (#16087) 2025-12-29 08:13:03 -08:00
Simo Lin
097330909f [model-gateway] update WorkerRegistryStats with connection mode and circuit breaker info (#16046) 2025-12-28 23:14:57 -08:00
Simo Lin
ec8c831d5a [model-gateway]: optimize metrics for minimal CPU and memory overhead (#16041) 2025-12-28 22:28:08 -08:00
Simo Lin
f13949e5a9 [model-gateway] perf: optimize observability logging for minimal CPU/memory overhead (#16039) 2025-12-28 21:20:46 -08:00
Simo Lin
9884c9fd4c [model-gateway] Organize Rust CLI arguments into logical groups for better --help output (#16036) 2025-12-28 20:25:38 -08:00
fzyzcjy
8fab48952e Tiny fix WASM test errors on machines with many cores (#15992) 2025-12-28 17:12:04 +08:00
fzyzcjy
26c5091217 Tiny extract PeriodicTask in router (#15988) 2025-12-28 14:07:13 +08:00
fzyzcjy
325a4c1945 Tiny add smg_manual_policy_cache_entries metric (#15987) 2025-12-28 14:07:07 +08:00
Ratish P
2af955e16c [model-gateway]: remove unnecessary comment (#15947) 2025-12-27 13:33:02 -05:00
Simo Lin
3645ed0f73 [model-gateway] Add PrefixHash load balancing policy for KV cache-aware routing (#15935) 2025-12-27 05:58:05 -05:00
Ratish P
ca740a41f3 [model-gateway]: fix grpc embedding test (#15934) 2025-12-27 05:56:54 -05:00
Simo Lin
0e25aa439b [model-gateway] optimize radix tree memory and reduce allocations (#15933) 2025-12-27 02:47:30 -08:00
Simo Lin
171912a9e3 [model-gateway] Add consistent hashing for ManualPolicy routing (#15907) 2025-12-26 22:53:03 -08:00
Simo Lin
4edee6954a [model-gateway] add JWT/OIDC authentication for control plane APIs (#15850) 2025-12-26 18:30:00 -08:00
Simo Lin
caa95c7eb4 [model-gateway] update ManualPolicy with header-based routing (#15847) 2025-12-25 13:04:43 -08:00
fzyzcjy
6ef543f99d Use X-SMG-Routing-Key header instead of json body and add tests (#15826) 2025-12-25 09:58:14 -08:00