Skip to content

Commit d4ec25e

Browse files
authored
[Fix] Fix serve model to adapt the latest Allocator signature (#1989)
PR apache/tvm#16738 updated the Allocator signature. This PR updates the caller side accordingly.
1 parent 3b9b51a commit d4ec25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/serve/model.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ModelImpl : public ModelObj {
6464
memory::MemoryManager::GetOrCreateAllocator(device_host, memory::AllocatorType::kNaive);
6565
ICHECK_NOTNULL(allocator);
6666
token_ids_storage_ =
67-
memory::Storage(allocator->Alloc({prefill_chunk_size_}, DataType::Int(32)));
67+
memory::Storage(allocator->Alloc(device_host, {prefill_chunk_size_}, DataType::Int(32)));
6868
this->logit_pos_arr_ = NDArray::Empty({max_num_sequence}, DataType::Int(32), device_host);
6969
}
7070

0 commit comments

Comments
 (0)