Skip to content

Commit ecab0c2

Browse files
authored
Merge pull request #1526 from PAIR-code/dev
Merge LIT v1.2 onto main for release
2 parents 799a1a3 + 57c3ca3 commit ecab0c2

File tree

155 files changed

+2018
-11367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+2018
-11367
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix:
3535
node-version: [18]
36-
python-version: ["3.10", "3.11"]
36+
python-version: ["3.9", "3.10", "3.11"]
3737
defaults:
3838
run:
3939
shell: bash -l {0}
@@ -47,7 +47,9 @@ jobs:
4747
python-version: ${{ matrix.python-version }}
4848
- name: Install Python dependencies
4949
run: python -m pip install -r requirements.txt
50-
- name: Test Python library
50+
- name: Install LIT package
51+
run: python -m pip install -e .
52+
- name: Test LIT
5153
run: |
5254
python -m pip install pytest
5355
pytest -v

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ docs/documentation/.buildinfo
1414
docs/documentation/.doctrees/**
1515

1616
**/.DS_Store
17-
.dalle-venv/
1817
.tydi-venv/
1918
.venv/
2019
.vscode/

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
recursive-include lit_nlp/client/build/default *.js* *.gif *.html *.png *.svg
2-
include lit_nlp/examples/datasets/prompt_examples.jsonl
2+
include lit_nlp/examples/prompt_debugging/prompt_examples.jsonl

README.md

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🔥 Learning Interpretability Tool (LIT)
22

3-
<!--* freshness: { owner: 'lit-dev' reviewed: '2023-09-22' } *-->
3+
<!--* freshness: { owner: 'lit-dev' reviewed: '2024-06-25' } *-->
44

55
The Learning Interpretability Tool (🔥LIT, formerly known as the Language
66
Interpretability Tool) is a visual, interactive ML model-understanding tool that
@@ -21,8 +21,8 @@ LIT is built to answer questions such as:
2121
LIT supports a variety of debugging workflows through a browser-based UI.
2222
Features include:
2323

