Source codes and data for * [Coling 2024 under review] [Hyperbolic Representations for Prompt Learning] After the review period, we will open-source the code on our GitHub.
We conduct our experiment with Anaconda3. If you have installed Anaconda3, then create the environment for hy:
conda create -n hy python=3.8.5
conda activate hy
After we setup basic conda environment, install pytorch related packages via:
conda install -n hy pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch
Finally, install other python packages we need:
pip install -r requirements.txt
For SuperGLUE and SQuAD datasets, we download them from the Huggingface Datasets APIs (embedded in our codes).
For sequence tagging datasets, we prepare a non-official packup in the data file. Please use at your own risk.
Run training scripts in run_script (e.g., RoBERTa for boolq):
bash run_script/run_boolq_roberta.sh
if you want to use hyperbolic, please set
--use_hy True
--num_c number
--prefix or --prompt
Next, we will conduct experiments on Dcdoeer-only models (such as GPT) in the future.
Refer to the e-mail of "authors Response Period" (Above all, the response facility should not be used to report on new results, obtained since the submission deadline closed), we will add more results after the period of notification of acceptance.