mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Always convert soft prompt to float32 if using TPU backend
TPUs do not support float16. Attempting to use a float16 soft prompt throws an error.
This commit is contained in:
@ -2572,7 +2572,7 @@ def spRequest(filename):
|
||||
-1,
|
||||
tpu_mtj_backend.params["d_model"],
|
||||
)
|
||||
vars.sp = tensor
|
||||
vars.sp = np.float32(tensor)
|
||||
else:
|
||||
vars.sp = torch.from_numpy(tensor)
|
||||
|
||||
|
Reference in New Issue
Block a user