mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-04 00:06:38 +08:00
[SOT] Make custom_op dy&st unified (#2733)
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled
* make_custom_op dy&st unified * add instance judgement
This commit is contained in:
@@ -931,8 +931,8 @@ class LLMEngine(object):
|
||||
|
||||
def _setting_environ_variables(self):
|
||||
"""
|
||||
配置环境变量
|
||||
"""
|
||||
配置环境变量
|
||||
"""
|
||||
variables = {
|
||||
"PADDLE_TRAINER_ID": 0,
|
||||
"PADDLE_TRAINERS_NUM": 1,
|
||||
@@ -998,8 +998,8 @@ class LLMEngine(object):
|
||||
py_script = os.path.join(current_dir_path, worker_path)
|
||||
|
||||
ori_vocab_size = (
|
||||
len(self.data_processor.tokenizer.sp_model)
|
||||
if hasattr(self.data_processor.tokenizer, 'sp_model')
|
||||
len(self.data_processor.tokenizer.sp_model)
|
||||
if hasattr(self.data_processor.tokenizer, 'sp_model')
|
||||
else len(self.data_processor.tokenizer.vocab)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user