gpt-4-0613· OpenAI
Arena Human Preference 55K
for i in range(12): cfckey = f"transformer.h.{i}.mlp.cfc.weight" cprojkey =…
- User
for i in range(12): c_fc_key = f"transformer.h.{i}.mlp.c_fc.weight" c_proj_key = f"transformer.h.{i}.mlp.c_proj.weight"
fcW = checkpoint[c_fc_key] projW = checkpoint[c_proj_key] fc = torch.zeros(3072, 768).to(device) proj = torch.zeros(768, 3072).to(device) for f in range(f): fc1 = sd[f"transformer.h.{i}.mlp.c_fc_{f}_{0}"] fc2 = sd[f"transformer.h.{i}.mlp.c_fc_{f}_{1}"] fc += torch.kron(fc1, fc2) print(fc.shape) proj1 = sd[f"transformer.h.{i}.mlp.c_proj_{f}_{0}"] proj2 = sd[f"transformer.h.{i}.mlp.c_proj_{f}_{1}"] print(proj1.shape, proj2.shape, proj.shape) proj += torch.kron(proj1, proj2) print(torch.sum(fc - fcW)) print(torch.sum(proj - projW)) - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.