Skip to content

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

@PoisonousBromineChan

Description

@PoisonousBromineChan

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文件夹中。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions