Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
run.bash
results/*

venv/
__pycache__/
146 changes: 146 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "High Incontext Adept",
"type": "debugpy",
"request": "launch",
"console": "integratedTerminal",
"module": "align_system.cli.run_align_system",
"args": [
"TA3ActionBased",
"--adm-config", "adm_configs/single_kdma_adm_config_high_incontext.yml",
"--username", "kitware-single-kdma-adm-aligned-no-negatives",
"--align-to-target",
"--session-type", "adept",
"--api_endpoint", "http://127.0.0.1:8080",
"--loglevel", "DEBUG",
"--logfile-path", "${workspaceFolder}/results/high_incontext/output.log",
"--save-input-output-to-path", "${workspaceFolder}/results/high_incontext/input-output.json",
"--save-alignment-score-to-path", "${workspaceFolder}/results/high_incontext/output-scores.json",
"--training-session"
],
"env": {
"CUDA_VISIBLE_DEVICES": "1"
}
},
{
"name": "Low Incontext Adept",
"type": "debugpy",
"request": "launch",
"console": "integratedTerminal",
"module": "align_system.cli.run_align_system",
"args": [
"TA3ActionBased",
"--adm-config", "adm_configs/single_kdma_adm_config_low_incontext.yml",
"--username", "kitware-single-kdma-adm-aligned-no-negatives",
"--align-to-target",
"--session-type", "adept",
"--api_endpoint", "http://127.0.0.1:8080",
"--loglevel", "DEBUG",
"--logfile-path", "${workspaceFolder}/results/low_incontext/output.log",
"--save-input-output-to-path", "${workspaceFolder}/results/low_incontext/input-output.json",
"--save-alignment-score-to-path", "${workspaceFolder}/results/low_incontext/output-scores.json",
"--training-session"
],
"env": {
"CUDA_VISIBLE_DEVICES": "1"
}
},
{
"name": "High Adept",
"type": "debugpy",
"request": "launch",
"console": "integratedTerminal",
"module": "align_system.cli.run_align_system",
"args": [
"TA3ActionBased",
"--adm-config", "adm_configs/single_kdma_adm_config_high.yml",
"--username", "kitware-single-kdma-adm-aligned-no-negatives",
"--align-to-target",
"--session-type", "adept",
"--api_endpoint", "http://127.0.0.1:8080",
"--loglevel", "DEBUG",
"--logfile-path", "${workspaceFolder}/results/high/output.log",
"--save-input-output-to-path", "${workspaceFolder}/results/high/input-output.json",
"--save-alignment-score-to-path", "${workspaceFolder}/results/high/output-scores.json",
"--training-session"
],
"env": {
"CUDA_VISIBLE_DEVICES": "2"
}
},
{
"name": "Low Adept",
"type": "debugpy",
"request": "launch",
"console": "integratedTerminal",
"module": "align_system.cli.run_align_system",
"args": [
"TA3ActionBased",
"--adm-config", "adm_configs/single_kdma_adm_config_low.yml",
"--username", "kitware-single-kdma-adm-aligned-no-negatives",
"--align-to-target",
"--session-type", "adept",
"--api_endpoint", "http://127.0.0.1:8080",
"--loglevel", "DEBUG",
"--logfile-path", "${workspaceFolder}/results/low/output.log",
"--save-input-output-to-path", "${workspaceFolder}/results/low/input-output.json",
"--save-alignment-score-to-path", "${workspaceFolder}/results/low/output-scores.json",
"--training-session"
],
"env": {
"CUDA_VISIBLE_DEVICES": "3"
}
},
{
"name": "High Baseline Adept",
"type": "debugpy",
"request": "launch",
"console": "integratedTerminal",
"module": "align_system.cli.run_align_system",
"args": [
"TA3ActionBased",
"--adm-config", "adm_configs/single_kdma_adm_config_high_baseline.yml",
"--username", "kitware-single-kdma-adm-aligned-no-negatives",
"--align-to-target",
"--session-type", "adept",
"--api_endpoint", "http://127.0.0.1:8080",
"--loglevel", "DEBUG",
"--logfile-path", "${workspaceFolder}/results/high_baseline/output.log",
"--save-input-output-to-path", "${workspaceFolder}/results/high_baseline/input-output.json",
"--save-alignment-score-to-path", "${workspaceFolder}/results/high_baseline/output-scores.json",
"--training-session"
],
"env": {
"CUDA_VISIBLE_DEVICES": "3"
}
},
{
"name": "Low Baseline Adept",
"type": "debugpy",
"request": "launch",
"console": "integratedTerminal",
"module": "align_system.cli.run_align_system",
"args": [
"TA3ActionBased",
"--adm-config", "adm_configs/single_kdma_adm_config_low_baseline.yml",
"--username", "kitware-single-kdma-adm-aligned-no-negatives",
"--align-to-target",
"--session-type", "adept",
"--api_endpoint", "http://127.0.0.1:8080",
"--loglevel", "DEBUG",
"--logfile-path", "${workspaceFolder}/results/low_baseline/output.log",
"--save-input-output-to-path", "${workspaceFolder}/low_baseline/baseline/input-output.json",
"--save-alignment-score-to-path", "${workspaceFolder}/low_baseline/baseline/output-scores.json",
"--training-session"
],
"env": {
"CUDA_VISIBLE_DEVICES": "3"
}
}
]
}
17 changes: 17 additions & 0 deletions adm_configs/single_kdma_adm_config_high.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
adm:
name: 'SingleKDMAADM'
init_kwargs:
hf_model: meta-llama/Llama-2-7b-chat-hf
precision: half
temperature: 0.7

inference_kwargs:
baseline: false
n_negative_samples: 0
n_positive_samples: 1
shuffle: true

alignment_target_override:
id: ADEPT-metrics_eval-alignment-target-train-HIGH
kdma_values:
- {kdma: MoralDesert, value: 1}
22 changes: 22 additions & 0 deletions adm_configs/single_kdma_adm_config_high_incontext.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
adm:
name: 'SingleKDMAADM'
init_kwargs:
hf_model: meta-llama/Llama-2-7b-chat-hf
precision: half
temperature: 0.7

inference_kwargs:
baseline: false
n_negative_samples: 0
n_positive_samples: 1
shuffle: true
incontext:
number: 5
method: bert_similarity
# dataset: ../datasets/metrics-eval/bbn/metrics-eval-train-renamed.json
dataset: /data/shared/samba/integrated_results_metrics_eval/captured_dataset_for_chris/baseline_adept_high-1715105775-input-output.json

alignment_target_override:
id: ADEPT-metrics_eval-alignment-target-train-HIGH
kdma_values:
- {kdma: MoralDesert, value: 1}
17 changes: 17 additions & 0 deletions adm_configs/single_kdma_adm_config_low.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
adm:
name: 'SingleKDMAADM'
init_kwargs:
hf_model: meta-llama/Llama-2-7b-chat-hf
precision: half
temperature: 0.7

inference_kwargs:
baseline: false
n_negative_samples: 0
n_positive_samples: 1
shuffle: true

alignment_target_override:
id: ADEPT-metrics_eval-alignment-target-train-LOW
kdma_values:
- {kdma: MoralDesert, value: 0}
17 changes: 17 additions & 0 deletions adm_configs/single_kdma_adm_config_low_baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
adm:
name: 'SingleKDMAADM'
init_kwargs:
hf_model: meta-llama/Llama-2-7b-chat-hf
precision: half
temperature: 0.7

inference_kwargs:
baseline: true
n_negative_samples: 0
n_positive_samples: 1
shuffle: true

alignment_target_override:
id: ADEPT-metrics_eval-alignment-target-train-LOW
kdma_values:
- {kdma: MoralDesert, value: 0}
22 changes: 22 additions & 0 deletions adm_configs/single_kdma_adm_config_low_incontext.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
adm:
name: 'SingleKDMAADM'
init_kwargs:
hf_model: meta-llama/Llama-2-7b-chat-hf
precision: half
temperature: 0.7

inference_kwargs:
baseline: false
n_negative_samples: 0
n_positive_samples: 1
shuffle: true
incontext:
number: 5
method: bert_similarity
# dataset: ../datasets/metrics-eval/bbn/metrics-eval-train-renamed.json
dataset: /data/shared/samba/integrated_results_metrics_eval/captured_dataset_for_chris/baseline_adept_high-1715105775-input-output.json

alignment_target_override:
id: ADEPT-metrics_eval-alignment-target-train-LOW
kdma_values:
- {kdma: MoralDesert, value: 0}
Loading