jamesding0302 commited on
Commit
c88fd2e
·
verified ·
1 Parent(s): 9b64e39

Add README

Browse files
Files changed (1) hide show
  1. README.md +43 -1
README.md CHANGED
@@ -1 +1,43 @@
1
- # GenRec: Memorization & Generalization Model Checkpoints
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MemGen Checkpoints
2
+
3
+ Checkpoints and artifacts for **On the Memorization and Generalization of Generative Recommendation**.
4
+
5
+ [Paper] [Code] [Dataset]
6
+
7
+ [Paper]: <link not ready yet>
8
+ [Code]: https://github.com/Jamesding000/MemGen-GR
9
+ [Dataset]: https://huggingface.co/datasets/jamesding0302/memgen-annotations
10
+
11
+ ## Folder Structure
12
+
13
+ - `SASRec/`: SASRec checkpoints (`.pth`)
14
+ - `TIGER/`: TIGER checkpoints (`.pth`)
15
+ - `semantic_ids/`: semantic ID files (`.sem_ids`) used to train the corresponding TIGER checkpoints
16
+
17
+ All checkpoints are trained with the **default configs** in the code repo. If you are unsure about model size / architecture, please refer to the configs in [Code].
18
+
19
+ ## Download (example)
20
+
21
+ ```python
22
+ from huggingface_hub import hf_hub_download
23
+
24
+ repo_id = "jamesding0302/memgen-checkpoints"
25
+
26
+ ckpt_path = hf_hub_download(repo_id, "TIGER/TIGER-AmazonReviews2014-category_Sports_and_Outdoors.pth")
27
+ sem_ids_path = hf_hub_download(
28
+ repo_id,
29
+ "semantic_ids/AmazonReviews2014-Sports_and_Outdoors_sentence-t5-base_256,256,256,256.sem_ids",
30
+ )
31
+ ```
32
+
33
+ ## Evaluation
34
+ ```
35
+ CUDA_VISIBLE_DEVICES=0 python mem_gen_evaluation.py \
36
+ --model=TIGER \
37
+ --dataset=AmazonReviews2014 \
38
+ --category=Sports_and_Outdoors \
39
+ --checkpoint_path=path/to/TIGER.pth \
40
+ --sem_ids_path=path/to/semantic_ids.sem_ids \
41
+ --eval=test \
42
+ --save_inference
43
+ ```