Open iwqculrbud opened 4 days ago
keras-nlp
has been renamed to keras-hub
with the inclusion of image specific models , all the new development and future release will be as keras-hub
package.
You can install keras-hub
using
!pip install -Uq keras-hub
and the code is working without any issues.
import keras_hub
preprocessor = keras_hub.models.DebertaV3Preprocessor.from_preset(
preset= "deberta_v3_extra_small_en",
sequence_length= 512,
)
Even it is working with keras-nlp
as well, just that it will not have any latest update and there will not be any releases.
keras-nlp
has been renamed tokeras-hub
with the inclusion of image specific models , all the new development and future release will be askeras-hub
package.You can install
keras-hub
using!pip install -Uq keras-hub
and the code is working without any issues.
import keras_hub preprocessor = keras_hub.models.DebertaV3Preprocessor.from_preset( preset= "deberta_v3_extra_small_en", sequence_length= 512, )
Even it is working with
keras-nlp
as well, just that it will not have any latest update and there will not be any releases.
It sometimes doesn't work locally or on colab. Why are you unwilling to pursue stability?
If you are facing this in local you could try to upgrade or install the Keras NLP
or Keras Hub
package using
pip install -U keras-nlp
pip install -U keras-hub
For colab, restart the runtime and follow the same steps.
For Keras Hub announcement and details check https://github.com/keras-team/keras-hub/issues/1831