缺少modules.json文件

#9
by GodsDusk - opened

每次加载模型时 SentenceTransformer.py 都会去检查 modules.json:

                if not os.path.exists(os.path.join(model_path, 'modules.json')):
                    # Download from hub with caching
                    snapshot_download(model_name_or_path,
                                        cache_dir=cache_folder,
                                        library_name='sentence-transformers',
                                        library_version=__version__,
                                        ignore_files=['flax_model.msgpack', 'rust_model.ot', 'tf_model.h5'],
                                        use_auth_token=use_auth_token)

不联网的环境还挺不方便的

Moka HR SaSS org

好的,感谢提醒,我添加一下。

Moka HR SaSS org

已添加

Sign up or log in to comment