-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: working on CIFAR upload to the DB
- Loading branch information
Showing
3 changed files
with
94 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,16 +131,6 @@ jobs: | |
NUM_SAMPLES=${{ github.event.inputs.num_samples }} python3 ./use_case_examples/cifar/cifar_brevitas_training/evaluate_one_example_fhe.py | ||
python3 ./benchmarks/convert_cifar.py --model-name "16-bits-trained-v0" | ||
- name: Upload results | ||
if: ${{ github.repository == 'zama-ai/concrete-ml-internal' }} | ||
id: upload-results | ||
run: | | ||
curl \ | ||
-H "Authorization: Bearer ${{ secrets.NEW_ML_PROGRESS_TRACKER_TOKEN }}" \ | ||
-H "Content-Type: application/json" \ | ||
-d @to_upload.json \ | ||
-X POST "${{ secrets.NEW_ML_PROGRESS_TRACKER_URL }}experiment" | ||
- name: Archive raw predictions | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -177,6 +167,25 @@ jobs: | |
name: server.zip | ||
path: client_server/server.zip | ||
|
||
# We need to keep this as the last step to avoid not uploading the artifacts | ||
# if the step crashes | ||
- name: Upload results | ||
id: upload-results | ||
run: | | ||
# Log the json | ||
cat to_upload.json | jq | ||
# We need to sleep to avoid log issues | ||
sleep 1. | ||
# Upload the json to the benchmark database | ||
curl --fail-with-body \ | ||
-H "Authorization: Bearer ${{ secrets.NEW_ML_PROGRESS_TRACKER_TOKEN }}" \ | ||
-H "Content-Type: application/json; charset=UTF-8" \ | ||
--json @to_upload.json \ | ||
-X POST "${{ secrets.NEW_ML_PROGRESS_TRACKER_URL }}experiment" | ||
stop-runner: | ||
name: Stop EC2 runner | ||
needs: [run-cifar-10, start-cifar-runner] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters