Skip to content

Brotherhood-of-Silicon/XLSTM4Rec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XLSTM4Rec

GitHub stars GitHub size GitHub License GitHub forks

Official repository for the upcoming paper xLSTM4Rec. This repository contains the code and resources necessary to replicate the experiments and results presented in the paper.

Overview

xLSTM4Rec leverages the xLSTM model to capture sequential dependencies in user-item interactions, providing near state-of-the-art performance in recommendation tasks.

Requirements

  • CUDA-enabled GPU
  • Python 3.7+
  • Anaconda (recommended)

Installation

To set up the environment and run the model, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Brotherhood-of-Silicon/XLSTM4Rec.git
    cd XLSTM4Rec
  2. Install the required packages:

    conda create --name xlstm4rec_env --file requirements.txt
    conda activate xlstm4rec_env
  3. Navigate to the source directory:

    cd src
  4. Train the model:

    python run.py
  5. Run the Gradio interface for the Movielens1M dataset:

    python gui.py
  6. Modify training parameters:

    Edit config.yaml to change training parameters as needed.

  7. Collaboratory Notebook:

    Use the provided Jupyter notebook for Google Colab available at src/collab.ipynb. To run the notebook:

    • Upload src/collab.ipynb to your Google Drive.
    • Open the notebook in Google Colab.
    • Follow the instructions within the notebook to set up the environment and run the cells.

Future Work

  • Enable CPU-only training
  • Implement xLSTM using CUDA kernels instead of PyTorch

Authors

  • Leonardo16AM
  • EdianBC
  • AlexBeovides

About

XLSTM for Secuential Recomendation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published