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 @@ -419,7 +419,7 @@ def create_input_processor(
419419 model_path_or_dir: Path or repo id used to locate pretrained config/tokenizer.
420420 tokenizer: Tokenizer instance.
421421 checkpoint_format: Checkpoint format identifier. "HF" uses Hugging Face-style
422- config loading; any other value skips HF config loading. None is treated as "HF".
422+ config loading; any other value skips HF config loading.
423423
424424 Returns:
425425 An InputProcessor implementation (model-specific if registered; otherwise DefaultInputProcessor).
@@ -429,7 +429,7 @@ def create_input_processor(
429429
430430 model_config = None
431431
432- if checkpoint_format is None or checkpoint_format == "HF" :
432+ if checkpoint_format == "HF" :
433433 try :
434434 config = ModelConfig .from_pretrained (model_path_or_dir ,
435435 trust_remote_code = True )
You can’t perform that action at this time.
0 commit comments