Update 1/model.py
This commit is contained in:
parent
94cc13f1ea
commit
dd748733bd
@ -98,6 +98,10 @@ class TritonPythonModel:
|
|||||||
self.tokenizer.chat_template is not None
|
self.tokenizer.chat_template is not None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self.logger.log_info(f"Supports Chat Template: {self.supports_chat_template}")
|
||||||
|
if self.supports_chat_template:
|
||||||
|
self.logger.log_info(f"Chat Template Content:\n{self.tokenizer.chat_template}")
|
||||||
|
|
||||||
def _get_bnb_config(self) -> Union[BitsAndBytesConfig, None]:
|
def _get_bnb_config(self) -> Union[BitsAndBytesConfig, None]:
|
||||||
if self.quantization == "int4":
|
if self.quantization == "int4":
|
||||||
return BitsAndBytesConfig(
|
return BitsAndBytesConfig(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user