Skip to content

Commit 3debb60

Browse files
authoredDec 20, 2024··
Merge pull request #1599 from PAIR-code/dev
Merge dev onto main for v1.3.1 release
2 parents cfcb439 + 21466fa commit 3debb60

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed
 

‎RELEASE.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Learning Interpretability Tool Release Notes
22

3+
4+
## Release 1.3.1
5+
6+
This is a minor update to fix issues with running the [LIT Gemma Colab](https://colab.sandbox.google.com/github/google/generative-ai-docs/blob/main/site/en/gemma/docs/lit_gemma.ipynb).
7+
8+
39
## Release 1.3
410

511
This release updates how the Learning Interpretability Tool (LIT) can be

‎lit_nlp/notebook.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,18 @@
2222
from lit_nlp import server_config
2323
from lit_nlp.api import layout
2424
from lit_nlp.lib import wsgi_serving
25+
from tqdm import notebook
2526

2627
JsonDict = Mapping[str, Any]
2728

28-
is_colab = False
2929
try:
3030
import google.colab # pylint: disable=g-import-not-at-top,unused-import
3131
from google.colab import output # pylint: disable=g-import-not-at-top,unused-import # pytype: disable=import-error
3232
is_colab = True
33-
# Can disable import error as this package is always
34-
# included in colab kernels.
35-
from colabtools import interactive_widgets # pylint: disable=g-import-not-at-top # pytype: disable=import-error
36-
progress_indicator = interactive_widgets.ProgressIter
3733
except (ImportError, ModuleNotFoundError):
38-
from tqdm import notebook # pylint: disable=g-import-not-at-top
39-
progress_indicator = notebook.tqdm
34+
is_colab = False
4035

36+
progress_indicator = notebook.tqdm
4137
modules = layout.LitModuleName
4238

4339
LIT_NOTEBOOK_LAYOUT = layout.LitCanonicalLayout(

‎lit_nlp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lit-client",
3-
"version": "1.3",
3+
"version": "1.3.1",
44
"description": "Client app for LIT, the Learning Interpretability Tool",
55
"engines": {
66
"node": ">=18.0.0"

‎pyproject.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "lit-nlp"
77
# LINT.IfChange
8-
version = "1.3"
8+
version = "1.3.1"
99
# LINT.ThenChange(./lit_nlp/package.json)
1010
authors = [
1111
{ name="Google, LLC", email="lit-dev@google.com" }
@@ -40,7 +40,6 @@ dependencies = [
4040
"six>=1.16.0",
4141
"termcolor>=2.3.0",
4242
"tqdm>=4.64.0",
43-
"umap-learn>=0.5.1",
4443
"werkzeug>=2.2.3",
4544
]
4645
# LINT.ThenChange(./requirements.txt)
@@ -105,10 +104,14 @@ examples-generative-ai = [
105104
"vertexai>=1.49.0",
106105
]
107106
# LINT.ThenChange(./requirements_examples_generative_ai.txt)
107+
umap = [
108+
"umap-learn==0.5.6"
109+
]
108110
# LINT.IfChange
109111
test = [
110112
"lit-nlp[examples-discriminative-ai]",
111113
"lit-nlp[examples-generative-ai]",
114+
"lit-nlp[umap]",
112115
"lime==0.2.0.1",
113116
"pytest>=7.4.0,<8.0.0",
114117
"webtest>=2.0",

‎requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,5 @@ shap>=0.42.0,<0.46.0
3737
six>=1.16.0
3838
termcolor>=2.3.0
3939
tqdm>=4.64.0
40-
umap-learn>=0.5.1
4140
werkzeug>=2.2.3
4241
# LINT.ThenChange(./pyproject.toml)

‎requirements_test.txt

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818

1919
lime==0.2.0.1
2020
pytest>=7.4.0,<8.0.0
21+
umap-learn==0.5.6
2122
webtest>=2.0
2223
# LINT.ThenChange(./pyproject.toml)

‎website/sphinx_src/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Learning Interpretability Tool (LIT)
22

3-
<!--* freshness: { owner: 'lit-dev' reviewed: '2024-08-15' } *-->
3+
<!--* freshness: { owner: 'lit-dev' reviewed: '2024-10-25' } *-->
44

55
<!-- [TOC] placeholder - DO NOT REMOVE -->
66

0 commit comments

Comments
 (0)
Please sign in to comment.