Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
metric-space committed Jul 19, 2024
1 parent 5430aaf commit b3ef9df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions mergekit/scripts/ABM/extract_activations.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,6 @@ def main(
model_config = model.config()
model_arch_info = get_architecture_info(model_config)

# things to do: find the residual space
# rest difference the ignore_spaces
# residual space is the one to for hidden states
# the rest we will attach hooks based on the module name

_json = model_arch_info.definition

residual_space = None
Expand Down
2 changes: 0 additions & 2 deletions mergekit/scripts/ABM/extract_permutation_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,8 @@ def match_tensors_permute_MHA(
corr_submatrix, maximize=True
)

# store cost (cost is maximized here)
costs[j, k] = corr_submatrix[row_ind, col_ind].sum()

# store perm so we don't have to recompute it later
col_inds_storage[j][k] = col_ind

outer_row_ind, outer_col_ind = scipy.optimize.linear_sum_assignment(
Expand Down

0 comments on commit b3ef9df

Please sign in to comment.