Hello, I have see this model on hugging face: alirezamsh/small100 · Hugging Face. Is it m2m100 12B distilled with same quality. I have tried to convert it with ctranslate2 with this command:
ct2-transformers-converter --model alirezamsh/small100 --output_dir m2m100_418
and I have this error:
2022-12-27 22:44:39.167109: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-12-27 22:44:39.937672: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory
2022-12-27 22:44:39.937756: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory
2022-12-27 22:44:39.937766: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
/home/jourdelune/.local/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/jourdelune/.local/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
return self._float_to_str(self.smallest_subnormal)
/home/jourdelune/.local/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/jourdelune/.local/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
return self._float_to_str(self.smallest_subnormal)
Traceback (most recent call last):
File "/usr/local/sbin/ct2-transformers-converter", line 8, in <module>
sys.exit(main())
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/converters/transformers.py", line 539, in main
converter.convert_from_args(args)
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/converters/converter.py", line 50, in convert_from_args
return self.convert(
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/converters/converter.py", line 97, in convert
model_spec.validate()
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 458, in validate
super().validate()
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 107, in validate
self._visit(_check)
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 219, in _visit
visit_spec(self, fn)
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 45, in visit_spec
visit_spec(value, fn, scope=_join_scope(scope, name))
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 43, in visit_spec
visit_spec(elem, fn, scope=_join_scope(scope, "%s_%d" % (name, i)))
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 45, in visit_spec
visit_spec(value, fn, scope=_join_scope(scope, name))
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 45, in visit_spec
visit_spec(value, fn, scope=_join_scope(scope, name))
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 47, in visit_spec
fn(spec, _join_scope(scope, name), value)
File "/home/jourdelune/.local/lib/python3.10/site-packages/ctranslate2/specs/model_spec.py", line 89, in _check
raise ValueError("Missing value for attribute %s" % name)
ValueError: Missing value for attribute decoder/layer_3/self_attention/layer_norm/gamma
Someone know why I have this issue? Normally it’s exactly the same model that m2m100.
Sincerely.