Installation
Installation via pip
Create and activate a new environment (tested with Python 3.10 and 3.11):
conda create -n sarcasm python==3.10 conda activate sarcasm
Install PyTorch. For CPU and Apple Silicon (M1, M2, …), install the plain version. For CUDA-capable systems with NVIDIA GPU, install CUDA toolkit. Ensure that the CUDA toolkit version matches the PyTorch version requirements.
Install SarcAsM and its dependencies via pip from PyPI:
pip install sarc-asm
Installation via github
Clone repo from git:
git clone https://github.com/danihae/SarcAsM cd sarcasm
Create a new environment (tested with Python 3.10 and 3.11):
conda create -n sarcasm python==3.10 conda activate sarcasm
Install PyTorch. For CUDA-capable systems, install CUDA toolkit. Ensure that the CUDA toolkit version matches the PyTorch version requirements.
Finally, install all the required packages from pip via:
pip install -r requirements.txt
The full installation usually takes less than 5 min, depending on internet connection.