-
Notifications
You must be signed in to change notification settings - Fork 510
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
Cookbook "Receipt Data Extraction with VLMs" is not reproducible #1282
Comments
I'm on Linux and cannot replicate, seems to be a Mac specific issue related to MPS. |
Thanks for the reply. It is definitely not MPS related. Setting device to CPU doesn't change the result. Any help is still appreciated. I tried to debug it a bit. The problem is somewhere in the logits_processor. My gut feeling was, that the initial token was not selected properly and then the FSM gets to an end state after that.
This is the full output. Seems like, now the end state transition isn't behaving as expected. {"store_name": "Trader Joe's", "store_address": "401 Bay Street, San Francisco, CA 94133", "store_number": null, "items": [{"name": "BANANA EACH", "quantity": 7, "price_per_unit": 0.23, "total_price": 1.61}, {"name": "BAREBELLS CHOCOLATE DOUG", "quantity": 2, "price_per_unit": 2.29, "total_price": 4.58}, {"name": "BAREBELLS CREAMY CRISP", "quantity": 2, "price_per_unit": 2.29, "total_price": 4.58}, {"name": "BAREBELLS CHOCOLATE DOUG", "quantity": 2, "price_per_unit": 2.29, "total_price": 4.58}, {"name": "BAREBELLS CARAMEL CASHEW", "quantity": 2, "price_per_unit": 2.29, "total_price": 4.58}, {"name": "BAREBELLS CREAMY CRISP", "quantity": 2, "price_per_unit": 2.29, "total_price": 4.58}, {"name": "SPINDRIFT ORANGE MANGO 8", "quantity": 8, "price_per_unit": 7.49, "total_price": 6.79}, {"name": "MILK ORGANIC GALLON WHOL", "quantity": 1, "price_per_unit": 6.79, "total_price": 6.79}, {"name": "CLASSIC GREEK SALAD", "quantity": 1, "price_per_unit": 3.49, "total_price": 3.49}, {"name": "COBB SALAD", "quantity": 1, "price_per_unit": 5.99, "total_price": 5.99}, {"name": "PEPPER BELL RED XL EACH", "quantity": 1, "price_per_unit": 1.29, "total_price": 1.29}, {"name": "BAG FEE.", "quantity": 1, "price_per_unit": 0.25, "total_price": 0.25}, {"name":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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
@cpfiffer You were right with your suspicion. My fault was, that I missed the |
Ah excellent! Appreciate you digging into it. |
Describe the issue as clearly as possible:
I tried to run the Cookbook "Receipt Data Extraction with VLMs" using "Qwen/Qwen2-VL-2B-Instruct" but ran into the described error. In short, the model seems to output just a
!
character, which leads to a json parsing error.A colleague of mine was able to reproduce the error on his machine.
Both our machines are MacBooks.
What is also interesting: downgrading to transformers 4.45 leads to the same error, but with output
```
.Steps/code to reproduce the bug:
Expected result:
# As described in the cookbook
Error message:
Outlines/Python version information:
Version information
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: