This commit is contained in:
Awni Hannun
2023-12-14 16:56:50 -08:00
parent e434e7e5c2
commit b863e7cca0
8 changed files with 33 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
from transformers import AutoModelForCausalLM
import numpy as np
def replace_key(key: str) -> str:
if "wte.weight" in key:
key = "wte.weight"