Remove outdated TODO.

This commit is contained in:
Ryan Dick 2024-08-26 15:23:35 +00:00 committed by Brandon
parent 620f733110
commit bbf934d980

View File

@ -153,9 +153,7 @@ class T5EncoderCheckpointModel(ModelLoader):
case SubModelType.Tokenizer2: case SubModelType.Tokenizer2:
return T5Tokenizer.from_pretrained(Path(config.path) / "tokenizer_2", max_length=512) return T5Tokenizer.from_pretrained(Path(config.path) / "tokenizer_2", max_length=512)
case SubModelType.TextEncoder2: case SubModelType.TextEncoder2:
return T5EncoderModel.from_pretrained( return T5EncoderModel.from_pretrained(Path(config.path) / "text_encoder_2")
Path(config.path) / "text_encoder_2"
) # TODO: Fix hf subfolder install
raise ValueError( raise ValueError(
f"Only Tokenizer and TextEncoder submodels are currently supported. Received: {submodel_type.value if submodel_type else 'None'}" f"Only Tokenizer and TextEncoder submodels are currently supported. Received: {submodel_type.value if submodel_type else 'None'}"