Skip to content

Commit f6aad47

Browse files
Devops attempt 3
1 parent 594326d commit f6aad47

3 files changed

Lines changed: 32 additions & 13 deletions

File tree

.github/workflows/python_ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
3232
- name: Install dependencies
3333
run: |
34-
source devops/install.sh
34+
chmod +x devops/install.sh
35+
./devops/install.sh
3536
3637
- name: Check code formatting with black
3738
run: |

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
44
[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/)
5-
[![CI](https://github.com/Ghost---Shadow/quaild/actions/workflows/python_ci.yml/badge.svg)](https://github.com/Ghost---Shadow/quaild/actions/workflows/python_ci.yml)
5+
[![CI](https://github.com/Ghost---Shadow/InSQuaD/actions/workflows/python_ci.yml/badge.svg)](https://github.com/Ghost---Shadow/InSQuaD/actions/workflows/python_ci.yml)
66

77
InSQuaD is a research framework for efficient in-context learning that leverages submodular mutual information to optimize the quality-diversity tradeoff in example selection for large language models. This implementation supports various retrieval methods, subset selection strategies, and generative models for comprehensive evaluation across multiple datasets.
88

@@ -25,16 +25,22 @@ InSQuaD is a research framework for efficient in-context learning that leverages
2525

2626
1. **Clone the repository**:
2727
```bash
28-
git clone https://github.com/Ghost---Shadow/quaild.git
29-
cd quaild
28+
git clone https://github.com/Ghost---Shadow/InSQuaD.git
29+
cd InSQuaD
3030
```
3131

32-
2. **Install dependencies**:
32+
2. **Create conda environment** (recommended):
3333
```bash
34-
source ./devops/install.sh
34+
conda create -n InSQuaD python=3.9 -y
35+
conda activate InSQuaD
3536
```
3637

37-
3. **Set up environment variables**:
38+
3. **Install dependencies**:
39+
```bash
40+
./devops/install.sh
41+
```
42+
43+
4. **Set up environment variables**:
3844
Create a `.env` file in the root directory with your API keys:
3945
```bash
4046
OPENAI_API_KEY=your_openai_key_here
@@ -47,7 +53,7 @@ InSQuaD is a research framework for efficient in-context learning that leverages
4753

4854
1. **Single experiment**:
4955
```bash
50-
python src/train.py experiments/tests/quaild_test_experiment.yaml
56+
python src/train.py experiments/tests/InSQuaD_test_experiment.yaml
5157
```
5258

5359
2. **Full experiment suite**:
@@ -162,7 +168,7 @@ If you use this code in your research, please cite:
162168
booktitle={Proceedings of the 2025 IEEE International Conference on Data Mining (ICDM)},
163169
year={2025},
164170
organization={IEEE},
165-
url={https://github.com/Ghost---Shadow/quaild}
171+
url={https://github.com/Ghost---Shadow/InSQuaD}
166172
}
167173
```
168174

devops/install.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
conda create -n quaild python=3.9 -y
2-
conda activate quaild
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Installing dependencies..."
35
pip install -r requirements-torch.txt --index-url https://download.pytorch.org/whl/cu121
4-
conda install -c pytorch faiss-cpu=1.7.4 mkl=2021 blas=1.0=mkl -y
5-
pip install -e . --user
6+
7+
echo "Installing FAISS..."
8+
# Try system package first, fallback to pip
9+
if command -v apt-get &> /dev/null; then
10+
sudo apt-get update && sudo apt-get install -y libfaiss-dev
11+
fi
12+
pip install faiss-cpu==1.7.4
13+
14+
echo "Installing project..."
15+
pip install -e .
16+
17+
echo "Installation complete!"

0 commit comments

Comments
 (0)