-
Notifications
You must be signed in to change notification settings - Fork 204
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
Model bert_uncased_L-12_H-768_A-12 #401
Comments
Hello @edersoncorbari , Yes - this should work using the Bert model in this crate. You would need to convert the weights to the |
Tks! I tried the conversion, follow the steps: git lfs install The python conversion is created without any problems. But when I run the rust code below, the error occurs: thread 'main' panicked at 'Could not open configuration file.: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/edmc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rust-bert-0.21.0/src/common/config.rs:40:34 Code: let model = SentenceEmbeddingsBuilder::local("resources/bert_uncased_L-12_H-768_A12").with_device(tch::Device::cuda_if_available()).create_model()?; let sentences = ["this is an example sentence", "each sentence is converted"]; Any suggestion? Thanks, |
The error message seems to indicate the configuration file is missing -- can you check that all the configuration ( |
Hi, congratulations on the project!
I'm trying to port my Python project to Rust, in my case I use the model (bert_uncased_L-12_H-768_A-12)!
Does this model work with rust-bert?
https://huggingface.co/google/bert_uncased_L-12_H-768_A-12
Thanks,
EDMC.
The text was updated successfully, but these errors were encountered: