Skip to content

"Algebraic value editing" raises exception #82

@alexander-turner

Description

@alexander-turner

On default settings, I selected the AVE analysis, and got the following:

AssertionError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/app/decisiontransformerinterpretability/app.py", line 193, in <module>
    show_algebraic_value_editing(dt, logit_dir=logit_dir, original_cache=cache)
File "/app/decisiontransformerinterpretability/src/streamlit_app/causal_analysis_components.py", line 780, in show_algebraic_value_editing
    corrupted_tokens = get_corrupted_tokens(dt, key="avec")
File "/app/decisiontransformerinterpretability/src/streamlit_app/causal_analysis_components.py", line 410, in get_corrupted_tokens
    corrupted_tokens = get_modified_tokens_from_app_state(
File "/app/decisiontransformerinterpretability/src/streamlit_app/environment.py", line 147, in get_modified_tokens_from_app_state
    assert not torch.all(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions