petals icon indicating copy to clipboard operation
petals copied to clipboard

[do not merge] diff compression

Open justheuristic opened this issue 1 year ago • 0 comments

This PR is intended as a backup if we experience any problems with finetuning in the current branch.

TL;DR previously we tested that finetuning works with compression as in this file. However, it complicates the interface and makes the code harder to follow. It also forces us to change some _exact_match tests to approximate matches and/or complicate those tests.

There is a chance that we will be able to train p-tuning normally by casting prompt gradients to higher precision. If not, we'll have to apply this PR (4 last commints)

justheuristic avatar Nov 29 '22 17:11 justheuristic