forked from ml4ai/skema
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
63 changed files
with
3,989 additions
and
1,426 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: SKEMA AWS | ||
on: | ||
workflow_run: | ||
workflows: ["SKEMA docker"] | ||
branches: [main] | ||
types: ["completed"] | ||
env: | ||
SKEMA_ECS_CLUSTER_NAME_MAIN: ${{ secrets.SKEMA_ECS_CLUSTER_NAME_MAIN }} | ||
SKEMA_ECS_SERVICE_NAME_MAIN: ${{ secrets.SKEMA_ECS_SERVICE_NAME_MAIN }} | ||
SKEMA_AWS_REGION: ${{ secrets.SKEMA_AWS_REGION }} | ||
jobs: | ||
deploy: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
name: "deploy skema system to AWS" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# main deployment | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.SKEMA_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.SKEMA_AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.SKEMA_AWS_REGION }} | ||
- name: Deploy | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
# update skema-py | ||
aws ecs update-service --cluster $SKEMA_ECS_CLUSTER_NAME_MAIN --service darpa-askem-main-ecs-skema-py --force-new-deployment --region $SKEMA_AWS_REGION &>/dev/null | ||
# update skema-rs | ||
aws ecs update-service --cluster $SKEMA_ECS_CLUSTER_NAME_MAIN --service darpa-askem-main-ecs-skema-rs --force-new-deployment --region $SKEMA_AWS_REGION &>/dev/null |
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
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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"model_type": "cnn_xfmer", | ||
"//": "general params ", | ||
"device": "cuda", | ||
"use_single_gpu": true, | ||
"gpu_id": 0, | ||
"DDP": false, | ||
"num_DDP_gpus": 2, | ||
"DDP_gpu_ids": "0,1,2,3", | ||
"DataParallel": false, | ||
"DataParallel_gpu_ids": "0,1,2,3", | ||
"num_cpus": 150, | ||
"epochs": 200, | ||
"seed": 42, | ||
"load_trained_model_for_testing": false, | ||
"continue_training_from_last_saved_model": false, | ||
"//": "params for preprocessing", | ||
"data_path": "training_data/", | ||
"dataset_type": "sample_data", | ||
"markup": "mml", | ||
"preprocessed_image_width": 800, | ||
"preprocessed_image_height": 100, | ||
"padding": 8, | ||
"resizing_factor": 0.5, | ||
"max_input_hgt": 100, | ||
"batch_size": 64, | ||
"max_len": 350, | ||
"vocab_freq": 5, | ||
"shuffle": true, | ||
"pin_memory": false, | ||
"num_workers": 0, | ||
"//": "optimizer params", | ||
"optimizer_type": "Adam", | ||
"momentum": 0.9, | ||
"beta_1": 0.7, | ||
"beta_2": 0.9, | ||
"learning_rate": 0.00025999396352806, | ||
"weight_decay": 0.0000174298222581897, | ||
"use_scheduler": false, | ||
"starting_lr": 0.01, | ||
"step_size": 30, | ||
"gamma": 0.1, | ||
"dropout": 0.1, | ||
"//": "encoder params", | ||
"encoder_dim": 512, | ||
"input_channels": 3, | ||
"n_xfmer_heads": 4, | ||
"n_xfmer_encoder_layers": 8, | ||
"dim_feedforward_for_xfmer": 1024, | ||
"//": "decoder params", | ||
"embedding_dim": 256, | ||
"decoder_hid_dim": 512, | ||
"n_xfmer_decoder_layers": 4, | ||
"//": "training/testing params", | ||
"clip": 1, | ||
"beam_search": false, | ||
"beam_k": 5, | ||
"beam_search_alpha": 0.6, | ||
"min_length_bean_search_normalization": 3, | ||
"early_stopping": true, | ||
"early_stopping_counts": 20, | ||
"garbage2pad": true, | ||
"clean_state_dict": false, | ||
"minimum_training_epochs": 50 | ||
} |
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
Oops, something went wrong.