This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import math | |
def iso_c(task_vectors, config): | |
device = config.device | |
print("Computing SVD...") | |
with torch.no_grad(): | |
new_vector = {} | |
for key in task_vectors[0].vector: |