Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use model file locally instead of linking to Huggingface? How to modify the code? #39

Open
PoisonousBromineChan opened this issue Feb 21, 2024 · 2 comments

Comments

@PoisonousBromineChan
Copy link

Hello, due to the server not being able to access the internet and connect to the huggingface, I can only download the model and run it on the server. May I ask how to modify the code when using local model files for training and evaluation? My bert base uncased folder is located in the ./hfl/bert-base-uncased folder.
你好,由于服务器不能翻墙上网,连不上huggingface,我只能下载好模型放到服务器中运行。请问使用本地模型文件进行训练与评估,代码该怎么改?我的bert-base-uncased文件夹放在项目./hfl/bert-base-uncased文件夹中。

@yw3l
Copy link

yw3l commented Feb 24, 2024

in method 'build_tokenizer' of 'dict_hub.py' file.

@PoisonousBromineChan
Copy link
Author

PoisonousBromineChan commented Feb 25, 2024

好的,谢谢!另外,我想咨询一下,如果用华东理工大学的医疗数据(数据下载链接http://openkg.cn/dataset/symptom-in-chinese)该怎么修改代码?整个SimKGC项目是否适用于其他数据集?
Okay, thank you! Also, I would like to inquire about using medical data from East China University of Science and Technology (data download link) http://openkg.cn/dataset/symptom-in-chinese )How to modify the code? Is the entire SimKGC project applicable to other datasets?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants