Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Major] Update API namings and parameters #78

Merged
merged 10 commits into from
Jan 21, 2024
Merged

[Major] Update API namings and parameters #78

merged 10 commits into from
Jan 21, 2024

Conversation

frankaging
Copy link
Collaborator

Testing Done:

WARNING:root:Saving trainable intervention to intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Saving trainable intervention to intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:The key is provided in the config. Assuming this is loaded from a pretrained module.
WARNING:root:Loading trainable intervention from intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Loading trainable intervention from intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Directory './test_output_dir_prefix-2a2df9' created successfully.
.Directory './test_output_dir_prefix-1481de' created successfully.
WARNING:root:Saving trainable intervention to intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Saving trainable intervention to intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Removing testing dir ./test_output_dir_prefix-2759d7
Removing testing dir ./test_output_dir_prefix-957b2e
Removing testing dir ./test_output_dir_prefix-409253
Removing testing dir ./test_output_dir_prefix-2a2df9
Removing testing dir ./test_output_dir_prefix-1481de

----------------------------------------------------------------------
Ran 31 tests in 5.177s

OK

@frankaging
Copy link
Collaborator Author

More Testing Done:

Directory './test_output_dir_prefix-31b890' created successfully.
WARNING:root:Saving trainable intervention to intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Saving trainable intervention to intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:The key is provided in the config. Assuming this is loaded from a pretrained module.
WARNING:root:Loading trainable intervention from intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Loading trainable intervention from intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Directory './test_output_dir_prefix-9c79ad' created successfully.
.Directory './test_output_dir_prefix-5595ff' created successfully.
WARNING:root:Saving trainable intervention to intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Saving trainable intervention to intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Removing testing dir ./test_output_dir_prefix-09bf4e
Removing testing dir ./test_output_dir_prefix-4cb070
Removing testing dir ./test_output_dir_prefix-31b890
Removing testing dir ./test_output_dir_prefix-9c79ad
Removing testing dir ./test_output_dir_prefix-5595ff

----------------------------------------------------------------------
Ran 43 tests in 29.018s

OK

All tutorials are passing. I am adding more tests.

@frankaging
Copy link
Collaborator Author

More Testing Done:

  • All tutorials are updated and tested.
  • Local unit test log:
WARNING:root:Loading trainable intervention from intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Loading trainable intervention from intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Directory './test_output_dir_prefix-83818f' created successfully.
.Directory './test_output_dir_prefix-353ba0' created successfully.
WARNING:root:Saving trainable intervention to intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Saving trainable intervention to intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Removing testing dir ./test_output_dir_prefix-794d1a
Removing testing dir ./test_output_dir_prefix-70f750
Removing testing dir ./test_output_dir_prefix-3a678b
Removing testing dir ./test_output_dir_prefix-83818f
Removing testing dir ./test_output_dir_prefix-353ba0

----------------------------------------------------------------------
Ran 48 tests in 36.717s

OK

@frankaging
Copy link
Collaborator Author

Testing Done:

Directory './test_output_dir_prefix-6e2da3' created successfully.
WARNING:root:Saving trainable intervention to intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Saving trainable intervention to intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:The key is provided in the config. Assuming this is loaded from a pretrained module.
WARNING:root:Loading trainable intervention from intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Loading trainable intervention from intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Directory './test_output_dir_prefix-6a3b71' created successfully.
.Directory './test_output_dir_prefix-a73d51' created successfully.
WARNING:root:Saving trainable intervention to intkey_layer.0.repr.block_output.unit.pos.nunit.1#0.bin.
WARNING:root:Saving trainable intervention to intkey_layer.1.repr.block_output.unit.pos.nunit.1#0.bin.
.Removing testing dir ./test_output_dir_prefix-c87663
Removing testing dir ./test_output_dir_prefix-5b6972
Removing testing dir ./test_output_dir_prefix-6e2da3
Removing testing dir ./test_output_dir_prefix-6a3b71
Removing testing dir ./test_output_dir_prefix-a73d51

----------------------------------------------------------------------
Ran 51 tests in 41.240s

OK

@frankaging frankaging merged commit 89cde43 into main Jan 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant