mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-02-24 16:46:36 +01:00
Make exllamav3 safer as well
This commit is contained in:
parent
03544d4fb6
commit
1c4a2c9a71
|
|
@ -153,6 +153,9 @@ class Exllamav3HF(PreTrainedModel):
|
|||
else:
|
||||
self.past_seq = seq_tensor
|
||||
|
||||
if torch.cuda.is_available():
|
||||
torch.cuda.synchronize()
|
||||
|
||||
loss = None
|
||||
if labels is not None:
|
||||
# Shift so that tokens < n predict n
|
||||
|
|
|
|||
Loading…
Reference in a new issue