xlang-ai / instructor-embedding

[ACL 2023] One Embedder, Any Task: Instruction-Finetuned Text Embeddings
Apache License 2.0
1.79k stars 132 forks source link

How can we prune the INSTRUCTOR #25

Closed kishalxd closed 1 year ago

kishalxd commented 1 year ago

How can we prune teh INSTRUCTOR model

Harry-hash commented 1 year ago

Could you provide more contexts about when do you want to prune the INSTRUCTOR model? Thanks!

kishalxd commented 1 year ago

Yes. I am trying to use the INSTRUCTOR in prod env. to reduce latency i want to prune the model. maybe using ONNX. Can u reference some ways to prune the vanilla instructor and prune it.

Harry-hash commented 1 year ago

Hi, Thanks a lot for the information!

To prune the INSTRUCTOR model and reduce the latency, apart from ONNX, here are some other suggested tools you may try:

Hope this helps! Feel free to add any further questions or comments!

Harry-hash commented 1 year ago

Feel free to re-open the issue if your have any further question or comment!