Skip to content

rutgerswiselab/PAP-REC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAP-REC

This repo presents implementation of PAP-REC: Personalized Automatic Prompt for Recommendation Language Model.

Citation

@misc{li2024paprec,
      title={PAP-REC: Personalized Automatic Prompt for Recommendation Language Model}, 
      author={Zelong Li and Jianchao Ji and Yingqiang Ge and Wenyue Hua and Yongfeng Zhang},
      year={2024},
      eprint={2402.00284},
      archivePrefix={arXiv},
      primaryClass={cs.IR}
}

Requirements

  • Python 3.9.7
  • PyTorch 1.10.1
  • transformers 4.2.1
  • tqdm
  • numpy
  • sentencepiece
  • pyyaml

Usage

  1. Clone this repo

  2. Install necessary packages:

pip install -r requirements.txt
  1. Download preprocessed data from this Google Drive link, then put them into the data folder. If you would like to preprocess your own data, please follow the jupyter notebooks in the preprocess folder. Raw data can be downloaded from this Google Drive link, then put them into the raw_data folder.

  2. Download pretrained checkpoints into snap folder. If you would like to train your own P5 models, snap folder will also be used to store P5 checkpoints.

  3. Run main.py with arguments

Example:

python main.py --task sequential --dataset beauty --model_size small --dynamic_length 0

Pretrained Checkpoints

See CHECKPOINTS.md.

Reference

This codebase is developed based on P5.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages