runtime error
args) File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/huggingface_hub/hub_mixin.py", line 511, in from_pretrained instance = cls._from_pretrained( File "/usr/local/lib/python3.10/site-packages/huggingface_hub/keras_mixin.py", line 494, in _from_pretrained model = keras.models.load_model(storage_folder) File "/usr/local/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler raise e.with_traceback(filtered_tb) from None File "/usr/local/lib/python3.10/site-packages/tensorflow/python/saved_model/function_deserialization.py", line 283, in restored_function_body raise ValueError( ValueError: Exception encountered when calling layer "f_net_decoder" (type FNetDecoder). Could not find matching concrete function to call loaded from the SavedModel. Got: Positional arguments (4 total): * Tensor("inputs:0", shape=(None, None, 512), dtype=float32) * Tensor("encoder_outputs:0", shape=(None, None, 512), dtype=float32) * None * False Keyword arguments: {} Expected these arguments to match one of the following 2 option(s): Option 1: Positional arguments (4 total): * TensorSpec(shape=(None, None, 512), dtype=tf.float32, name='inputs') * TensorSpec(shape=(None, None, 512), dtype=tf.float32, name='encoder_outputs') * TensorSpec(shape=(None, None), dtype=tf.bool, name='mask') * False Keyword arguments: {} Option 2: Positional arguments (4 total): * TensorSpec(shape=(None, None, 512), dtype=tf.float32, name='inputs') * TensorSpec(shape=(None, None, 512), dtype=tf.float32, name='encoder_outputs') * TensorSpec(shape=(None, None), dtype=tf.bool, name='mask') * True Keyword arguments: {} Call arguments received: • args=('tf.Tensor(shape=(None, None, 512), dtype=float32)',) • kwargs={'encoder_outputs': 'tf.Tensor(shape=(None, None, 512), dtype=float32)', 'training': 'None'}
Container logs:
Fetching error logs...