TensorRT-LLMs/tensorrt_llm/scaffolding/__init__.py
Zhenhuan Chen 6983e8a00d
[https://nvbugs/5517260][fix] move scaffolding contrib module's import to subdirectory (#7758)
Signed-off-by: Zhenhuan Chen <chenzhh3671@gmail.com>
2025-09-17 11:36:33 +08:00

40 lines
1.4 KiB
Python

# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
from .benchmark import ScaffoldingBenchRequest, async_scaffolding_benchmark
from .controller import (BestOfNController, Controller, MajorityVoteController,
NativeGenerationController, NativeRewardController,
ParallelProcess, PRMController)
from .math_utils import (extract_answer_from_boxed, extract_answer_with_regex,
get_digit_majority_vote_result)
from .scaffolding_llm import ScaffoldingLlm
from .task import GenerationTask, RewardTask, Task, TaskStatus
from .task_collection import (GenerationTokenCounter, TaskCollection,
with_task_collection)
from .worker import OpenaiWorker, TRTLLMWorker, TRTOpenaiWorker, Worker
__all__ = [
"ScaffoldingLlm",
"ParallelProcess",
"Controller",
"NativeGenerationController",
"NativeRewardController",
"PRMController",
"MajorityVoteController",
"BestOfNController",
"Task",
"GenerationTask",
"RewardTask",
"Worker",
"OpenaiWorker",
"TRTOpenaiWorker",
"TRTLLMWorker",
"TaskStatus",
"extract_answer_from_boxed",
"extract_answer_with_regex",
"get_digit_majority_vote_result",
"TaskCollection",
"with_task_collection",
"GenerationTokenCounter",
"async_scaffolding_benchmark",
"ScaffoldingBenchRequest",
]