Skip to content

无法加载模型 #3

@howie924

Description

@howie924

使用的都是官方链接下载的pytorch版本的bert和albert模型(各3个文件)

transformer版本是跟要求吻合的2.4.1

运行报错:
"Unable to load weights from pytorch checkpoint file. "
OSError: Unable to load weights from pytorch checkpoint file. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

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