Improve linear.py to load sharded weights & remove the dependency of Parameters from vllm (#2784)
Co-authored-by: SangBin Cho rkooo567@gmail.com
This commit is contained in:
@@ -99,7 +99,7 @@ class Session:
|
||||
|
||||
if last_req is not None:
|
||||
# trim bos token if it is an append
|
||||
if req.input_ids[0] == tokenizer.bos_token_id:
|
||||
if tokenizer is not None and req.input_ids[0] == tokenizer.bos_token_id:
|
||||
req.input_ids = req.input_ids[1:]
|
||||
|
||||
input_ids = (
|
||||
|
||||
Reference in New Issue
Block a user