SamplingParams
This commit is contained in:
parent
abeb373878
commit
f9ed548b54
2 changed files with 2 additions and 1 deletions
|
|
@ -20,4 +20,4 @@ from .mistral import FastMistralModel
|
|||
from .qwen2 import FastQwen2Model
|
||||
from .dpo import PatchDPOTrainer, PatchKTOTrainer
|
||||
from ._utils import is_bfloat16_supported
|
||||
from .rl import PatchFastRL
|
||||
from .rl import PatchFastRL, vLLMSamplingParams
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ torch_compile_options = {
|
|||
|
||||
|
||||
def vLLMSamplingParams(**kwargs):
|
||||
from vllm import SamplingParams
|
||||
sampling_params = SamplingParams(**kwargs)
|
||||
sampling_params._set_kwargs = kwargs
|
||||
return sampling_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue