Skip to content

Commit

Permalink
Remove attention module from LIT.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 644131463
  • Loading branch information
llcourage authored and LIT team committed Jun 18, 2024
1 parent 0656386 commit 63665c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 358 deletions.
3 changes: 0 additions & 3 deletions lit_nlp/api/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class LitModuleName(dtypes.EnumSerializableAsValues, enum.Enum):
# keep-sorted start
AnnotatedTextGoldModule = 'annotated-text-gold-module'
AnnotatedTextModule = 'annotated-text-module'
AttentionModule = 'attention-module'
ClassificationModule = 'classification-module'
ConfusionMatrixModule = 'confusion-matrix-module'
CurvesModule = 'curves-module'
Expand Down Expand Up @@ -198,7 +197,6 @@ def to_json(self) -> dtypes.JsonDict:
'Explanations': [
modules.SalienceMapModule,
modules.LegacySequenceSalienceModule,
modules.AttentionModule,
modules.FeatureAttributionModule,
],
'Clustering': [modules.SalienceClusteringModule],
Expand Down Expand Up @@ -232,7 +230,6 @@ def to_json(self) -> dtypes.JsonDict:
*MODEL_PREDS_MODULES,
modules.SalienceMapModule,
modules.LegacySequenceSalienceModule,
modules.AttentionModule,
modules.FeatureAttributionModule,
],
'Salience Clustering': [modules.SalienceClusteringModule],
Expand Down
350 changes: 0 additions & 350 deletions lit_nlp/client/modules/attention_module.ts

This file was deleted.

Loading

0 comments on commit 63665c8

Please sign in to comment.