-
Notifications
You must be signed in to change notification settings - Fork 5
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
Molmo-7B-D: Couldn't load caption model: Unknown Error #6
Comments
Unknown Error means it probably crashed without even raising an exception. Did you test other models or is this only a problem with Molmo? When using the run scripts, logs are written to If that's empty, you could try with this example script (the same that I also posted in your other issue): from infer.backend_molmo import MolmoBackend
def main():
config = {
"model_path": "/mnt/ai/Models/MM-LLM/Molmo-7B-D-0924/",
"gpu_layers": -1,
"vis_gpu_layers": -1,
"quantization": "none",
"max_tokens": 20
}
molmo = MolmoBackend(config)
prompts = [{"caption": "Describe this image in two sentences."}]
answers = molmo.caption("/home/rem/Pictures/red-tree-with-eyes.jpeg", prompts)
print(answers)
if __name__ == "__main__":
main() Running on Linux:
Running on Windows (didn't test):
|
I’m dealing with the same issue, but I’m using the InternVL2 model. I made some modifications to test.py, and although the flash attention isn’t working, it still gives me an answer. So, I think the model is functioning correctly.
|
Just tried this and it works! However using the UI doesn't. Interstingly, if I change: Line 15 in 47b54ce
to use |
Good catch! I could reproduce the error. Apparently, I didn't test this well enough as I didn't expect changing the run script could cause issues, sorry. I updated the run.bat and it does work for me now, also when using pythonw. I suspect the start command broke the pipes. Thanks! |
I've downloaded the whole folder from https://huggingface.co/allenai/Molmo-7B-D-0924/tree/main and I've added it to the list of models.
However, when trying to caption an image using Molmo, I get:
Couldn't load caption model: Unknown Error
Are there any logs stored somewhere that I can read and investigate?
Thanks!
The text was updated successfully, but these errors were encountered: