38
stars
4
commits
Python
primary language
Feb 12, 2025
updated
We introduce APE for context-augmented generation with better efficiency and performance.
conda create -yn ape python=3.10
conda activate ape
pip install -r requirements.txt
python setup.py install
By default, the temperature and scaling factor are set to 0.9, preserving over 90% performance on few-shot tasks.
CUDA_VISIBLE_DEVICES=0 python demo_APE.py --model llama3-8b-instruct
To reproduce the APE results for retrieval-augmented generation (RAG) and in-context learning (ICL) tasks in Section 5, please follow the instructions and use the code provided in the experiments directory.
We will release the code and data in the following order, please stay tuned!
If you find APE useful or relevant to your project and research, please kindly cite our paper:
@inproceedings{yang2025ape,
title={APE: Faster and Longer Context-Augmented Generation via Adaptive Parallel Encoding},
author={Yang, Xinyu and Chen, Tianqi and Chen, Beidi},
booktitle={ICLR 2025},
year={2025}
}
4 commits
Python
100.0%
38
stars
4
commits
Python
primary language
Feb 12, 2025
updated
We introduce APE for context-augmented generation with better efficiency and performance.
conda create -yn ape python=3.10
conda activate ape
pip install -r requirements.txt
python setup.py install
By default, the temperature and scaling factor are set to 0.9, preserving over 90% performance on few-shot tasks.
CUDA_VISIBLE_DEVICES=0 python demo_APE.py --model llama3-8b-instruct
To reproduce the APE results for retrieval-augmented generation (RAG) and in-context learning (ICL) tasks in Section 5, please follow the instructions and use the code provided in the experiments directory.
We will release the code and data in the following order, please stay tuned!
If you find APE useful or relevant to your project and research, please kindly cite our paper:
@inproceedings{yang2025ape,
title={APE: Faster and Longer Context-Augmented Generation via Adaptive Parallel Encoding},
author={Yang, Xinyu and Chen, Tianqi and Chen, Beidi},
booktitle={ICLR 2025},
year={2025}
}
4 commits
Python
100.0%