Skip to content

Commit

Permalink
Remove the t5 demo, models, dataset, and other related documentation …
Browse files Browse the repository at this point in the history
…from the LIT examples.

PiperOrigin-RevId: 641263684
  • Loading branch information
llcourage authored and LIT team committed Jun 7, 2024
1 parent 71d88fb commit aa49340
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 1,342 deletions.
76 changes: 0 additions & 76 deletions lit_nlp/components/similarity_searcher.py

This file was deleted.

20 changes: 0 additions & 20 deletions lit_nlp/examples/blank_slate_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@
from lit_nlp.examples.datasets import classification
from lit_nlp.examples.datasets import glue
from lit_nlp.examples.datasets import lm
from lit_nlp.examples.datasets import mt
from lit_nlp.examples.datasets import summarization
from lit_nlp.examples.models import glue_models
from lit_nlp.examples.models import pretrained_lms
from lit_nlp.examples.models import t5
from lit_nlp.examples.penguin import data as penguin_data
from lit_nlp.examples.penguin import model as penguin_model

Expand Down Expand Up @@ -88,16 +85,6 @@ def main(argv: Sequence[str]) -> Optional[dev_server.LitServerType]:
penguin_model.PenguinModel.init_spec(),
)

# t5 demo model loaders.
model_loaders["T5 summarization"] = (
t5.T5Summarization,
t5.T5Summarization.init_spec(),
)
model_loaders["T5 translation"] = (
t5.T5Translation,
t5.T5Translation.init_spec(),
)

# lm demo model loaders.
model_loaders["bert"] = (
pretrained_lms.BertMLM,
Expand All @@ -122,13 +109,6 @@ def main(argv: Sequence[str]) -> Optional[dev_server.LitServerType]:
penguin_data.PenguinDataset.init_spec(),
)

# t5 demo dataset loaders.
dataset_loaders["CNN DailyMail (t5)"] = (
summarization.CNNDMData,
summarization.CNNDMData.init_spec(),
)
dataset_loaders["WMT 14 (t5)"] = (mt.WMT14Data, mt.WMT14Data.init_spec())

# lm demo dataset loaders.
dataset_loaders["sst (lm)"] = (
glue.SST2DataForLM,
Expand Down
201 changes: 0 additions & 201 deletions lit_nlp/examples/datasets/mt.py

This file was deleted.

Loading

0 comments on commit aa49340

Please sign in to comment.