-
Notifications
You must be signed in to change notification settings - Fork 52
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 following the huggingface hosting instructions. #8
Comments
you may have too many images in your prompt. I suggest just keep at most 5 images with all the text as the input |
I'm sending 1 image. Also I just tired to deploy the 7b model and that worked. Looks like there is an issue with the 72B model hosted on HF. |
can you paste your request script here so i can try to reproduce and fix |
I'm just running the code that was provided in the example doc. Also can I ask what prompt are you giving your LLM? Your space gets good results and everytime I run locally or on HF the results are not that good.
|
Hi, |
Hi, We have solved this problem by updating the model's config. We use the config from old version of transformers. It seems that TGI and Inference Endpoints have some bugs reading the config from the newest transformers. |
Followed the provided notion doc for deploying on HF -> https://juniper-switch-f10.notion.site/GUI-Model-Deployment-Guide-17b5350241e280058e98cea60317de71
I used the 72B-DPO model for deployment -> https://huggingface.co/bytedance-research/UI-TARS-72B-DPO
Added all the correct configurations but always got back an error:
raise self._make_status_error_from_response(err.response) from None
openai.UnprocessableEntityError: Error code: 422 - {'error': 'Input validation error:
inputs
tokens +max_new_tokens
must be <= 32768. Given: 880370inputs
tokens and 0max_new_tokens
', 'error_type': 'validation'}Basically the image size is too large and I need to be under the 32k limit.
I also used the resize_image function to reduce the image size but this didnt really effect my image but due to its already small size (1200px by 800px)
I also tried using one of the provided images in the hosted space on HF -> https://huggingface.co/spaces/Aheader/gui_test_app/blob/main/examples/solitaire.png
This is even larger than my image and it didnt work.
Any ideas why its not working with your provided setup?
The text was updated successfully, but these errors were encountered: