mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
Use different id for batch vs liveness
This commit is contained in:
parent
080542dbca
commit
6f608f0d84
@ -5,6 +5,7 @@ use text_generation_client::{
|
||||
};
|
||||
|
||||
const LIVENESS_ID: u64 = u64::MAX;
|
||||
const BATCH_ID: u64 = u64::MAX - 1;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub(crate) struct Health {
|
||||
@ -49,7 +50,7 @@ impl Health {
|
||||
}),
|
||||
};
|
||||
let batch = Batch {
|
||||
id: u64::MAX,
|
||||
id: BATCH_ID,
|
||||
requests: vec![liveness_request],
|
||||
size: 1,
|
||||
max_tokens: 2,
|
||||
|
Loading…
Reference in New Issue
Block a user