Skip to content

Commit

Permalink
add imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nathankim7 committed Apr 22, 2024
1 parent 2932605 commit 78ba2f6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,5 @@ dmypy.json

# Pyre type checker
.pyre/

.vscode
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
from ..utils import *
from transformers import GPT2Config


class ComplexInterventionWithGPT2TestCase(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/InterventionWithGPT2TestCase.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
from ..utils import *
from transformers import GPT2Config


class InterventionWithGPT2TestCase(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/IntervenableConfigUnitTestCase.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
from ..utils import *
from transformers import GPT2Config


class IntervenableConfigUnitTestCase(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/InterventionUtilsTestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pyvene.models.intervention_utils import _do_intervention_by_swap
from pyvene.models.interventions import VanillaIntervention
from pyvene.models.interventions import CollectIntervention
from transformers import GPT2Config


class InterventionUtilsTestCase(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/ModelUtilsTestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from ..utils import *
from pyvene.models.modeling_utils import *
from pprint import pprint, pformat
from transformers import GPT2Config


class ModelUtilsTestCase(unittest.TestCase):
Expand Down

0 comments on commit 78ba2f6

Please sign in to comment.