-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAJOR UPDATE: Remove CCS, VINC (#292)
* save hiddens to disk * remove contrast pairs * fix tests * add LEACE to supervised * add assertion for multi-dataset erasure * add blank template for statements * mvp working for llama * inference server working with ids * refactor extraction to use InferenceServer * mvp with inference server * fix caching * don't load model when using cache * add default template * maybe unsqueeze * gutted elk; updated tests * save logprobs * add balance and max_inlp_iter args * extract lm predictions * lm preds * add encodings test, cleanup * ignore type issue * revisions from Nora's feedback; move output_hidden_states to model_kwargs, fix answer token being appended, fix viz, fix tqdm propagation * cleanup * re-fix tests * fix save_logprobs * fix layer sorting in logprobs.pt * mark gpu tests * test logprobs * remove buggy viz test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
670eaec
commit 70a3290
Showing
38 changed files
with
1,204 additions
and
1,886 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
Submodule comparison-sweeps
deleted from
f4ed88
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
from .extraction import Extract, extract_hiddens | ||
from .training import EigenFitter, EigenFitterConfig | ||
from .truncated_eigh import truncated_eigh | ||
from .evaluation import Eval | ||
from .extraction import Extract | ||
from .training.train import Elicit | ||
|
||
__all__ = [ | ||
"EigenFitter", | ||
"EigenFitterConfig", | ||
"extract_hiddens", | ||
"Extract", | ||
"truncated_eigh", | ||
"Elicit", | ||
"Eval", | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
from .balanced_sampler import BalancedSampler, FewShotSampler | ||
from .extraction import Extract, extract, extract_hiddens | ||
from .extraction import Extract, extract, tokenize_dataset | ||
from .generator import _GeneratorBuilder, _GeneratorConfig | ||
from .prompt_loading import load_prompts | ||
from .inference_server import InferenceServer | ||
from .prompt_loading import get_prompter, load_prompts | ||
|
||
__all__ = [ | ||
"BalancedSampler", | ||
"FewShotSampler", | ||
"Extract", | ||
"extract_hiddens", | ||
"InferenceServer", | ||
"extract", | ||
"_GeneratorConfig", | ||
"_GeneratorBuilder", | ||
"load_prompts", | ||
"get_prompter", | ||
"tokenize_dataset", | ||
] |
Oops, something went wrong.