Skip to content

Commit

Permalink
Merge pull request #1599 from PAIR-code/dev
Browse files Browse the repository at this point in the history
Merge dev onto main for v1.3.1 release
  • Loading branch information
bdu91 authored Dec 20, 2024
2 parents cfcb439 + 21466fa commit 3debb60
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Learning Interpretability Tool Release Notes


## Release 1.3.1

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).


## Release 1.3

This release updates how the Learning Interpretability Tool (LIT) can be
Expand Down
10 changes: 3 additions & 7 deletions lit_nlp/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,18 @@
from lit_nlp import server_config
from lit_nlp.api import layout
from lit_nlp.lib import wsgi_serving
from tqdm import notebook

JsonDict = Mapping[str, Any]

is_colab = False
try:
import google.colab # pylint: disable=g-import-not-at-top,unused-import
from google.colab import output # pylint: disable=g-import-not-at-top,unused-import # pytype: disable=import-error
is_colab = True
# Can disable import error as this package is always
# included in colab kernels.
from colabtools import interactive_widgets # pylint: disable=g-import-not-at-top # pytype: disable=import-error
progress_indicator = interactive_widgets.ProgressIter
except (ImportError, ModuleNotFoundError):
from tqdm import notebook # pylint: disable=g-import-not-at-top
progress_indicator = notebook.tqdm
is_colab = False

progress_indicator = notebook.tqdm
modules = layout.LitModuleName

LIT_NOTEBOOK_LAYOUT = layout.LitCanonicalLayout(
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lit-client",
"version": "1.3",
"version": "1.3.1",
"description": "Client app for LIT, the Learning Interpretability Tool",
"engines": {
"node": ">=18.0.0"
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "lit-nlp"
# LINT.IfChange
version = "1.3"
version = "1.3.1"
# LINT.ThenChange(./lit_nlp/package.json)
authors = [
{ name="Google, LLC", email="[email protected]" }
Expand Down Expand Up @@ -40,7 +40,6 @@ dependencies = [
"six>=1.16.0",
"termcolor>=2.3.0",
"tqdm>=4.64.0",
"umap-learn>=0.5.1",
"werkzeug>=2.2.3",
]
# LINT.ThenChange(./requirements.txt)
Expand Down Expand Up @@ -105,10 +104,14 @@ examples-generative-ai = [
"vertexai>=1.49.0",
]
# LINT.ThenChange(./requirements_examples_generative_ai.txt)
umap = [
"umap-learn==0.5.6"
]
# LINT.IfChange
test = [
"lit-nlp[examples-discriminative-ai]",
"lit-nlp[examples-generative-ai]",
"lit-nlp[umap]",
"lime==0.2.0.1",
"pytest>=7.4.0,<8.0.0",
"webtest>=2.0",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ shap>=0.42.0,<0.46.0
six>=1.16.0
termcolor>=2.3.0
tqdm>=4.64.0
umap-learn>=0.5.1
werkzeug>=2.2.3
# LINT.ThenChange(./pyproject.toml)
1 change: 1 addition & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@

lime==0.2.0.1
pytest>=7.4.0,<8.0.0
umap-learn==0.5.6
webtest>=2.0
# LINT.ThenChange(./pyproject.toml)
2 changes: 1 addition & 1 deletion website/sphinx_src/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Learning Interpretability Tool (LIT)

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

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

Expand Down

0 comments on commit 3debb60

Please sign in to comment.