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

issue in predict.py while loading the trained model no config.json file #6

Closed
manishhnnegi opened this issue Feb 16, 2024 · 4 comments

Comments

@manishhnnegi
Copy link

manishhnnegi commented Feb 16, 2024

while loading model its not able to load model due to no config.json file present in the generated model directory.

OSError: misca does not appear to have a file named config.json. Checkout 'https://huggingface.co/misca/main' for available files.
also after loading model while prediction its asking for sequence_length and heads which is not present in the inputs dictionary.

@tmrnvcome
Copy link

i have the same issue too.

@thinhphp
Copy link
Collaborator

Hi, we have updated the predict.py file. You should set hyper-parameters the same as training, and have the checkpoint file (model.bin) in model_dir argument.

@tmrnvcome
Copy link

tmrnvcome commented Mar 29, 2024 via email

@thinhphp
Copy link
Collaborator

Yes, you can change it to 'roberta' in this case, but our code can be used with other BERT-based PLMs.

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

3 participants