24-
* **Local explanations** via salience maps, attention, and rich visualization
25-
of model predictions.
24+
* **Local explanations** via salience maps and rich visualization of model
25+
predictions.
2626
* **Aggregate analysis** including custom metrics, slicing and binning, and
2727
visualization of embedding spaces.
2828
* **Counterfactual generation** via manual edits or generator plug-ins to
@@ -90,8 +90,8 @@ git clone https://github.com/PAIR-code/lit.git && cd lit
9090
```
9191

9292

93-
Note: be sure you are running Python 3.10. If you have a different version on
94-
your system, use the `conda` instructions below to set up a Python 3.10
93+
Note: be sure you are running Python 3.9+. If you have a different version on
94+
your system, use the `conda` instructions below to set up a Python 3.9
9595
environment.
9696

9797
Set up a Python environment with `venv`:
@@ -106,7 +106,7 @@ Or set up a Python environment using `conda`:
106106
```sh
107107
conda create --name lit-nlp
108108
conda activate lit-nlp
109-
conda install python=3.10
109+
conda install python=3.9
110110
conda install pip
111111
```
112112

@@ -142,13 +142,7 @@ To explore classification and regression models tasks from the popular
142142
[GLUE benchmark](https://gluebenchmark.com/):
143143

144144
```sh
145-
python -m lit_nlp.examples.glue_demo --port=5432 --quickstart
146-
```
147-
148-
Or, using `docker`:
149-
150-
```sh
151-
docker run --rm -e DEMO_NAME=glue_demo -p 5432:5432 -t lit-nlp --quickstart
145+
python -m lit_nlp.examples.glue.demo --port=5432 --quickstart
152146
```
153147

154148
Navigate to http://localhost:5432 to access the LIT UI.
@@ -160,19 +154,6 @@ but you can switch to
160154
[STS-B](http://ixa2.si.ehu.es/stswiki/index.php/STSbenchmark) or
161155
[MultiNLI](https://cims.nyu.edu/~sbowman/multinli/) using the toolbar or the
162156
gear icon in the upper right.
163-
164-
### Quick-start: language modeling
165-
166-
To explore predictions from a pre-trained language model (BERT or GPT-2), run:
167-
168-
```sh
169-
python -m lit_nlp.examples.lm_demo --models=bert-base-uncased --port=5432
170-
```
171-
172-
Or, using `docker`:
173-
174-
```sh
175-
docker run --rm -e DEMO_NAME=lm_demo -p 5432:5432 -t lit-nlp --models=bert-base-uncased
176157
```
177158
178159
And navigate to http://localhost:5432 for the UI.
@@ -192,7 +173,7 @@ See [lit_nlp/examples](./lit_nlp/examples). Most are run similarly to the
192173
quickstart example above:
193174
194175
```sh
195-
python -m lit_nlp.examples.<example_name> --port=5432 [optional --args]
176+
python -m lit_nlp.examples.<example_name>.demo --port=5432 [optional --args]
196177
```
197178

198179
## User Guide

RELEASE.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
# Learning Interpretability Tool Release Notes
22

3+
## Release 1.2
4+
5+
This release covers clean-ups on various obsolete demos, as well as improved
6+
packaging and isolated dependencies on the GLUE, Penguin, Prompt Debugging with
7+
Sequence Salience and TyDi demos for easier launch.
8+
9+
### New Stuff
10+
* Improved packaging and instructions for launching Prompt Debugging with
11+
Sequence Salience demo, as well as minor bug fixes -
12+
[08289df](https://github.com/PAIR-code/lit/commit/08289df0dd9927dee7147e5aad6e8b51bbe74f9e),
13+
[675ca2d](https://github.com/PAIR-code/lit/commit/675ca2de21b68dc62e4909c80a2cd57d8ee8b601),
14+
[15eccb1](https://github.com/PAIR-code/lit/commit/15eccb1197366c925a5beff310fb5d7d369bde0c),
15+
[e0e35c3](https://github.com/PAIR-code/lit/commit/e0e35c3ffcfd9ad5331d4154e7d33d0b1d0daf89),
16+
[c7970fb](https://github.com/PAIR-code/lit/commit/c7970fb8c51d2a8bd3647cc7eedd15cca285ac08),
17+
[cee3b58](https://github.com/PAIR-code/lit/commit/cee3b58baea2de27633109e6dd5b3e4211fa46ea)
18+
19+
* Clean up of obsolete demos -
20+
[b16059f](https://github.com/PAIR-code/lit/commit/b16059fbd0320d411298009c0226489e1f548a69),
21+
[f4c0990](https://github.com/PAIR-code/lit/commit/f4c099082f0e89986aad162cc3cd0ac9bc2214c7),
22+
[6aa2eb6](https://github.com/PAIR-code/lit/commit/6aa2eb64eddb8ca154401bfd6a039762bc374d6d),
23+
[c2fb41b](https://github.com/PAIR-code/lit/commit/c2fb41b4945edb91fac973cf0ddbca48c6257511),
24+
[dd196e9](https://github.com/PAIR-code/lit/commit/dd196e941058a1d4246b3df3a3c37595f9791b18),
25+
[72fd772](https://github.com/PAIR-code/lit/commit/72fd772fa02c7445f27fb517e667987ea8ab34d7),
26+
[71d88fb](https://github.com/PAIR-code/lit/commit/71d88fb86eb88ffb80d665cf7571b21d7ae06bd2),
27+
[aa49340](https://github.com/PAIR-code/lit/commit/aa493409c454a2ed269fdedd15353404c14b4936),
28+
[fc7b0d0](https://github.com/PAIR-code/lit/commit/fc7b0d0624f6cc8e456ac0a1d75a4149927bef2f),
29+
[2475b3b](https://github.com/PAIR-code/lit/commit/2475b3bb677c8685ab9a291c490783ae2ccce5b8),
30+
[a59641c](https://github.com/PAIR-code/lit/commit/a59641c014b17409e8e5cfdac1cc1e6916d6da15),
31+
[1ed82d4](https://github.com/PAIR-code/lit/commit/1ed82d4e81ff6a6ff5146b6198e35444960d326b),
32+
[7d5ef58](https://github.com/PAIR-code/lit/commit/7d5ef5831427de71416c096a6dbcd46ea064457e),
33+
[992823b](https://github.com/PAIR-code/lit/commit/992823b027fca8c60edabe837248a508ac04da22),
34+
[3dad2b0](https://github.com/PAIR-code/lit/commit/3dad2b061b45cb44b1c3f9b9364660e907662069),
35+
[0656386](https://github.com/PAIR-code/lit/commit/0656386188d6e4b6c83dab58fb4e6569ebea217e),
36+
[27d7a84](https://github.com/PAIR-code/lit/commit/27d7a841cf6d514e67ebfb2af9f603398499f6e3),
37+
[8863019](https://github.com/PAIR-code/lit/commit/886301972ec1e7ed274040b46ec0e0c3f34c8ace),
38+
[71cbdba](https://github.com/PAIR-code/lit/commit/71cbdbaee0fee8e96f52cd4df7a269a0873b9259),
39+
[416d573](https://github.com/PAIR-code/lit/commit/416d573d79f84b9a6964d36e498b850a249ef452)
40+
41+
* Python requirements update and isolated setup for individual demos -
42+
[bcc481e](https://github.com/PAIR-code/lit/commit/bcc481e44185d04268f5f8bb4ba762ec2cd35907),
43+
[bb29f43](https://github.com/PAIR-code/lit/commit/bb29f430ff7be55d74a82aec5dee1e54fa27bed0),
44+
[fbd8874](https://github.com/PAIR-code/lit/commit/fbd88746263fec0f72f2f01bcc382e88e902ab50),
45+
[b3c120b](https://github.com/PAIR-code/lit/commit/b3c120b22138fb03a712f11778197cf4966d0c3a),
46+
[5188c8c](https://github.com/PAIR-code/lit/commit/5188c8c835328efcc9dff5a0a4cf4cd79fabe099),
47+
[5639e3b](https://github.com/PAIR-code/lit/commit/5639e3b1b71b1c0ddf4a3c9e1bd25517fba18375)
48+
49+
* Documentation cleanup and updates -
50+
[afd51fe](https://github.com/PAIR-code/lit/commit/afd51fe299c0070a19946a789984957f14a9b5bb),
51+
[7dda659](https://github.com/PAIR-code/lit/commit/7dda659bec4e933d187b0d7afc04d954ae262cc2),
52+
[79ada6e](https://github.com/PAIR-code/lit/commit/79ada6edf8b2e485ec6a6425d4c60720b4dab8d1),
53+
[1c8d6a0](https://github.com/PAIR-code/lit/commit/1c8d6a0269ce5637e05e79ae435f770e2a0da147),
54+
[2e9d267](https://github.com/PAIR-code/lit/commit/2e9d26738d9344cde0eebd66d49dfc14cd800e74)
55+
56+
### Non-breaking Changes, Bug Fixes, and Enhancements
57+
* Refactor DataService reactions - [483082d](https://github.com/PAIR-code/lit/commit/483082dcb0beb39795c0fc093fe93036bb6a274c)
58+
* Add warm_start option to LitWidget - [a5265a4](https://github.com/PAIR-code/lit/commit/a5265a4feeb701b878986f79665d5fdf9ddc244c)
59+
* Pretty-printing of Model objects - [4fb3bde](https://github.com/PAIR-code/lit/commit/4fb3bde897c68fdeb3bd829f6e5a88223bc131a4)
60+
* Avoid equivalent shuffles in Scrambler - [0d8c0d9](https://github.com/PAIR-code/lit/commit/0d8c0d948480e0835fd3f451b95b7ec306b6409d)
61+
* Updated gunicorn config for demos running in Docker - [b14e3b1](https://github.com/PAIR-code/lit/commit/b14e3b1a81d7b6305063f778f46666a4d1326045)
62+
* Disable embeddings for TyDi - [7ff377f](https://github.com/PAIR-code/lit/commit/7ff377f92820748476e796994fd207e1b5dba1d9)
63+
* Cast embeddings to float32 before computing distances - [5456011](https://github.com/PAIR-code/lit/commit/5456011db8ead5d53db6f39bcdca3fc388802fbe)
64+
* Update colab examples to include installation of the lit-nlp package - [48b029c](https://github.com/PAIR-code/lit/commit/48b029c3a1a3f25d4d2611a9b0e94355d41078ef)
65+
366
## Release 1.1.1
467

568
This release covers various improvements for sequence salience, including new
-78.5 KB
Binary file not shown.
-64.3 KB
Binary file not shown.
-38.1 KB
Binary file not shown.
-122 KB
Binary file not shown.
-43.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)