mllm icon indicating copy to clipboard operation
mllm copied to clipboard

如何注册一个新算子?

Open Lucyliu1234 opened this issue 1 month ago • 3 comments

如果要注册一个新算子,我都要在哪些文件中添加相关的内容?

Lucyliu1234 avatar Oct 28 '25 15:10 Lucyliu1234

In v1(main),see https://ubiquitouslearning.github.io/mllm_website/zh/contributing/add_new_operator/; v2 ,see https://ubiquitouslearning.github.io/mllm/quick_start/how_to_add_op.html

jialilve avatar Oct 28 '25 15:10 jialilve

In mllm-v2 we’ve also added an OpPackage feature that lets users register a whole set of Ops at runtime by loading a dynamic library on the fly—no need to rebuild the main mllm library or other backends. See the Plugin example in Tests. https://github.com/UbiquitousLearning/mllm/tree/v2/tests/plugin

chenghuaWang avatar Oct 28 '25 15:10 chenghuaWang

好的谢谢

Lucyliu1234 avatar Oct 28 '25 16:10 Lucyliu1234