mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-29 22:00:48 +00:00
feat(core): APP use new SDK component (#1050)
This commit is contained in:
@@ -4,9 +4,10 @@ For benchmarks.
|
||||
|
||||
"""
|
||||
import gc
|
||||
from typing import Iterable, Dict
|
||||
from typing import Dict, Iterable
|
||||
|
||||
import torch
|
||||
from fastchat.utils import get_context_length, is_partial_stop, is_sentence_complete
|
||||
from transformers.generation.logits_process import (
|
||||
LogitsProcessorList,
|
||||
RepetitionPenaltyLogitsProcessor,
|
||||
@@ -16,9 +17,6 @@ from transformers.generation.logits_process import (
|
||||
)
|
||||
|
||||
|
||||
from fastchat.utils import is_partial_stop, is_sentence_complete, get_context_length
|
||||
|
||||
|
||||
def prepare_logits_processor(
|
||||
temperature: float, repetition_penalty: float, top_p: float, top_k: int
|
||||
) -> LogitsProcessorList:
|
||||
|
||||
Reference in New Issue
Block a user