News-Recommendation
News-Recommendation copied to clipboard
An investigation of News Recommendation
Download
There are two branches in this REPO. The backup branch is deprecated and used as backup. You can only clone this main branch by:
git clone -b main --single-branch https://github.com/namespace-Pt/News-Recommendation.git
Instruction
- Download MIND dataset here
- Save MIND dataset in a directory, e.g.
~/Data -
pip install torch==1.9.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html - Add your email information so that you can get an email every time the model is evaluated:
cd src mkdir data echo "email = '[email protected]'" >> data/email.py echo "password = 'your password'" >> data/email.py -
python -m main.twotower --data-root ~/Data \ --batch-size 8 \ --world-size 2 \ --news-encoder bert--world-sizedefines number of gpus in ddp training--news-encoderdefines news encoder- more parameters can be found in src/utils/manager.py