llms: add models

This commit is contained in:
csunny
2023-05-20 16:06:32 +08:00
parent c0532246af
commit cbf1d0662a
4 changed files with 18 additions and 2 deletions

View File

@@ -30,7 +30,6 @@ model_path = LLM_MODEL_CONFIG[CFG.LLM_MODEL]
ml = ModelLoader(model_path=model_path)
model, tokenizer = ml.loader(num_gpus=1, load_8bit=ISLOAD_8BIT, debug=ISDEBUG)
#model, tokenizer = load_model(model_path=model_path, device=DEVICE, num_gpus=1, load_8bit=True, debug=False)
class ModelWorker:
def __init__(self):