GLiNER
GLiNER copied to clipboard
Generalist and Lightweight Model for Named Entity Recognition (Extract any entity types from texts) @ NAACL 2024
Hello folks, I am trying to fine-tune GliNER on custom dataset (LMR/LMD) and after some steps, I encountered this issue : ``` File "~/gliner_finetuing.py", line 79, in main() File "~/gliner_finetuing.py",...
I'm trying to increase the size of the input texts, however, it seems like all large versions of Gliner (2, 2.1) have default max_len = 384. So I'm wondering what's...
We are trying to perform fine tuning with the Gliner model. However, we get an error when loading the model because the model cannot see the config.json file. When we...
/usr/local/lib/python3.10/dist-packages/gliner/modeling/base.py in extract_prompt_features_and_word_embeddings(config, token_embeds, input_ids, attention_mask, text_lengths, words_mask, **kwargs) 53 54 max_embed_dim = num_class_tokens.max() ---> 55 max_text_length = text_lengths.max() 56 aranged_class_idx = torch.arange(max_embed_dim, 57 dtype=attention_mask.dtype, AttributeError: 'NoneType' object has no...
Using this snippet to save pre-trained model locally - ``` from gliner import GLiNER model = GLiNER.from_pretrained("urchade/gliner_medium") model.save_pretrained("gliner_medium") ``` post this, running script for onxx conversion as per documentation -...