Skip to content

Commit

Permalink
Status page
Browse files Browse the repository at this point in the history
  • Loading branch information
cadentj committed Jan 16, 2024
1 parent 8e0df04 commit 14ff8cb
Show file tree
Hide file tree
Showing 70 changed files with 2,025 additions and 1,571 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added public/.DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions public/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 73c79513a9cca0844f5274a9026146e5
tags: d77d1c0d9ca2f4c8421862c7c5a0d620
43 changes: 42 additions & 1 deletion public/_sources/features.rst.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,49 @@
Features
==========

.. .. grid:: 2
.. :gutter: 2
.. .. grid-item-card:: Getting Values
.. :link: notebooks/features/getting.ipynb
.. .. grid-item-card:: Setting Values
.. :link: notebooks/features/setting.ipynb
.. .. grid-item-card:: Applying Operations
.. :link: notebooks/features/operations.ipynb
.. .. grid-item-card:: Applying Modules
.. :link: notebooks/features/modules.ipynb
.. .. grid-item-card:: Cross-Prompt Intervention
.. :link: notebooks/features/cross_prompt.ipynb
.. .. grid-item-card:: Multiple Token Generation
.. :link: notebooks/features/multiple_token.ipynb
.. .. grid-item-card:: Working With Gradients
.. :link: notebooks/features/gradients.ipynb
.. .. grid-item-card:: Remote Execution
.. :link: notebooks/features/remote_execution.ipynb
.. .. grid-item-card:: Token Based Indexing
.. :link: notebooks/features/token_indexing.ipynb
.. toctree::
:maxdepth: 1

notebooks/features/getting.ipynb
notebooks/features/setting.ipynb
notebooks/features/operations.ipynb
Expand All @@ -13,3 +53,4 @@ Features
notebooks/features/gradients.ipynb
notebooks/features/remote_execution.ipynb
notebooks/features/token_indexing.ipynb

4 changes: 2 additions & 2 deletions public/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ nnsight

.. div:: sd-fs-1 sd-font-weight-bold title-bot sd-text-primary image-container

nnsight
NNsight

.. div:: sd-fs-4 sd-font-weight-bold sd-my-0 sub-bot image-container

interpretable neural networks

**nnsight** (/ɛn.saɪt/) is a package for interpreting and manipulating the internals of large models
**NNsight** (/ɛn.saɪt/) is a package for interpreting and manipulating the internals of large models

.. div:: button-group

Expand Down
139 changes: 77 additions & 62 deletions public/_sources/status.rst.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,78 @@
:html_theme.sidebar_secondary.remove:
:sd_hide_title:

status
.. raw:: html

<script>
fetch("https://ndif.dev/ping")
.then((response) => {
if (response.status == 200) {
Array.from(document.getElementsByClassName("status-container")).forEach((elm) => {
elm.style.backgroundColor = "#23C552";
Array.from(elm.getElementsByClassName('sd-card-text')).forEach((text) => {
text.textContent = "All Systems Are Operational";
text.style.color = "#FFFFFF";
});
});
console.log('Ping success');
// Nested fetch to ndif.dev/stats
fetch("https://ndif.dev/stats")
.then((statsResponse) => {
if (statsResponse.status == 200) {
statsResponse.json().then((parsed) => {
// Initialize an empty string to accumulate information
let infoString = '';
// Iterate through the JSON dictionary and append information
Object.keys(parsed).forEach((key) => {
const value = parsed[key];
infoString += `Repo ID: <a href="https://huggingface.co/${value.repo_id}" target="_blank">${value.repo_id}</a><br>Config String: ${value.config_json_string}<br><br>`;
});
// Display the accumulated string
Array.from(document.getElementsByClassName("status-message")).forEach((elm) => {
Array.from(elm.getElementsByClassName('sd-card-text')).forEach((text) => {
text.innerHTML = infoString;
});
});
console.log('Stats success');
}).catch((jsonError) => {
console.log('JSON parsing error:', jsonError);
});
} else {
console.log('Stats error');
}
})
.catch((statsError) => {
console.log('Stats error');
});
} else {
Array.from(document.getElementsByClassName("status-container")).forEach((elm) => {
elm.style.backgroundColor = "#F84F31";
Array.from(elm.getElementsByClassName('sd-card-text')).forEach((text) => {
text.textContent = "NDIF Is Unavailable";
text.style.color = "#FFFFFF";
});
});
console.log('Ping error');
}
})
.catch((pingError) => {
Array.from(document.getElementsByClassName("status-container")).forEach((elm) => {
elm.style.backgroundColor = "#F84F31";
Array.from(elm.getElementsByClassName('sd-card-text')).forEach((text) => {
text.textContent = "NDIF Is Unavailable";
text.style.color = "#FFFFFF";
});
});
console.error('Ping fetch failed:', pingError);
});
</script>


Status
======

