Coder Social home page Coder Social logo

gdh756462786 / albert-vi-as-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from duongkstn/albert-vi-as-service

0.0 1.0 0.0 8.77 MB

albert-vi-as-service: A Fork of bert-as-service to deploy albert_vi

License: MIT License

Python 93.11% Dockerfile 0.09% Shell 0.95% JavaScript 2.45% HTML 2.98% CSS 0.42%

albert-vi-as-service's Introduction

Install

Install the server and client via pip. They can be installed separately or even on different machines:

# server
git clone https://github.com/duongkstn/albert-vi-as-service.git
cd albert-vi-as-service/server
pip install albert-vi-serving-server  
python setup.py install

#client
pip install bert-serving-client==1.10.0  # client, independent of `albert-vi-as-service`

Getting Started

1. Download a Pre-trained ALBERT_VI Model

Download a model of albert_vi, remember to download sentence piece model

2. Start the ALBERT_VI service

After installing the server, you should be able to use albert-vi-serving-start CLI as follows:

albert-vi-serving-start -model_dir albert_vi_model/ -spm_model_file albertvi_30k-clean.model -config_name albert_config.json -ckpt_name model.ckpt-1015000

At client side, your code should be similar to original bert-as-service repos

It is noted that you can still use bert-serving-start command independently

albert-vi-as-service's People

Contributors

abhishekraok avatar astariul avatar cbockman avatar dmitrykey avatar drndos avatar dslim23 avatar duongkstn avatar dveselov avatar eric-haibin-lin avatar gabrielbianconi avatar georgefeng avatar hanxiao avatar jacobdevlin-google avatar jhangsy avatar jtiger0431 avatar kraglik avatar liam-thunder avatar likejazz avatar lu161513 avatar paperplanet avatar parsaghaffari avatar peterisp avatar razzaghnoori avatar rodgzilla avatar sakuranew avatar shushanxingzhe avatar stefan-it avatar vsoch avatar xhj-fs avatar yangyaofei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.