Skip to content

Commit

Permalink
Add the custom model and dataset loaders to prompt debugging notebook.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 676102850
  • Loading branch information
bdu91 authored and LIT team committed Sep 18, 2024
1 parent b87d3d4 commit 338c6b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lit_nlp/examples/prompt_debugging/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,12 @@ def make_notebook_widget(
),
layouts=layouts.PROMPT_DEBUGGING_LAYOUTS,
default_layout=layouts.LEFT_RIGHT,
model_loaders=models.get_model_loaders(
dl_framework=dl_framework,
dl_runtime=dl_runtime,
batch_size=batch_size,
max_length=models.DEFAULT_SEQUENCE_LENGTH,
),
dataset_loaders=datasets.get_dataset_loaders(),
**kwargs,
)

0 comments on commit 338c6b1

Please sign in to comment.