Update _utils.py
This commit is contained in:
parent
c4dc08309e
commit
4eca9215a2
1 changed files with 0 additions and 2 deletions
|
|
@ -863,11 +863,9 @@ def patch_llama_rope_scaling(
|
|||
"self.rotary_emb = .+?\)", function,
|
||||
flags = re.DOTALL | re.MULTILINE,
|
||||
)
|
||||
print(rotary_emb)
|
||||
if len(rotary_emb) == 0: return None, function
|
||||
rotary_emb = rotary_emb[0]
|
||||
function = function.replace(rotary_emb, fix_rope_function, 1)
|
||||
print(function)
|
||||
function = exec_code + "\n\n" + function
|
||||
return init_name, function
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue