keras-team / keras-nlp

Modular Natural Language Processing workflows with Keras
Apache License 2.0
730 stars 215 forks source link

Allow importing keras_nlp without tensorflow #1660

Open mattdangerw opened 1 month ago

mattdangerw commented 1 month ago

This change does not break the dependency of tensorflow for all text preprocessing, so most real world workflows will still require a tensorflow install.

But this would allow running some modeling in Jax with all preprocessing done with a separately library.

And most important, this will give friendly, actionable install instructions the first time something is used that requires a tensorflow install.