Hi,
I am trying to add the XML-RoBERTa model in the BERT Model Selector using URL.
I copied the model file in the advanced field URL:
https://dl.fbaipublicfiles.com/fairseq/models/xlmr.large.tar.gz
which I got from fairseq/examples/xlmr at master · pytorch/fairseq · GitHub
which I got from: XLM-RoBERTa — transformers 4.3.0 documentation
and get this:
> ERROR BERT Model Selector 0:813 Execute failed: SavedModel file does not exist at: C:\tmp\96aaca13c84ac93a707e2fdba4863bae02bd5229/{saved_model.pbtxt|saved_model.pb}
> Traceback (most recent call last):
> File “”, line 4, in
> File “C:\Program Files\KNIME\plugins\se.redfield.bert_0.0.1.v202012081121\py\bert_utils.py”, line 8, in load_bert_layer
> return hub.KerasLayer(bert_model_handle, trainable=True)
> File “C:\Users\mauri\Anaconda3\envs\py3_knime_tf2_cpu\lib\site-packages\tensorflow_hub\keras_layer.py”, line 146, in init
> self._func = load_module(handle, tags)
> File “C:\Users\mauri\Anaconda3\envs\py3_knime_tf2_cpu\lib\site-packages\tensorflow_hub\keras_layer.py”, line 398, in load_module
> return module_v2.load(handle, tags=tags)
> File “C:\Users\mauri\Anaconda3\envs\py3_knime_tf2_cpu\lib\site-packages\tensorflow_hub\module_v2.py”, line 102, in load
> obj = tf_v1.saved_model.load_v2(module_path, tags=tags)
> File “C:\Users\mauri\Anaconda3\envs\py3_knime_tf2_cpu\lib\site-packages\tensorflow\python\saved_model\load.py”, line 578, in load
> return load_internal(export_dir, tags)
> File “C:\Users\mauri\Anaconda3\envs\py3_knime_tf2_cpu\lib\site-packages\tensorflow\python\saved_model\load.py”, line 588, in load_internal
> loader_impl.parse_saved_model_with_debug_info(export_dir))
> File “C:\Users\mauri\Anaconda3\envs\py3_knime_tf2_cpu\lib\site-packages\tensorflow\python\saved_model\loader_impl.py”, line 56, in parse_saved_model_with_debug_info
> saved_model = _parse_saved_model(export_dir)
> File “C:\Users\mauri\Anaconda3\envs\py3_knime_tf2_cpu\lib\site-packages\tensorflow\python\saved_model\loader_impl.py”, line 113, in parse_saved_model
> constants.SAVED_MODEL_FILENAME_PB))
> OSError: SavedModel file does not exist at: C:\tmp\96aaca13c84ac93a707e2fdba4863bae02bd5229/{saved_model.pbtxt|saved_model.pb}
There is no documentation on this Redfield extenson on this point.
any help is apreciated to make BERT text classification possible for everyone