Closed PaulSteffen-betclic closed 10 months ago
@PaulSteffen-betclic please pull the latest branches. there was a recent fix. if you are using our merlin-tensorflow:23.08 image, you need to do
cd /models
git pull origin main
pip install .
@PaulSteffen-betclic please pull the latest branches. there was a recent fix. if you are using our merlin-tensorflow:23.08 image, you need to do
cd /models git pull origin main pip install .
I'm currently using the version 23.8.0+5.g16d289a77, which include this recent fix
@PaulSteffen-betclic please pull the latest branches. there was a recent fix. if you are using our merlin-tensorflow:23.08 image, you need to do
cd /models git pull origin main pip install .
I also tried to use the latest branches, using the merlin-tensorflow:nightly image (23.08 do not work on macOS) and always the same error.
@PaulSteffen-betclic after you load the model can you please do this step before you convert it to topk_encoder model?
loaded_model = tf.keras.models.load_model(path)
# this is necessary when re-loading the model, before building the top K
_ = loaded_model(mm.sample_batch(dataset, batch_size=128, include_targets=False))
@PaulSteffen-betclic after you load the model can you please do this step before you convert it to topk_encoder model?
loaded_model = tf.keras.models.load_model(path) # this is necessary when re-loading the model, before building the top K _ = loaded_model(mm.sample_batch(dataset, batch_size=128, include_targets=False))
It fix this issue ! Thanks !
Bug description
Can't use a loaded model, saved after using
.fit()
method.Steps/Code to reproduce bug
First, a warning is logged when saving the retrieval model:
Then, an error occured when using the loaded model:
Expected behavior
Use the loaded model to create a top k encoder.
Environment details