Fixed a rare bug over training multiple times

This commit is contained in:
Christian Risi 2025-10-04 10:47:39 +02:00
parent 25a6ad1254
commit 23d1eaf99e

View File

@ -107,7 +107,7 @@ class NanoSocraTrainerPool:
bpe = NanoSocratesBPE() bpe = NanoSocratesBPE()
BPE = bpe BPE = bpe
if BPE.vocabulary_size > self.__max_vocabulary: if BPE.vocabulary_size >= self.__max_vocabulary:
return BPE return BPE
exit = False exit = False