mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Apply suggestions from code review
Co-authored-by: OlivierDehaene <olivier@huggingface.co>
This commit is contained in:
parent
bef2f6bdaa
commit
4b375004c9
@ -25,14 +25,6 @@ pub struct RadixAllocator {
|
||||
|
||||
impl RadixAllocator {
|
||||
pub fn new(block_size: u32, n_blocks: u32, window_size: Option<u32>) -> Self {
|
||||
// assert_eq!(
|
||||
// block_size, 1,
|
||||
// "Radix tree allocator only works with block_size=1, was: {}",
|
||||
// block_size
|
||||
// );
|
||||
// if window_size.is_some() {
|
||||
// unimplemented!("Window size not supported in the prefix-caching block allocator yet");
|
||||
// }
|
||||
|
||||
RadixAllocator {
|
||||
allocation_id: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user