From 7dda659bec4e933d187b0d7afc04d954ae262cc2 Mon Sep 17 00:00:00 2001 From: Ryan Mullins Date: Tue, 25 Jun 2024 09:18:00 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 646502922 --- docs/documentation/_sources/getting_started.md.txt | 2 +- lit_nlp/examples/glue/demo.py | 4 ++-- lit_nlp/examples/penguin/demo.py | 2 +- website/sphinx_src/getting_started.md | 5 ++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/documentation/_sources/getting_started.md.txt b/docs/documentation/_sources/getting_started.md.txt index 569bb521..80e4eae9 100644 --- a/docs/documentation/_sources/getting_started.md.txt +++ b/docs/documentation/_sources/getting_started.md.txt @@ -76,7 +76,7 @@ Most demos can be run with a single blaze command. To run the default one, you can do: ```sh -python -m lit_nlp.examples.glue_demo \ +python -m lit_nlp.examples.glue.demo \ --quickstart --port=4321 --alsologtostderr ``` diff --git a/lit_nlp/examples/glue/demo.py b/lit_nlp/examples/glue/demo.py index 8fe9d703..0d577032 100644 --- a/lit_nlp/examples/glue/demo.py +++ b/lit_nlp/examples/glue/demo.py @@ -1,11 +1,11 @@ r"""Example demo loading a handful of GLUE models. For a quick-start set of models, run: - blaze run -c opt --config=cuda examples/glue:demo -- \ + python -m lit_nlp.examples.glue.demo \ --quickstart --port=5432 To run with the 'normal' defaults, including full-size BERT models: - blaze run -c opt --config=cuda examples/glue:demo -- --port=5432 + python -m lit_nlp.examples.glue.demo --port=5432 Then navigate to localhost:5432 to access the demo UI. """ diff --git a/lit_nlp/examples/penguin/demo.py b/lit_nlp/examples/penguin/demo.py index c48fd538..b6d1e855 100644 --- a/lit_nlp/examples/penguin/demo.py +++ b/lit_nlp/examples/penguin/demo.py @@ -1,7 +1,7 @@ """🐧 LIT demo for tabular data using penguin classification. To run: - blaze run -c opt --config=cuda examples/penguin:demo -- --port=5432 + python -m lit_nlp.examples.penguin.demo --port=5432 Then navigate to localhost:5432 to access the demo UI. """ diff --git a/website/sphinx_src/getting_started.md b/website/sphinx_src/getting_started.md index 569bb521..fed48807 100644 --- a/website/sphinx_src/getting_started.md +++ b/website/sphinx_src/getting_started.md @@ -72,11 +72,10 @@ variety of model types. The code for these is under [examples](https://github.co ; each is a small script that loads one or more models and starts a LIT server. -Most demos can be run with a single blaze command. To run the default one, you -can do: +Most demos can be run with a single command. To run the default one, you can do: ```sh -python -m lit_nlp.examples.glue_demo \ +python -m lit_nlp.examples.glue.demo \ --quickstart --port=4321 --alsologtostderr ```