t2t-tuner icon indicating copy to clipboard operation
t2t-tuner copied to clipboard

Soft prompts for FP16/mixed precision

Open joehoover opened this issue 4 years ago • 0 comments

Thanks for the handy library!

I'm trying to add support for soft-prompt tuning in FP16, but I'm running into the following error:

RuntimeError: hook 'freezing_hook_weight' has changed the type of value (was torch.cuda.HalfTensor got torch.cuda.FloatTensor)

Is this expected?

joehoover avatar Jan 24 '22 20:01 joehoover