-
prod environment
make install-prod
-
dev environment
make install-dev
make dataset RAW_DATA=<path to telegram dialogs dump json> TARGET=<user_id> DATASET=<path to csv file to save generated dataset>
make dataset_advanced \
USER_ID=<user id> \
RAW_DATASET=<path to raw json dialog file> \
DIALOG_SECONDS_COOLDOWN=<minimum time distance in seconds between different dialogs> \
DIALOG_MEMORY=<message number in memory to answer> \
DAATSET_OUTPUT=<path to save generated dataset folder>
make fit_tokenizer \
TOKENIZER_DATASET=<path to the dataset> \
TOKENIZER=<tokenizer class> \
TOKENIZER_SIZE=<tokenizer vocab size> \
TOKENIZER_OUTPUT=<path to save tokenizer>
make train TRAIN_CONFIG=<path to config file>
make bot TOKEN=<telegram bot auth token>
-
authenticate on heroku
heroku login
-
add git
heroku
remoteheroku git:remote -a basilai-bot
-
push local
master
branch to herokumain
branchgit push heroku master:main
you can push any local branch - just change
master
to branch name -
heroku restarts application with new version automatically
-
check heroku running apps
heroku ps
-
scale heroku apps
heroku ps:scale worker=1
-
stop heroku apps
heroku ps:stop worker.1
heroku logs -t