Open BaptisteLoquette opened 6 months ago
Hi!
Can you provide a self-contained code snippet that shows the error? I can't reproduce this.
For me, the original code as documented on the link you shared, works:
from spacy_llm.util import assemble
nlp = assemble(config_file_path)
doc = nlp("You look gorgeous!")
print(doc.cats)
And the following works, too (attempting to replicate your code):
from spacy.util import load_config
from spacy.lang.en import English
config_path = Path(config_file_path)
config = load_config(config_path, interpolate=False)
nlp = English.from_config(config)
doc = nlp("You look gorgeous!")
print(doc.cats)
Which leads me to believe that in fact you're passing something invalid in your overrrides
- more specifically it looks like you're passing the device as a string instead of an integer.
Hi, I am getting this same issue. My goal is to get a basic setup running on Paperspace rented machine, the gist of my notebook is here:
https://gist.github.com/tombedor/1e988e238960a3c412304475c9bb96e8
Using an image with Python 3.11 fixed the problem
Hello, when
nlp = assemble("config.cfg")
, I get the following Traceback, I use the dolly config.cfg example from here : https://spacy.io/usage/large-language-models#usage. Thanks in advance !