4AI / LS-LLaMA

A Simple but Powerful SOTA NER Model | Official Code For Label Supervised LLaMA Finetuning
https://arxiv.org/abs/2310.01208
MIT License
131 stars 20 forks source link

the inference function #9

Open 1259927114 opened 8 months ago

1259927114 commented 8 months ago

Hello, I ran your llama_seq_clf.py file, where I handwritten the inference function and loaded it with the best checkpoint in 10 echoes, resulted in a lower accuracy than directly using trainer.predict in llama_seq_clf.py. I am sure that there is no problem with merged models in my inference function, but I don't know exactly why.