mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 12:54:52 +00:00
adding max_token_capacity_metric
This commit is contained in:
parent
1d1b1efa01
commit
85baa5da89
@ -1727,6 +1727,8 @@ pub async fn run(
|
|||||||
.install_recorder()
|
.install_recorder()
|
||||||
.expect("failed to install metrics recorder");
|
.expect("failed to install metrics recorder");
|
||||||
|
|
||||||
|
metrics::counter!("max_token_capacity").increment(u64::from(max_batch_total_tokens));
|
||||||
|
|
||||||
// CORS layer
|
// CORS layer
|
||||||
let allow_origin = allow_origin.unwrap_or(AllowOrigin::any());
|
let allow_origin = allow_origin.unwrap_or(AllowOrigin::any());
|
||||||
let cors_layer = CorsLayer::new()
|
let cors_layer = CorsLayer::new()
|
||||||
|
Loading…
Reference in New Issue
Block a user