Skip to content
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

Fixes #4145: Add support for huggingface models #4192

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Sep 18, 2024

Test some tomasonjo models for text2cypher with LocalAI

We have to deploy the model (with LocalAI in this case), as we cannot use the public remote HF Inference API, see e.g. here,

For instance, by using inference we receive:

.. Request
$ curl https://api-inference.huggingface.co/models/tomasonjo/text2cypher-codestral-16bit \
        -d '{"inputs": "What color is the sky?"}' \
        -H 'Content-Type: application/json' \
        -H "Authorization: Bearer <API_TOKEN>"

.. response 

{"error":"The model tomasonjo/text2cypher-codestral-16bit is too large to be loaded automatically (44GB > 10GB). Please use Spaces (https://huggingface.co/spaces) or Inference Endpoints (https://huggingface.co/inference-endpoints)."}%   

..
.. Request
$ curl https://api-inference.huggingface.co/models/tomasonjo/text2cypher-demo-6bit-gguf \
        -d '{"inputs": [{"role":"user", "content":"Retrieve distinct values of the title and the comments from Article where title is not The Gervais-Neveu-Felder"}]}' \
        -H 'Content-Type: application/json' \
        -H "Authorization: Bearer <API_TOKEN>"

.. response 
{"error":"Task not found for this model"}

@RobertoSannino RobertoSannino merged commit 9424ed8 into dev Oct 7, 2024
5 checks passed
@RobertoSannino RobertoSannino deleted the issue-4145 branch October 7, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants