-
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
JoyCaption support #5
Comments
Hi! That would be great! Yes, I think it should work and the package requirements should already be met. When integrating it in qapyq, it should follow the structure of the other backends. A For building the device map: The new backend then has to be registered here: https://github.com/FennelFetish/qapyq/blob/main/main_inference.py#L9 For testing, this example script could be of use: 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() Thanks! Please feel free to ask any questions if needed. |
Oh, and another note: Error messages and debug output should be written to stderr instead. |
@2snEM6 Any updates? Are you still interested in integrating JoyCaption? |
Hi! I love your tool and I'd love to contribute by integrating JoyCaption (https://huggingface.co/spaces/fancyfeast/joy-caption-alpha-two)
Do you think it can be integrated?
Thanks
The text was updated successfully, but these errors were encountered: