Skip to content

refactor(language-model): refactor Matrix to NodeIndexedTensor #709

refactor(language-model): refactor Matrix to NodeIndexedTensor

refactor(language-model): refactor Matrix to NodeIndexedTensor #709

Triggered via push March 13, 2026 08:46
Status Failure
Total duration 1m 56s
Artifacts

checks.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
Type Checks
Process completed with exit code 1.
Type Checks
7 errors
Type Checks: src/lm_saes/backend/language_model.py#L1010
Cannot access attribute "get_source_nodes" for class "AttributionGraph"   Attribute "get_source_nodes" is unknown (reportAttributeAccessIssue)
Type Checks: src/lm_saes/backend/language_model.py#L1009
Argument of type "tuple[list[NodeInfo], Tensor]" cannot be assigned to parameter "input" of type "Tensor" in function "topk"   "tuple[list[NodeInfo], Tensor]" is not assignable to "Tensor" (reportArgumentType)
Type Checks: src/lm_saes/backend/language_model.py#L1008
"__setitem__" method not defined on type "tuple[list[NodeInfo], Tensor]" (reportIndexIssue)
Type Checks: src/lm_saes/backend/language_model.py#L1004
Argument of type "None" cannot be assigned to parameter "selected_node_infos" of type "dict[Any, NodeInfo]" in function "compute_feature_influences"   "None" is not assignable to "dict[Any, NodeInfo]" (reportArgumentType)
Type Checks: src/lm_saes/backend/language_model.py#L1003
Argument of type "dict[Unknown, Unknown]" cannot be assigned to parameter "logits_infos" of type "list[NodeInfo]" in function "compute_feature_influences"   "dict[Unknown, Unknown]" is not assignable to "list[NodeInfo]" (reportArgumentType)
Type Checks: src/lm_saes/backend/language_model.py#L814
Function with declared return type "tuple[list[NodeInfo], Tensor]" must return value on all code paths   "None" is not assignable to "tuple[list[NodeInfo], Tensor]" (reportReturnType)
Type Checks: src/lm_saes/backend/language_model.py#L781
Cannot access attribute "get_submatrix" for class "NodeIndexedMatrix"   Attribute "get_submatrix" is unknown (reportAttributeAccessIssue)
Unit Tests
Process completed with exit code 2.
ruff
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Type Checks
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Unit Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Distributed Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/