"I encountered the same problem with a different HuggingFace model and managed to resolve it. I'm not sure if the solution is identical, but I will share the method I used in case it can help to resolve this issue:
Download Dependency Walker from the link below: https://github.com/lucasg/Dependencies?tab=readme-ov-file
Run the DependenciesGui.exe file by clicking on it.
Go to File -> Open -> and click on the libtorchcodec_core7.dll file located in D:\Projects\UrbanNoiseClassifier.venv\Lib\site-packages\torchcodec\.
The error is caused by missing DLL files, which appear with a red question mark (?). Download the DLL files marked with a ? through a Google search, and when you re-run the code, it should execute without any issues."