mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-07 03:14:42 +00:00
fix problems
This commit is contained in:
parent
a644d3ac6c
commit
c022e70a50
@ -106,7 +106,7 @@ class FalconAdapater(BaseLLMAdaper):
|
|||||||
|
|
||||||
def loader(self, model_path: str, from_pretrained_kwagrs: dict):
|
def loader(self, model_path: str, from_pretrained_kwagrs: dict):
|
||||||
tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False)
|
tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False)
|
||||||
if QLORA == True:
|
if QLORA:
|
||||||
model = AutoModelForCausalLM.from_pretrained(
|
model = AutoModelForCausalLM.from_pretrained(
|
||||||
model_path,
|
model_path,
|
||||||
load_in_4bit=True, #quantize
|
load_in_4bit=True, #quantize
|
||||||
|
Loading…
Reference in New Issue
Block a user