An open API service indexing awesome lists of open source software.

https://github.com/guillemram97/neural-caching


https://github.com/guillemram97/neural-caching

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Cache for LLM calls
## Setting up environment
```
conda create -n cache python=3.8
conda activate cache
conda install pip
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
pip install -r requirements.txt
```
## Usage
Export the arguments you want to change with respect to default values, following `scripts/run.sh`. For instance,
```
export TASK_NAME=isear
export BUDGET=1500
```
We use [Neptune](http://neptune.ai/) for logging. We recommend setting file `scripts/cluster.sh` with the following arguments:
```
export DATA_PATH=
export PROJECT_NAME_NEPTUNE=
export API_TOKEN_NEPTUNE=
```
Then, run the code:
```
bash scripts/run.sh
```