mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
fix: Pass local dir to processor creation (#4018)
Signed-off-by: Alexandre Milesi <30204471+milesial@users.noreply.github.com> Co-authored-by: Alexandre Milesi <30204471+milesial@users.noreply.github.com> Co-authored-by: Haohang Huang <31998628+symphonylyh@users.noreply.github.com>
This commit is contained in:
parent
cba1793cda
commit
001e666fc5
@ -546,7 +546,7 @@ class LLM:
|
||||
# Multimodal special handling:
|
||||
# 1. Default load_tokenizer may fail because MM has different tokenizer configuration. Hence we initialize it inside input processor
|
||||
# 2. May need to modify model weights for MM (e.g., resize vocab embedding). We must do such operation via input processor's __init__
|
||||
self.input_processor = create_input_processor(self.args.model,
|
||||
self.input_processor = create_input_processor(self._hf_model_dir,
|
||||
self.tokenizer)
|
||||
self.tokenizer = self.input_processor.tokenizer
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user