Skip to content

Commit 72e8479

Browse files
authored
Merge pull request #1452 from PAIR-code/dev
Merge dev to main for v1.1.1
2 parents 11b1748 + 664e1b4 commit 72e8479

File tree

92 files changed

+3318
-743
lines changed

Some content is hidden

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

92 files changed

+3318
-743
lines changed

RELEASE.md

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

3+
## Release 1.1.1
4+
5+
This release covers various improvements for sequence salience, including new
6+
features in the UI module, support of more LLMs, and detailed tutorial and
7+
documentation on how to use the sequence salience module for prompt engineering.
8+
9+
### New stuff
10+
* New features in the sequence salience UI module -
11+
[62f18b2](https://github.com/PAIR-code/lit/commit/62f18b2ff62bf77fa47205cffddf0d072a73c366),
12+
[f0417c9](https://github.com/PAIR-code/lit/commit/f0417c93da282a4699253f335c2643be5e50567f),
13+
[fe5a705](https://github.com/PAIR-code/lit/commit/fe5a705bfb013ac782e87351af08bc5b03204e71),
14+
[1ec8626](https://github.com/PAIR-code/lit/commit/1ec8626da0e2a1922fb7812913f2677b232043ef),
15+
[15184a1](https://github.com/PAIR-code/lit/commit/15184a18da69dacfb657c238ef8f5bac79ed7863),
16+
[84af141](https://github.com/PAIR-code/lit/commit/84af141c7cf8a6ddb4db6ececec787ac235ddd17),
17+
[27cafd8](https://github.com/PAIR-code/lit/commit/27cafd85636b3d18f40d15a01ffd5d0857ff0daa),
18+
[3591e61](https://github.com/PAIR-code/lit/commit/3591e614fb09264ee03ae0c73510f1d0a4b74cdf),
19+
[d108b59](https://github.com/PAIR-code/lit/commit/d108b596658f456f43e0b19473ab1c70c59cc065),
20+
[309c4f2](https://github.com/PAIR-code/lit/commit/309c4f283af559ca34570e044d77d5c4a7cce540),
21+
[99821d3](https://github.com/PAIR-code/lit/commit/99821d3b5505d857f919fe2455830e6c2338fd68),
22+
[c8ee224](https://github.com/PAIR-code/lit/commit/c8ee224a445f925a9a7d6d7dc4472436190d0174)
23+
24+
* Support of more models (GPT2, Gemma, Llama, Mistral) on deep learning frameworks (Tensorflow, Pytorch) for Keras and Hugging Face -
25+
[b26256a](https://github.com/PAIR-code/lit/commit/b26256a7c339c9e0940eb7a806528da23098ed03),
26+
[45887d3](https://github.com/PAIR-code/lit/commit/45887d35d3880289595613224524157b19481ac0),
27+
[b9941ed](https://github.com/PAIR-code/lit/commit/b9941ed7aea315022426710ccd32e8e1c7ff6c04),
28+
[5ee7064](https://github.com/PAIR-code/lit/commit/5ee7064ec23933c41b4233061f9cc65b851fa7bb),
29+
[8ea325b](https://github.com/PAIR-code/lit/commit/8ea325b292b09aecbb074abc877525dcdf4f4cd0)
30+
31+
* A tutorial to use sequence salience at [our website](https://pair-code.github.io/lit/tutorials/) and documentation updates -
32+
[962faaa](https://github.com/PAIR-code/lit/commit/962faaabcf209f9cf024df5cc9684d8d4e4e64d8),
33+
[96eff29](https://github.com/PAIR-code/lit/commit/96eff29198e69a8a9f2203d88f9027f5596f1614),
34+
[f731e6d](https://github.com/PAIR-code/lit/commit/f731e6dfdeeb26f959022ed5aeda71e4f1f377d0),
35+
[f4d7cac](https://github.com/PAIR-code/lit/commit/f4d7cacda3399d3e474420facd1a75d5b6af4824),
36+
[49e7736](https://github.com/PAIR-code/lit/commit/49e77369fabd820b3f213f2d846efb5e81dbeafe)
37+
38+
### Non-breaking Changes, Bug Fixes, and Enhancements
39+
* Py typing fix -
40+
[d70e3d3](https://github.com/PAIR-code/lit/commit/d70e3d3c64671dfd5da034d3a47a34aedeef6469)
41+
* Improvements on the curves UI module -
42+
[3d61a09](https://github.com/PAIR-code/lit/commit/3d61a09b684b3d57fc23b1362091d5293d8e6d19)
43+
[2efe62b](https://github.com/PAIR-code/lit/commit/2efe62b77dbfddf698b0a79408c0227bd21dc959)
44+
* Support model-column search in LIT Data Table -
45+
[525bf5e](https://github.com/PAIR-code/lit/commit/525bf5e7c005fe1f931867bc1206b527544865b3)
46+
* Obsolete code cleanup -
47+
[82abec6](https://github.com/PAIR-code/lit/commit/82abec688836b8e6d136de83e56660ea055dc91d)
48+
49+
350
## Release 1.1
451

552
This release provides the capabilities to interpret and debug the behaviors of

docs/assets/css/new.css

Lines changed: 98 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ body {
33
font-family: "Open Sans", sans-serif;
44
}
55

6-
.mdl-layout__title a, .mdl-navigation__link, .hero-container {
6+
.mdl-layout__title a,
7+
.mdl-navigation__link,
8+
.hero-container {
79
font-family: "Manrope";
810
}
911

@@ -28,15 +30,19 @@ a:hover {
2830
text-decoration: underline;
2931
}
3032

31-
a, a:visited, a:hover, a:active {
33+
a,
34+
a:visited,
35+
a:hover,
36+
a:active {
3237
color: #07a3ba;
3338
}
3439

3540
.spacer {
3641
width: 100%;
3742
}
3843

39-
.link-out, .resource-card-cta-button a {
44+
.link-out,
45+
.resource-card-cta-button a {
4046
font-family: "Manrope";
4147
font-weight: 600;
4248
font-size: 20px;
@@ -134,11 +140,13 @@ h5 {
134140
color: black;
135141
}
136142

137-
.mdl-layout__title a:visited, .mdl-layout__title a:active {
143+
.mdl-layout__title a:visited,
144+
.mdl-layout__title a:active {
138145
color: inherit;
139146
}
140147

141-
.sub-hero-container, .tutorial-hero-container {
148+
.sub-hero-container,
149+
.tutorial-hero-container {
142150
width: 100%;
143151
height:225px;
144152
background-size: cover;
@@ -180,7 +188,11 @@ h5 {
180188
margin-left: 5px;
181189
}
182190

183-
.hero-container, .main-page-container, .sub-page-container, .tutorial-page-container, .footer-container {
191+
.hero-container,
192+
.main-page-container,
193+
.sub-page-container,
194+
.tutorial-page-container,
195+
.footer-container {
184196
margin: 0 auto;
185197
max-width:950px;
186198
}
@@ -209,7 +221,8 @@ h5 {
209221
border-radius: 8px;
210222
}
211223

212-
.home-card-action, .section-action {
224+
.home-card-action,
225+
.section-action {
213226
font-weight: 600;
214227
font-size: 16px;
215228
line-height: 22px;
@@ -250,11 +263,15 @@ h5 {
250263
margin-bottom: 50px;
251264
}
252265

253-
.home-card-cta-button a:link, .link-out a:link {
266+
.home-card-cta-button a:link,
267+
.link-out a:link {
254268
text-decoration: none;
255269
}
256270

257-
.home-card-cta-button a:visited, .home-card-cta-button a:active, .link-out a:visited, .link-out a:active {
271+
.home-card-cta-button a:visited,
272+
.home-card-cta-button a:active,
273+
.link-out a:visited,
274+
.link-out a:active {
258275
color: #07a3ba;
259276
}
260277

@@ -270,7 +287,9 @@ h5 {
270287
overflow:hidden;
271288
}
272289

273-
.video-container iframe, .video-container object, .video-container embed {
290+
.video-container iframe,
291+
.video-container object,
292+
.video-container embed {
274293
position:absolute;
275294
top:0;
276295
left:0;
@@ -315,8 +334,8 @@ h5 {
315334
color: #3C4043;
316335
}
317336

318-
319-
.sub-title, .tutorial-title {
337+
.sub-title,
338+
.tutorial-title {
320339
color: white;
321340
font-size: 32px;
322341
line-height: 40px;
@@ -330,22 +349,27 @@ h5 {
330349
line-height: 28px;
331350
}
332351

333-
334-
.capability-element, .tutorial-link-element {
352+
.capability-element,
353+
.tutorial-link-element {
335354
margin-top:48px;
336355
border-bottom: 1px solid #A4B7C8;
337356
}
338357

339-
.capability-title a, .tutorial-link-title a {
358+
.capability-title a,
359+
.tutorial-link-title a {
340360
text-decoration: none;
341361
color: inherit;
342362
}
343363

344-
.capability-title a:hover, .tutorial-link-title a:hover {
364+
.capability-title a:hover,
365+
.tutorial-link-title a:hover {
345366
text-decoration: underline;
346367
}
347368

348-
.capability-title a:visited, .tutorial-link-title a:visited, .capability-title a:active, .tutorial-link-title a:active {
369+
.capability-title a:visited,
370+
.tutorial-link-title a:visited,
371+
.capability-title a:active,
372+
.tutorial-link-title a:active {
349373
color: inherit;
350374
}
351375

@@ -365,7 +389,8 @@ h5 {
365389
margin: 25px 0px;
366390
}
367391

368-
.capability-copy, .tutorial-link-copy {
392+
.capability-copy,
393+
.tutorial-link-copy {
369394
margin-bottom: 15px;
370395
}
371396

@@ -375,7 +400,8 @@ h5 {
375400
padding: 12px;
376401
}
377402

378-
.resource-card-title, .demo-card-title {
403+
.resource-card-title,
404+
.demo-card-title {
379405
font-size: 22px;
380406
line-height: 28px;
381407
color: #8230cd;
@@ -391,7 +417,8 @@ h5 {
391417
text-decoration: underline;
392418
}
393419

394-
.demo-card-title a:visited, .demo-card-title a:active {
420+
.demo-card-title a:visited,
421+
.demo-card-title a:active {
395422
color: inherit;
396423
}
397424

@@ -417,7 +444,8 @@ h5 {
417444
margin-bottom: 25px;
418445
}
419446

420-
.resource-card-copy, .demo-card-copy {
447+
.resource-card-copy,
448+
.demo-card-copy {
421449
font-size: 16px;
422450
line-height: 20px;
423451
letter-spacing: 0.2px;
@@ -455,19 +483,47 @@ h5 {
455483
display: inline-block;
456484
}
457485

458-
459486
.tutorial-image {
460487
width: 100%;
488+
cursor: zoom-in;
489+
}
490+
491+
.tutorial-image-popover {
492+
border: 0;
493+
padding: 0;
494+
background: transparent;
495+
pointer-events: none; /* click to close image */
496+
}
497+
498+
.tutorial-image-popover .tutorial-image {
499+
max-width: calc(100vw - 80px);
500+
max-height: calc(100vh - 80px);
501+
502+
cursor: zoom-out;
503+
/* block the default popover close; we'll use js instead */
504+
pointer-events: all;
505+
/* in case image itself has transparency */
506+
background: white;
461507
}
462508

463-
.tutorial-page-container p, .tutorial-page-container ul, .tutorial-page-container ol {
509+
.tutorial-image-popover::backdrop {
510+
background: rgba(0, 0, 0, 0.60);
511+
}
512+
513+
.tutorial-page-container p,
514+
.tutorial-page-container ul,
515+
.tutorial-page-container ol {
464516
font-family: "Open Sans";
465517
font-size: 18px;
466518
line-height: 24px;
467519
letter-spacing: 0.1px;
468520
color: #0E0F12;
469521
}
470522

523+
.tutorial-page-container p > code {
524+
color: #c26412;
525+
}
526+
471527
.tutorial-breadcrumbs {
472528
margin: 72px 0 24px 0;
473529
font-family: "Manrope";
@@ -488,7 +544,8 @@ h5 {
488544
text-decoration: underline;
489545
}
490546

491-
.tutorial-breadcrumbs a:active, .tutorial-breadcrumbs a:visited {
547+
.tutorial-breadcrumbs a:active,
548+
.tutorial-breadcrumbs a:visited {
492549
color: inherit;
493550
}
494551

@@ -544,6 +601,18 @@ h5 {
544601
margin-bottom: 20px;
545602
}
546603

604+
details:not([open]) .info-box-title {
605+
margin-bottom: 0;
606+
}
607+
608+
summary {
609+
cursor: pointer;
610+
}
611+
612+
summary::marker {
613+
color: #0B6F7A;
614+
}
615+
547616
.info-box-text,
548617
.info-box-text p,
549618
.info-box-text ul {
@@ -627,7 +696,11 @@ h5 {
627696
display: none;
628697
}
629698

630-
.hero-container, .main-page-container, .sub-page-container, .tutorial-page-container, .footer-container {
699+
.hero-container,
700+
.main-page-container,
701+
.sub-page-container,
702+
.tutorial-page-container,
703+
.footer-container {
631704
margin: 0 16px;
632705
}
633706

docs/assets/css/prism-material-light.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pre[class*="language-"] {
55
word-spacing: normal;
66
word-break: normal;
77
word-wrap: normal;
8-
color: #90a4ae;
8+
color: #5f6368;
99
background: #fafafa;
1010
font-family: Roboto Mono, monospace;
1111
font-size: 1em;
@@ -21,6 +21,10 @@ pre[class*="language-"] {
2121
hyphens: none;
2222
}
2323

24+
code[class*="language-text"] {
25+
text-wrap: wrap;
26+
}
27+
2428
code[class*="language-"]::-moz-selection,
2529
pre[class*="language-"]::-moz-selection,
2630
code[class*="language-"] ::-moz-selection,
@@ -204,4 +208,4 @@ pre[class*="language-"] {
204208

205209
.token.variable {
206210
color: #e53935;
207-
}
211+
}
324 KB
Loading
342 KB
Loading
912 KB
Loading
982 KB
Loading
522 KB
Loading
408 KB
Loading
503 KB
Loading

0 commit comments

Comments
 (0)