Clone repo (recommended for developers)
from home dir,
git clone git@github.com:bnb32/modbot.git
- Create
modbot
environment and install package Create a conda env:
conda create -n modbot
Run the command:
conda activate modbot
cd into the repo cloned in 1.
prior to running
pip
below, make sure the branch is correct (install from main!)Install
modbot
and its dependencies by running:pip install .
(orpip install -e .
if running a dev branch or working on the source code)To train on a GPU run
pip install tensorflow-gpu
andconda install -c conda-forge cudnn
If using a BERT model download a preprocessing model and encoder and put in
data/bert_preprocess
anddata/bert_encoder
, respectively. Example downloads:https://tfhub.dev/tensorflow/bert_en_uncased_preprocess/3
andhttps://tfhub.dev/tensorflow/bert_en_uncased_L-12_H-768_A-12/4
- Create