mirror of
https://github.com/allenai/olmocr.git
synced 2025-06-27 04:00:02 +00:00
Hmm adjusting params
This commit is contained in:
parent
c85324b936
commit
f003933f54
@ -336,7 +336,7 @@ async def apost_streaming_completion(url, json_data):
|
||||
full_content += delta["content"]
|
||||
repeat_detector.add_letters(delta["content"])
|
||||
|
||||
if any(ngram > 100 for ngram in repeat_detector.ngram_repeats()):
|
||||
if any(ngram > 300 for ngram in repeat_detector.ngram_repeats()):
|
||||
logger.warning(f"Error, detected ngram repeat in generation {repeat_detector.ngram_repeats()}, aborting")
|
||||
finish_reason = "repeats"
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user