-
Notifications
You must be signed in to change notification settings - Fork 566
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
[Bug] TypeError: expected str, bytes or os.PathLike object, not NoneType #942
Comments
Hi, Please try tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True, use_fast=False) |
Hi, in the script for the medical-4B model, this line in the script is the same with one you provided. I hit the issue as well. If you want to load a model using multiple GPUs, please refer to the
|
Is your model directory a local directory? You can check whether the file is downloaded completely. |
@chenyucheng0221 @yuecao0119 I am also facing the same issue with the 'OpenGVLab/Mini-InternVL2-4B-DA-BDD'. I tried this tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True, use_fast=False) but no luck. Thanks |
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True, use_fast=False) , in this line, you can revise as tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True) , it is useful for me when using InternVL2-4B-medical in Windows10 environment. |
Checklist
Describe the bug
Hi,
When I run Mini-InternVL2-DA-Medical-4B and 2B model, I will hit the following issue, seems like cannot find the vocab file. could you kindly help have a look? Thanks!
Reproduction
I copy script in this website https://huggingface.co/OpenGVLab/Mini-InternVL2-4B-DA-Medical and run
Environment
Error traceback
The text was updated successfully, but these errors were encountered: