Refactor OmniLLM and MultimodalOutputProcessor initialization
- Removed AsyncOmniLLM from the main entry points as it is not supported yet. - Updated the constructor of MultimodalOutputProcessor to set a default value for engine_core_output_type. - Adjusted output type handling in various methods to utilize the new default engine_core_output_type for consistency.
This commit is contained in:
1 parent
1bf3424e96
commit
3265e857eb
3 files changed
+8
-7
No files matched your search
@@ -138,7 +138,8 @@ class OmniStageLLM(LLM):
|
||||
self.llm_engine = LLMEngine.from_engine_args(
|
||||
engine_args=engine_args, usage_context=UsageContext.LLM_CLASS)
|
||||
self.llm_engine.output_processor = MultimodalOutputProcessor(tokenizer=self.llm_engine.tokenizer,
|
||||
log_stats=self.llm_engine.log_stats)
|
||||
log_stats=self.llm_engine.log_stats,
|
||||
engine_core_output_type=engine_args.engine_output_type)
|
||||
self.llm_engine.processor = OmniProcessor(vllm_config=self.llm_engine.vllm_config,
|
||||
tokenizer=self.llm_engine.tokenizer)
|
||||
self.engine_class = type(self.llm_engine)
|
||||
|
||||
Reference in new issue
Block a user