@@ -624,6 +624,36 @@ def logprobs_mode(parser):
624
624
choices = [None , 'raw_logits' , 'raw_logprobs' ],
625
625
help = 'The mode of logprobs.' )
626
626
627
+ @staticmethod
628
+ def dllm_block_length (parser ):
629
+ """dllm_block_length for dllm."""
630
+ return parser .add_argument ('--dllm-block-length' , type = int , default = None , help = 'Block length for dllm' )
631
+
632
+ @staticmethod
633
+ def dllm_unmasking_strategy (parser ):
634
+ """Dllm unmasking strategy."""
635
+ return parser .add_argument ('--dllm-unmasking-strategy' ,
636
+ type = str ,
637
+ default = 'low_confidence_dynamic' ,
638
+ choices = ['low_confidence_dynamic' , 'low_confidence_static' , 'sequential' ],
639
+ help = 'The unmasking strategy for dllm.' )
640
+
641
+ @staticmethod
642
+ def dllm_denoising_steps (parser ):
643
+ """Dllm denoising steps."""
644
+ return parser .add_argument ('--dllm-denoising-steps' ,
645
+ type = int ,
646
+ default = None ,
647
+ help = 'The number of denoising steps for dllm.' )
648
+
649
+ @staticmethod
650
+ def dllm_confidence_threshold (parser ):
651
+ """Dllm confidence threshold."""
652
+ return parser .add_argument ('--dllm-confidence-threshold' ,
653
+ type = float ,
654
+ default = 0.85 ,
655
+ help = 'The confidence threshold for dllm.' )
656
+
627
657
628
658
# adapted from https://github.com/vllm-project/vllm/blob/main/vllm/utils/__init__.py
629
659
class FlexibleArgumentParser (argparse .ArgumentParser ):
0 commit comments