playmak3r commited on
Commit
10a5d6b
1 Parent(s): b86b61f

update model config

Browse files
Files changed (1) hide show
  1. server/model.py +1 -1
server/model.py CHANGED
@@ -15,7 +15,7 @@ class SugoiTranslator:
15
  self.sp_source_model = os.path.join(modelDir, "spm.ja.nopretok.model")
16
  self.sp_target_model = os.path.join(modelDir, "spm.en.nopretok.model")
17
  # inter_threads: quantas operações independentes podem ser executadas simultaneamente
18
- self.translator = ctranslate2.Translator(modelDir, device="cpu", intra_threads=4, inter_threads=1)
19
 
20
  def tokenizeBatch(self, text):
21
  sp = spm.SentencePieceProcessor(self.sp_source_model)
 
15
  self.sp_source_model = os.path.join(modelDir, "spm.ja.nopretok.model")
16
  self.sp_target_model = os.path.join(modelDir, "spm.en.nopretok.model")
17
  # inter_threads: quantas operações independentes podem ser executadas simultaneamente
18
+ self.translator = ctranslate2.Translator(modelDir, device="cpu", intra_threads=4, inter_threads=2)
19
 
20
  def tokenizeBatch(self, text):
21
  sp = spm.SentencePieceProcessor(self.sp_source_model)