Skip to content

jivangonzal/BERTCpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BERTCpp

A lightly BERT inference project using intel MKL and Protobuf in c++ (working in progress)

Dependency

Protobuf

bertcpp using protobuf to convert pytorch pretrained model in pb file and load it in c++

MKL

bertcpp using MKL to implement blas operator

utf8proc

bertcpp using utf8proc to process string

Build

mkdir build & cd build
cmake ..
make -j4

To run unitest

./bert_test

Thanks

tokenizer part comes from cuBERT

About

implement bert in pure c++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 77.4%
  • Python 18.2%
  • CMake 4.4%