Skip to main content

Quick Install

pip install damo-embedding

Source Install

We do depend on newer gcc/clang with C++17 support (GCC >= 7, Clang >= 5).

RocksDB

yum install -y epel-release wget
yum install -y gflags-devel snappy snappy-devel zlib zlib-devel
yum install -y bzip2 bzip2-devel lz4-devel libzstd-devel
cd /tmp
wget https://github.com/facebook/rocksdb/archive/v6.4.6.tar.gz
tar -xvzf v6.4.6.tar.gz
cd rocksdb-6.4.6
make shared_lib EXTRA_CXXFLAGS=-fPIC EXTRA_CFLAGS=-fPIC USE_RTTI=1 DEBUG_LEVEL=0
make install-shared
ldconfig

Install damo-embedding via pip

git clone git@github.com:uopensail/damo-embedding.git
cd damo-embedding
python3 setup.py install