jina-ai / clip-as-service

🏄 Scalable embedding, reasoning, ranking for images and sentences with CLIP
https://clip-as-service.jina.ai
Other
12.45k stars 2.07k forks source link

can it support ALBert model? #461

Open Jasperty opened 5 years ago

Jasperty commented 5 years ago

ALBERT :A lite BERT for self-supervised learning of language representations

duongkstn commented 4 years ago

Hi @Jasperty Here is my implementation (https://github.com/duongkstn/albert-vi-as-service), which is same as bert-as-service. I added some albert file to server/bert folder. Although this is just for experiment, you can easily start by following:

Give me a star and feel free to contribute if it's helpful to you <3. (I named it 's 'albert-vi' since my purpose is to build a server of albert_vi

kFoodie commented 4 years ago

Hi @Jasperty Here is my implementation (https://github.com/duongkstn/albert-vi-as-service), which is same as bert-as-service. I added some albert file to server/bert folder. Although this is just for experiment, you can easily start by following:

  • git clone my project
  • cd albert_vi_as_service/server
  • python setup.py install
  • use albert-vi-serving-start command as bert-serving-start. But it is noted that you have to declare sentence piece model by option: -spm_model_file
  • At client side, you use bertClient as normal (pip install bert-serving-client==1.10.0) (NOTE: do not use client of my albert-vi-as-service)

Give me a star and feel free to contribute if it's helpful to you <3. (I named it 's 'albert-vi' since my purpose is to build a server of albert_vi

啥是 sentence piece model??

duongkstn commented 4 years ago

Hi @kFoodie you can read this documentation