4 Commits

Author SHA1 Message Date
Ceaser1717
21a919d79f
Fix: prevent infinite “A5A5A5...” repetition loop during text generation (Issue #1008)
Added a simple repetition detection inside the generate() loop to stop the model 
from endlessly producing patterns like “A5A5A5...”. 

- Imported `re` for regex pattern matching.
- Stops generation if “A5” repeats 10+ times or the same token appears 10 times.
- Prints a warning and exits safely instead of looping infinitely.

Fixes: #1008
2025-10-21 16:02:03 +05:30
Roman Fitzjalen
2756e130c2 clarify assertion error 2025-01-28 13:16:54 +01:00
enoch kan
a1296f099e Enhance documentation and update .gitignore for model conversion scripts 2025-01-05 18:18:18 +00:00
stack-heap-overflow
4c2fdb8f55 Release DeepSeek-V3 2024-12-26 19:01:57 +08:00