Update llama.py
This commit is contained in:
parent
ca4a51048a
commit
9a09d161f2
1 changed files with 3 additions and 3 deletions
|
|
@ -756,6 +756,9 @@ class FastLlamaModel:
|
|||
# Clear deleted GPU items
|
||||
gc.collect()
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
# We check the tokenizer first for errors
|
||||
check_tokenizer(model, tokenizer)
|
||||
return model
|
||||
pass
|
||||
|
||||
|
|
@ -791,9 +794,6 @@ class FastLlamaModel:
|
|||
assert(module in accepted_modules)
|
||||
pass
|
||||
|
||||
# We check the tokenizer first for errors
|
||||
check_tokenizer(model, tokenizer)
|
||||
|
||||
# Get LoRA
|
||||
lora_config = LoraConfig(
|
||||
r = r,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue