[BugFix] DeepSeek-OCR: apply NoRepeatNGramLogitsProcessor to greedy path (#28617)
Signed-off-by: Yuanping Song <yuanping.song@outlook.com>
This commit is contained in:
@@ -161,7 +161,7 @@ class NGramPerReqLogitsProcessor(AdapterLogitsProcessor):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def is_argmax_invariant(self) -> bool:
|
def is_argmax_invariant(self) -> bool:
|
||||||
return True
|
return False
|
||||||
|
|
||||||
def new_req_logits_processor(
|
def new_req_logits_processor(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user