Former-commit-id: f0dea1925e
group-chat
Kye 1 year ago
parent 5bfcf69ab6
commit 91fa79af9b

@ -2,7 +2,7 @@ import torch
import logging
from transformers import BitsAndBytesConfig
from transformers import AutoModelForCausalLM, AutoTokenizer #,# BitsAndBytesConfig
from transformers import AutoModelForCausalLM, AutoTokenizer
class HuggingFaceLLM:
def __init__(self, model_id: str, device: str = None, max_length: int = 20, quantize: bool = False, quantization_config: dict = None):

Loading…
Cancel
Save