Elffuss BraidHub

kikocis/mlx-vlm public

Merge pull request #27 from Blaizzy/Blaizzy-patch-1

Update README.md
Changesetb3aab86e9f7527d69f0eb99985250efaceba20d063aba72d15db0569bb6ed09b
AuthorPrince Canuma <prince.gdt@gmail.com> · 2024-05-18 18:08 +02:00
CommitterGitHub <noreply@github.com> · 2024-05-18 18:08 +02:00
Parentsf7a231f0d8a6, 2c8133be0999

Browse the files at this changeset

1 file changed

modified README.md +2 −2
@@ -33,11 +33,11 @@
3333 model_path = "mlx-community/llava-1.5-7b-4bit"
3434 model, processor = load(model_path)
3535
36-prompt = processor.apply_chat_template(
36+prompt = processor.tokenizer.apply_chat_template(
3737 [{"role": "user", "content": f"<image>\nWhat are these?"}],
3838 tokenize=False,
3939 add_generation_prompt=True,
4040 )
4141
4242 output = generate(model, processor, "http://images.cocodataset.org/val2017/000000039769.jpg", prompt, verbose=False)
43-```
No newline at the end of the file
43+```