Update llama.py
This commit is contained in:
parent
0a9bfc59b7
commit
a7a223070b
1 changed files with 1 additions and 0 deletions
|
|
@ -1575,6 +1575,7 @@ def unsloth_fast_generate(
|
|||
kwargs["pad_token_id"] = kwargs.pop("pad_token_id", model_eos_token_id)
|
||||
|
||||
# Mixed precision autocast
|
||||
print(args, kwargs)
|
||||
with torch.inference_mode(), torch.autocast(device_type = "cuda", dtype = dtype):
|
||||
output = self._old_generate(*args, **kwargs)
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue