-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/JadenFiotto-Kaufman/nnsight …
…into dev
- Loading branch information
Showing
14 changed files
with
167 additions
and
48 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
<style> | ||
.ndif_status { | ||
height: 18px; | ||
width: 18px; | ||
background-color: red; | ||
border-radius: 50%; | ||
display: inline-block; | ||
margin-left: 5px; | ||
vertical-align: middle; | ||
} | ||
</style> | ||
|
||
<span><span>NDIF Status: </span><span class="ndif_status"></span></span> | ||
|
||
<script> | ||
let statusIcon = document.querySelector('.ndif .fa-circle-check'); | ||
fetch("{{ndif_url}}") | ||
.then((response) => { | ||
if (response.status == 200) { | ||
Array.from(document.getElementsByClassName("ndif_status")).forEach((elm) => elm.style.backgroundColor = "green"); | ||
Array.from(document.getElementsByClassName("ndif")).forEach((ndifElement) => { | ||
Array.from(ndifElement.getElementsByTagName('span')).forEach((spanElement) => { | ||
spanElement.style.setProperty('color', '#23C552', 'important'); | ||
}); | ||
}); | ||
} | ||
else { | ||
Array.from(document.getElementsByClassName("ndif_status")).forEach((elm) => elm.style.backgroundColor = "red"); | ||
Array.from(document.getElementsByClassName("ndif")).forEach((ndifElement) => { | ||
Array.from(ndifElement.getElementsByTagName('span')).forEach((spanElement) => { | ||
spanElement.style.setProperty('color', '#F84F31', 'important'); | ||
}); | ||
}); | ||
if (statusIcon) { | ||
statusIcon.classList.replace('fa-circle-check', 'fa-circle-xmark'); | ||
} | ||
} | ||
}) | ||
.catch((response) => { | ||
Array.from(document.getElementsByClassName("ndif")).forEach((ndifElement) => { | ||
Array.from(ndifElement.getElementsByTagName('span')).forEach((spanElement) => { | ||
spanElement.style.setProperty('color', '#F84F31', 'important'); | ||
}); | ||
}); | ||
if (statusIcon) { | ||
statusIcon.classList.replace('fa-circle-check', 'fa-circle-xmark'); | ||
} | ||
}) | ||
.catch((response) => Array.from(document.getElementsByClassName("ndif_status")).forEach((elm) => elm.style.backgroundColor = "red")) | ||
|
||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
:html_theme.sidebar_secondary.remove: | ||
:sd_hide_title: | ||
|
||
status | ||
====== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:hidden: | ||
|
||
|
||
|
||
.. card:: | ||
|
||
All Systems Are Operational | ||
|
||
|
||
|
||
.. div:: sd-fs-1 sd-font-weight-bold sd-text-center sd-text-primary sd-mb-5 | ||
|
||
Key Features | ||
|
||
.. grid:: 1 1 2 2 | ||
:class-container: features | ||
|
||
.. grid-item:: | ||
|
||
.. div:: features-container | ||
|
||
.. image:: _static/images/one.png | ||
:width: 250 | ||
|
||
.. div:: | ||
|
||
**Integration** | ||
|
||
Pass in a ID from any HuggingFace Transformer repo and access its weights with nnsight. | ||
|
||
.. grid-item:: | ||
|
||
.. div:: features-container | ||
|
||
.. image:: _static/images/two.png | ||
:width: 250 | ||
|
||
.. div:: | ||
|
||
**Interpretability** | ||
|
||
Access the internal gradients and activations at any point or module in a model. | ||
|
||
.. grid-item:: | ||
|
||
.. div:: features-container | ||
|
||
.. image:: _static/images/two.png | ||
:width: 250 | ||
|
||
.. div:: | ||
|
||
**Intuitive** | ||
|
||
Set up a context block and manipulate model internals with only a couple lines of code. | ||
|
||
.. grid-item:: | ||
|
||
.. div:: features-container | ||
|
||
.. image:: _static/images/one.png | ||
:width: 250 | ||
|
||
.. div:: | ||
|
||
**Interoperable** | ||
|
||
Enable grad and train interventions like LORA or probes on any point in a model. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,54 @@ | ||
Tutorials | ||
============ | ||
|
||
.. grid:: 2 | ||
:gutter: 2 | ||
|
||
.. grid-item-card:: Walkthrough | ||
:link: notebooks/walkthrough.ipynb | ||
|
||
Main features of the nnsight library. | ||
|
||
.. grid-item-card:: IOI Patching | ||
:link: notebooks/tutorials/ioi_patching.ipynb | ||
|
||
:bdg-primary:`arXiv:2211.00593` | ||
|
||
.. grid-item-card:: Attribution Patching | ||
:link: notebooks/tutorials/attribution_patching.ipynb | ||
|
||
:bdg-primary:`arXiv:2308.09124` | ||
|
||
.. grid-item-card:: Logit Lens | ||
:link: notebooks/tutorials/logit_lens.ipynb | ||
|
||
:bdg-primary:`nostalgebraist` | ||
|
||
.. grid-item-card:: Future Lens | ||
:link: notebooks/tutorials/future_lens.ipynb | ||
|
||
:bdg-primary:`arXiv:2311.04897` | ||
|
||
.. grid-item-card:: Function Vectors | ||
:link: notebooks/tutorials/function_vectors.ipynb | ||
|
||
:bdg-primary:`arXiv:2310.15213` | ||
|
||
.. grid-item-card:: Dictionary Learning | ||
:link: notebooks/tutorials/sae.ipynb | ||
|
||
:bdg-primary:`arXiv:2309.08600` | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:hidden: | ||
|
||
notebooks/tutorials/ioi_patching.ipynb | ||
notebooks/tutorials/attribution_patching.ipynb | ||
notebooks/tutorials/logit_lens.ipynb | ||
notebooks/tutorials/future_lens.ipynb | ||
notebooks/tutorials/function_vectors.ipynb | ||
notebooks/tutorials/dictionary_learning.ipynb | ||
notebooks/tutorials/sae.ipynb | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
notebooks/tutorials/sae.ipynb |