keras-team / keras-nlp

Modular Natural Language Processing workflows with Keras
Apache License 2.0
740 stars 218 forks source link

Fix preprocessor from_preset bug #1549

Closed mattdangerw closed 3 months ago

mattdangerw commented 3 months ago

Our logic was slight messed up where calls like GemmaCausalLMPreprocessor.from_preset("gemma_2b_en") would always fail.