-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (51 loc) · 1.38 KB
/
run-elasticsearch-int4-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Run Elasticsearch (int4) on Linux
on:
push:
branches:
- main
paths:
- run-elasticsearch.ipynb
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Hardware Spec
run: /bin/bash ./scripts/get_hardware_info.sh
- name: Cache dataset
uses: actions/cache@v4
with:
path: |
dataset
key: ${{ runner.os }}-dataset
- name: Download data
run: /bin/bash ./scripts/setup.sh gha
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Cache pip modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run ANN search
run: papermill run-elasticsearch.ipynb output-elasticsearch-linux.ipynb --log-output
env:
PRODUCT_VARIANT: "int4"
SETTING_QUANTIZATION: "int4"
- name: 'Upload Results'
uses: actions/upload-artifact@v4
with:
name: elasticsearch-int4-results
path: results.json