fix problems

This commit is contained in:
zhanghy-sketchzh 2023-06-08 15:02:37 +08:00
parent a644d3ac6c
commit c022e70a50

View File

@ -106,7 +106,7 @@ class FalconAdapater(BaseLLMAdaper):
def loader(self, model_path: str, from_pretrained_kwagrs: dict):
tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False)
if QLORA == True:
if QLORA:
model = AutoModelForCausalLM.from_pretrained(
model_path,
load_in_4bit=True, #quantize