Skip to content

Commit

Permalink
Add Sequence Salience tutorial to LIT website
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 621605910
  • Loading branch information
RyanMullins authored and LIT team committed Apr 3, 2024
1 parent 525bf5e commit 96eff29
Show file tree
Hide file tree
Showing 16 changed files with 599 additions and 44 deletions.
6 changes: 6 additions & 0 deletions website/src/_includes/partials/expandable-info-box.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="mdl-cell info-box mdl-cell--12-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
<details>
<summary class="info-box-title">{{ title }}</summary>
<span class="info-box-text">{{ text | markdownify }}</span>
</details>
</div>
99 changes: 75 additions & 24 deletions website/src/assets/css/new.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ body {
font-family: "Open Sans", sans-serif;
}

.mdl-layout__title a, .mdl-navigation__link, .hero-container {
.mdl-layout__title a,
.mdl-navigation__link,
.hero-container {
font-family: "Manrope";
}

Expand All @@ -28,15 +30,19 @@ a:hover {
text-decoration: underline;
}

a, a:visited, a:hover, a:active {
a,
a:visited,
a:hover,
a:active {
color: #07a3ba;
}

.spacer {
width: 100%;
}

.link-out, .resource-card-cta-button a {
.link-out,
.resource-card-cta-button a {
font-family: "Manrope";
font-weight: 600;
font-size: 20px;
Expand Down Expand Up @@ -134,11 +140,13 @@ h5 {
color: black;
}

.mdl-layout__title a:visited, .mdl-layout__title a:active {
.mdl-layout__title a:visited,
.mdl-layout__title a:active {
color: inherit;
}

.sub-hero-container, .tutorial-hero-container {
.sub-hero-container,
.tutorial-hero-container {
width: 100%;
height:225px;
background-size: cover;
Expand Down Expand Up @@ -180,7 +188,11 @@ h5 {
margin-left: 5px;
}

.hero-container, .main-page-container, .sub-page-container, .tutorial-page-container, .footer-container {
.hero-container,
.main-page-container,
.sub-page-container,
.tutorial-page-container,
.footer-container {
margin: 0 auto;
max-width:950px;
}
Expand Down Expand Up @@ -209,7 +221,8 @@ h5 {
border-radius: 8px;
}

.home-card-action, .section-action {
.home-card-action,
.section-action {
font-weight: 600;
font-size: 16px;
line-height: 22px;
Expand Down Expand Up @@ -250,11 +263,15 @@ h5 {
margin-bottom: 50px;
}

.home-card-cta-button a:link, .link-out a:link {
.home-card-cta-button a:link,
.link-out a:link {
text-decoration: none;
}

.home-card-cta-button a:visited, .home-card-cta-button a:active, .link-out a:visited, .link-out a:active {
.home-card-cta-button a:visited,
.home-card-cta-button a:active,
.link-out a:visited,
.link-out a:active {
color: #07a3ba;
}

Expand All @@ -270,7 +287,9 @@ h5 {
overflow:hidden;
}

.video-container iframe, .video-container object, .video-container embed {
.video-container iframe,
.video-container object,
.video-container embed {
position:absolute;
top:0;
left:0;
Expand Down Expand Up @@ -315,8 +334,8 @@ h5 {
color: #3C4043;
}


.sub-title, .tutorial-title {
.sub-title,
.tutorial-title {
color: white;
font-size: 32px;
line-height: 40px;
Expand All @@ -330,22 +349,27 @@ h5 {
line-height: 28px;
}


.capability-element, .tutorial-link-element {
.capability-element,
.tutorial-link-element {
margin-top:48px;
border-bottom: 1px solid #A4B7C8;
}

.capability-title a, .tutorial-link-title a {
.capability-title a,
.tutorial-link-title a {
text-decoration: none;
color: inherit;
}

.capability-title a:hover, .tutorial-link-title a:hover {
.capability-title a:hover,
.tutorial-link-title a:hover {
text-decoration: underline;
}

.capability-title a:visited, .tutorial-link-title a:visited, .capability-title a:active, .tutorial-link-title a:active {
.capability-title a:visited,
.tutorial-link-title a:visited,
.capability-title a:active,
.tutorial-link-title a:active {
color: inherit;
}

Expand All @@ -365,7 +389,8 @@ h5 {
margin: 25px 0px;
}

.capability-copy, .tutorial-link-copy {
.capability-copy,
.tutorial-link-copy {
margin-bottom: 15px;
}

Expand All @@ -375,7 +400,8 @@ h5 {
padding: 12px;
}

.resource-card-title, .demo-card-title {
.resource-card-title,
.demo-card-title {
font-size: 22px;
line-height: 28px;
color: #8230cd;
Expand All @@ -391,7 +417,8 @@ h5 {
text-decoration: underline;
}

.demo-card-title a:visited, .demo-card-title a:active {
.demo-card-title a:visited,
.demo-card-title a:active {
color: inherit;
}

Expand All @@ -417,7 +444,8 @@ h5 {
margin-bottom: 25px;
}

.resource-card-copy, .demo-card-copy {
.resource-card-copy,
.demo-card-copy {
font-size: 16px;
line-height: 20px;
letter-spacing: 0.2px;
Expand Down Expand Up @@ -460,14 +488,20 @@ h5 {
width: 100%;
}

.tutorial-page-container p, .tutorial-page-container ul, .tutorial-page-container ol {
.tutorial-page-container p,
.tutorial-page-container ul,
.tutorial-page-container ol {
font-family: "Open Sans";
font-size: 18px;
line-height: 24px;
letter-spacing: 0.1px;
color: #0E0F12;
}

.tutorial-page-container p > code {
color: #c26412;
}

.tutorial-breadcrumbs {
margin: 72px 0 24px 0;
font-family: "Manrope";
Expand All @@ -488,7 +522,8 @@ h5 {
text-decoration: underline;
}

.tutorial-breadcrumbs a:active, .tutorial-breadcrumbs a:visited {
.tutorial-breadcrumbs a:active,
.tutorial-breadcrumbs a:visited {
color: inherit;
}

Expand Down Expand Up @@ -544,6 +579,18 @@ h5 {
margin-bottom: 20px;
}

details:not([open]) .info-box-title {
margin-bottom: 0;
}

summary {
cursor: pointer;
}

summary::marker {
color: #0B6F7A;
}

.info-box-text,
.info-box-text p,
.info-box-text ul {
Expand Down Expand Up @@ -627,7 +674,11 @@ h5 {
display: none;
}

.hero-container, .main-page-container, .sub-page-container, .tutorial-page-container, .footer-container {
.hero-container,
.main-page-container,
.sub-page-container,
.tutorial-page-container,
.footer-container {
margin: 0 16px;
}

Expand Down
8 changes: 6 additions & 2 deletions website/src/assets/css/prism-material-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pre[class*="language-"] {
word-spacing: normal;
word-break: normal;
word-wrap: normal;
color: #90a4ae;
color: #5f6368;
background: #fafafa;
font-family: Roboto Mono, monospace;
font-size: 1em;
Expand All @@ -21,6 +21,10 @@ pre[class*="language-"] {
hyphens: none;
}

code[class*="language-text"] {
text-wrap: wrap;
}

code[class*="language-"]::-moz-selection,
pre[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection,
Expand Down Expand Up @@ -204,4 +208,4 @@ pre[class*="language-"] {

.token.variable {
color: #e53935;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/assets/images/seqsal-gsm8k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/assets/images/seqsal-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions website/src/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ c-copy: "Get familiar with the interface of the Learning Interpretability Tool."

## Conducting analysis in LIT

{% include partials/tutorial-link-element c-title: "Prompt Engineering with Sequence Salience", link: "/tutorials/sequence-salience",
c-copy: "Learn how to debug and iterate on prompt designs in LIT with the Sequence Salience module." %}

{% include partials/tutorial-link-element c-title: "Salience Maps for Text", link: "/tutorials/text-salience",
c-copy: "Learn how to use salience maps for text data in LIT." %}

Expand Down
Loading

0 comments on commit 96eff29

Please sign in to comment.