Skip to content

Commit

Permalink
chore: cleanup presets folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Oct 20, 2023
1 parent 994f870 commit beec436
Show file tree
Hide file tree
Showing 30 changed files with 8 additions and 3,551 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/e2e-preset-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
- name: Create Service
if: steps.check_image.outputs.IMAGE_EXISTS == 'true'
run: kubectl apply -f presets/k8s/${{ matrix.image.name }}/${{ matrix.image.name }}-service.yaml
run: kubectl apply -f presets/examples/${{ matrix.image.name }}/${{ matrix.image.name }}-service.yaml

- name: Retrieve External Service IP
if: steps.check_image.outputs.IMAGE_EXISTS == 'true'
Expand All @@ -264,10 +264,10 @@ jobs:
- name: Replace IP and Deploy Statefulset to K8s
if: steps.check_image.outputs.IMAGE_EXISTS == 'true'
run: |
sed -i "s/MASTER_ADDR_HERE/${{ steps.get_ip.outputs.SERVICE_IP }}/g" presets/k8s/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
sed -i "s/TAG_HERE/${{ needs.setup.outputs.IMG_TAG }}/g" presets/k8s/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
sed -i "s/REPO_HERE/${{ steps.get_acr_name.outputs.ACR_NAME }}/g" presets/k8s/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
kubectl apply -f presets/k8s/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
sed -i "s/MASTER_ADDR_HERE/${{ steps.get_ip.outputs.SERVICE_IP }}/g" presets/examples/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
sed -i "s/TAG_HERE/${{ needs.setup.outputs.IMG_TAG }}/g" presets/examples/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
sed -i "s/REPO_HERE/${{ steps.get_acr_name.outputs.ACR_NAME }}/g" presets/examples/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
kubectl apply -f presets/examples/${{ matrix.image.name }}/${{ matrix.image.name }}-statefulset.yaml
- name: Wait for Statefulset to be ready
if: steps.check_image.outputs.IMAGE_EXISTS == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preset-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
DEPLOYMENT=$(kubectl get deployment docker-deployment -o=jsonpath='{.metadata.name}' --ignore-not-found)
if [ -z "$DEPLOYMENT" ]; then
# Apply the deployment if it does not exist
kubectl apply -f presets/k8s/docker.yaml
kubectl apply -f presets/test/docker.yaml
fi
kubectl wait --for=condition=ready pod -l app=docker --timeout=300s
Expand Down
3,297 changes: 0 additions & 3,297 deletions presets/Most-Googled-questions-global-Jan-to-Jun-2023.csv

This file was deleted.

61 changes: 0 additions & 61 deletions presets/inference.py

This file was deleted.

89 changes: 0 additions & 89 deletions presets/llama-2-chat/example_chat_completion.py

This file was deleted.

55 changes: 0 additions & 55 deletions presets/llama-2/example_text_completion.py

This file was deleted.

15 changes: 0 additions & 15 deletions presets/llama-2/params.md

This file was deleted.

26 changes: 0 additions & 26 deletions presets/llama.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def inference(requests):



with open("requests.csv", "r") as f:
with open("../common-gpt-questions.csv", "r") as f:
requests = [line.strip() for line in f.readlines()]

fieldnames = ["model", "num_nodes", "num_processes", "num_gpus", "num_prompts", "prompt_len", "model_parallelism", "data_parallelism", "quantization", "machine", "inference_time", "request_id", "timestamp"]
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def load_search_terms_from_csv(filename):
return [row['search_terms'] for row in reader]

# Load search terms and shuffle them for randomness
search_terms = load_search_terms_from_csv("common-gpt-questions.csv")
search_terms = load_search_terms_from_csv("../common-gpt-questions.csv")
random.shuffle(search_terms)

# Constants
Expand Down

0 comments on commit beec436

Please sign in to comment.