Open kennysong opened 9 months ago
Can you try pip install -U tensorflow==2.10
?
Basically transformer
tried to import module keras.saving.hdf5_format
that no longer exist in the latest version.
Relevant stackoverflow: https://stackoverflow.com/questions/74586892/no-module-named-keras-saving-hdf5-format
Yeah, downgrading TensorFlow could resolve this problem for a user using langcheck.eval.factual_consistency()
in an environment with TF installed.
We should also investigate if there's a better way to handle this in the LangCheck package. Or maybe it needs to be fixed upstream in transformers
.
Ran into this pretty surprising bug while running tests in an environment that had TF installed. To reproduce:
Relevant versions:
See error message below: