Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
725 changes: 725 additions & 0 deletions demos/LIT_Integration_Demo.ipynb

Large diffs are not rendered by default.

1,800 changes: 1,780 additions & 20 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
typeguard="^4.2"
typing-extensions="*"
wandb=">=0.13.5"
# Optional dependencies
lit-nlp = {version = "^1.3", optional = true, python = ">=3.9"}

[tool.poetry.extras]
lit = ["lit-nlp"]

[tool.poetry.group]
[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/test_hooked_encoder_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_decoder_attention(our_model, huggingface_model, hello_world_tokens):
input_len = hello_world_tokens.shape[1]
cache_position = torch.arange(input_len)
huggingface_attn_out = huggingface_attn(embed_out, cache_position=cache_position)[0]
assert_close(our_attn_out, huggingface_attn_out, rtol=3e-4, atol=1e-5)
assert_close(our_attn_out, huggingface_attn_out, rtol=5e-4, atol=1e-5)


def test_attention_layer(our_model, huggingface_model, hello_world_tokens):
Expand Down
Loading
Loading