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

Error on trying to run internlm/internlm-xcomposer2-vl-7b-4bit #222

Open
enkie358 opened this issue Jun 25, 2024 · 4 comments
Open

Error on trying to run internlm/internlm-xcomposer2-vl-7b-4bit #222

enkie358 opened this issue Jun 25, 2024 · 4 comments

Comments

@enkie358
Copy link

I get this error when I try to caption images with this model:

--
Loading internlm/internlm-xcomposer2-vl-7b-4bit...
Traceback (most recent call last):
File "auto_captioning\captioning_thread.py", line 532, in run
File "auto_captioning\captioning_thread.py", line 528, in run
File "auto_captioning\captioning_thread.py", line 415, in run_captioning
File "auto_captioning\captioning_thread.py", line 271, in load_processor_and_model
File "transformers\models\auto\auto_factory.py", line 558, in from_pretrained
File "transformers\modeling_utils.py", line 3451, in from_pretrained
OSError
:
internlm/internlm-xcomposer2-vl-7b-4bit does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack.

--

Any advice would be appreciated!

@enkie358 enkie358 changed the title Error on trying to run internlm/internlm-xcompser2-vl-7b-4bit Error on trying to run internlm/internlm-xcomposer2-vl-7b-4bit Jun 25, 2024
@jhc13
Copy link
Owner

jhc13 commented Jun 25, 2024

You have "Load in 4-bit" selected and the device is set to GPU, right?

@enkie358
Copy link
Author

enkie358 commented Jun 25, 2024 via email

@jhc13
Copy link
Owner

jhc13 commented Jun 25, 2024

That model can only be used with a GPU.

But the program should not have let you proceed if you selected CPU. Did you modify the code?

@enkie358
Copy link
Author

enkie358 commented Jun 25, 2024 via email

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

2 participants