pull/53/head
Kye 1 year ago
parent 272cb5fd1c
commit f0dea1925e

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

Loading…
Cancel
Save