Skip to content

Commit

Permalink
Create sanity.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Saroufim <[email protected]>
  • Loading branch information
msaroufim authored Oct 8, 2023
1 parent fd9bd3e commit 0ed0924
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Check Sample Submission with HELM

on: push

jobs:
build-and-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive

# - name: Setup Docker with GPU support
# run: |
# sudo apt-get install -y nvidia-container-toolkit
# sudo systemctl restart docker

- name: Build Docker Image
run: |
cd neurips_llm_efficiency_challenge/sample-submissions/lit-gpt
docker build -t sample_submission .
- name: Run Docker Container
run: docker run -p 8080:80 -d sample_submission

- name: Wait for a bit to let server start
run: sleep 20

- name: Send HTTP request
run: |
curl -X POST -H "Content-Type: application/json" -d '{"prompt": "The capital of france is "}' http://localhost:8080/process
- name: Install NeurIPS client (HELM)
run: |
pip install git+https://github.com/stanford-crfm/helm.git
# Use the correct path for the conf file.
- name: Run HELM Tests
run: |
helm-run --conf-paths neurips_llm_efficiency_challenge/run_specs_full_coarse_600_budget.conf --suite v1 --max-eval-instances 10
helm-summarize --suite v1

0 comments on commit 0ed0924

Please sign in to comment.