File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ def create_input_processor(
449449 model_path_or_dir: Path or repo id used to locate pretrained config/tokenizer.
450450 tokenizer: Tokenizer instance.
451451 checkpoint_format: Checkpoint format identifier. "HF" uses Hugging Face-style
452- config loading; any other value skips HF config loading. None is treated as "HF".
452+ config loading; any other value skips HF config loading.
453453
454454 Returns:
455455 An InputProcessor implementation (model-specific if registered; otherwise DefaultInputProcessor).
@@ -459,7 +459,7 @@ def create_input_processor(
459459
460460 model_config = None
461461
462- if checkpoint_format is None or checkpoint_format == "HF" :
462+ if checkpoint_format == "HF" :
463463 try :
464464 config = ModelConfig .from_pretrained (model_path_or_dir ,
465465 trust_remote_code = True )
You can’t perform that action at this time.
0 commit comments