.. toctree::
Expand All @@ -11,67 +82,11 @@ status


.. card::

:class-card: status-container

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.
.. card::
:class-card: status-message

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

Loading...
2 changes: 1 addition & 1 deletion public/_sources/tutorials.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tutorials
.. grid-item-card:: Walkthrough
:link: notebooks/walkthrough.ipynb

Main features of the nnsight library.
:bdg-primary:`Main Features`

.. grid-item-card:: IOI Patching
:link: notebooks/tutorials/ioi_patching.ipynb
Expand Down
10 changes: 10 additions & 0 deletions public/_static/css/status.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.status-container {
background-color: '#F84F31';

}

.status-body {
color: "white";
}


2 changes: 1 addition & 1 deletion public/_static/scripts/pydata-sphinx-theme.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_static/scripts/pydata-sphinx-theme.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_static/styles/pydata-sphinx-theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/_static/styles/pydata-sphinx-theme.css.map

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions public/_static/vendor/fontawesome/6.1.2/css/all.min.css

This file was deleted.

2 changes: 0 additions & 2 deletions public/_static/vendor/fontawesome/6.1.2/js/all.min.js

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ as SVG and JS file types.
In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files.

Copyright (c) 2022 Fonticons, Inc. (https://fontawesome.com)
Copyright (c) 2023 Fonticons, Inc. (https://fontawesome.com)
with Reserved Font Name: "Font Awesome".

This Font Software is licensed under the SIL Open Font License, Version 1.1.
Expand Down Expand Up @@ -123,7 +123,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
In the Font Awesome Free download, the MIT license applies to all non-font and
non-icon files.

Copyright 2022 Fonticons, Inc.
Copyright 2023 Fonticons, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Expand Down
5 changes: 5 additions & 0 deletions public/_static/vendor/fontawesome/6.5.1/css/all.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/_static/vendor/fontawesome/6.5.1/js/all.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
* Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2022 Fonticons, Inc.
* Copyright 2023 Fonticons, Inc.
*/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
24 changes: 12 additions & 12 deletions public/_static/webpack-macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
-->
{# Load FontAwesome icons #}
{% macro head_pre_icons() %}
<link href="{{ pathto('_static/vendor/fontawesome/6.1.2/css/all.min.css', 1) }}?digest=c5ced968eda925caa686" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2', 1) }}" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2', 1) }}" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2', 1) }}" />
<link href="{{ pathto('_static/vendor/fontawesome/6.5.1/css/all.min.css', 1) }}?digest=bd9e20870c6007c4c509" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.5.1/webfonts/fa-solid-900.woff2', 1) }}" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.5.1/webfonts/fa-brands-400.woff2', 1) }}" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="{{ pathto('_static/vendor/fontawesome/6.5.1/webfonts/fa-regular-400.woff2', 1) }}" />
{% endmacro %}

{% macro head_pre_assets() %}
<!-- Loaded before other Sphinx assets -->
<link href="{{ pathto('_static/styles/theme.css', 1) }}?digest=c5ced968eda925caa686" rel="stylesheet" />
<link href="{{ pathto('_static/styles/bootstrap.css', 1) }}?digest=c5ced968eda925caa686" rel="stylesheet" />
<link href="{{ pathto('_static/styles/pydata-sphinx-theme.css', 1) }}?digest=c5ced968eda925caa686" rel="stylesheet" />
<link href="{{ pathto('_static/styles/theme.css', 1) }}?digest=bd9e20870c6007c4c509" rel="stylesheet" />
<link href="{{ pathto('_static/styles/bootstrap.css', 1) }}?digest=bd9e20870c6007c4c509" rel="stylesheet" />
<link href="{{ pathto('_static/styles/pydata-sphinx-theme.css', 1) }}?digest=bd9e20870c6007c4c509" rel="stylesheet" />
{% endmacro %}

{% macro head_js_preload() %}
<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=c5ced968eda925caa686" />
<link rel="preload" as="script" href="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=c5ced968eda925caa686" />
<script src="{{ pathto('_static/vendor/fontawesome/6.1.2/js/all.min.js', 1) }}?digest=c5ced968eda925caa686"></script>
<link rel="preload" as="script" href="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=bd9e20870c6007c4c509" />
<link rel="preload" as="script" href="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=bd9e20870c6007c4c509" />
<script src="{{ pathto('_static/vendor/fontawesome/6.5.1/js/all.min.js', 1) }}?digest=bd9e20870c6007c4c509"></script>
{% endmacro %}

{% macro body_post() %}
<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=c5ced968eda925caa686"></script>
<script src="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=c5ced968eda925caa686"></script>
<script src="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=bd9e20870c6007c4c509"></script>
<script src="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=bd9e20870c6007c4c509"></script>
{% endmacro %}
Loading

0 comments on commit 14ff8cb

Please sign in to comment.