Updating NER trained model? #11253
-
Hello all! I trained NER model to detect malware names from news (urls) and it works pretty good, now I would like to train the same model to detect Threat Actors too but the problem is that I need to do 2 trains instead of one with both labels because I go Out of memory (nvidia 3090). So when I train the NER threat actor model using the NER malware names model, it looks like it forget how to recognize malware names. Is there a way to update the "malware names" model with the "threat actor" model without lose the first one? As solution I can use 1 model per NER but i would like to avoid it. PD: I am using the commands from spacy webpage to create the config and to train it. Thank you all! And sorry about my english! Here is the code to generate the label where it load the previous trained model (nlp = spacy.load("output/model-last"):
Commands used for training:
BTW: I know that its "catastrophic forgetting" issue but how can I do it if I can't train two labels at the same time because I dont have enough hardware? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Take a look at the suggestions under "I'm getting Out of Memory errors" in this FAQ: #8226 |
Beta Was this translation helpful? Give feedback.
Take a look at the suggestions under "I'm getting Out of Memory errors" in this FAQ: #8226