Replies: 1 comment 2 replies
-
Hi @anammari, all models are supported for all tasks, including textcat. The error message indicates that you don't have the necessary libraries installed to run this model (as not all users will want to run local/HF models, we don't require the installation of these libraries by default). So if you have a GPU on your system: make sure CUDA is properly installed (see here for Windows and here for Linux). If you don't have a GPU: run If this doesn't work for you, let me know. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use HuggingFace LLMs for text classification. I've tried the OpenAI code example under
usage_examples/textcat_openai
with OpenAI models such asspacy.GPT-3-5.v1
andspacy.Text-Davinci.v1
etc and they all seem to work. I am now trying to apply the same use case using HF LLMs (e.g. Dolly) but I can't get these to work.For example, I've looked at what registered LLMs are available in
spacy_llm/models/hf/dolly.py
and tried to change the config filefewshot.cfg
accordingly:This however has returned error:
Are these HF LLMs supported for textcat use cases?
If so, am I using them in the wrong way?
Some guidance on this will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions