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

关于运行代码时出现Segmentation fault (core dumped)的问题 #12

Open
IssacStudent opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@IssacStudent
Copy link

IssacStudent commented Nov 30, 2023

出现问题的模块

./Baselines/BERT

环境

CUDA:10.1
其余版本和类库按照README.md的Requirements配置。

表现

在运行到run_leven.py中加载NER模型的时候,会出现Segmentation fault (core dumped)。

ner_model = model_class.from_pretrained(
    args.model_name_or_path,
    from_tf=bool(".ckpt" in args.model_name_or_path),
    config=config,
    cache_dir=args.cache_dir if args.cache_dir else None,
)

解决

和sentencepiece库的版本有关,我这边是0.1.92,降级到0.1.91即可,解决方法详见issue

建议

建议在BERT的README.md中指定该类库版本,其他的我还没检查,如果其他的也需要的话,我会同步到这个issue中。

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

1 participant