You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried creating a custom NER model using spacy-llm, but none of my approaches seem to be working.
I started off by using OpenAI with my API key, but it seemed to be rate-limiting me with no end at sight.
I shifted to other open sources LLMs like OpenLLaMa and Dolly, but they give up too, giving me this error :
ValueError: The current device_map had weights offloaded to the disk. Please provide an offload_folder for them. Alternatively, make sure you have safetensors installed if the model you are using offers the weights in this format.
- text: "ABB acquires stake analytics software company WindESCo"
entities:
ACQUIRER:
- ABB
ACQUIREE:
- WindESCo
- text: "US-based technology provider Rocket Software, Inc. has acquired German data integration solutions provider B.O.S., to enhance mainframe modernisation and accelerate hybrid cloud strategies, the company said. "
entities:
ACQUIRER:
- Rocket Software, Inc.
ACQUIREE:
- B.O.S.
ner.py
from spacy_llm.util import assemble
nlp = assemble("config.cfg")
text="""
Tesla has officially acquired Germany-based wireless charging startup, Wiferion, to accelerate the development of its wireless charging platform potentially.
"""
doc = nlp(text)
for e in doc.ents:
print(e.label_, e.text, e.start, e.end)
I need help in figuring out why this error propped up and how to resolve it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried creating a custom NER model using spacy-llm, but none of my approaches seem to be working.
I started off by using OpenAI with my API key, but it seemed to be rate-limiting me with no end at sight.
I shifted to other open sources LLMs like OpenLLaMa and Dolly, but they give up too, giving me this error :
ValueError: The current
device_map
had weights offloaded to the disk. Please provide anoffload_folder
for them. Alternatively, make sure you havesafetensors
installed if the model you are using offers the weights in this format.To reproduce this behaviour :
config.cfg
ner_examples.yml
ner.py
I need help in figuring out why this error propped up and how to resolve it.
Thanks a lot!!
Beta Was this translation helpful? Give feedback.
All reactions