Skip to content

fix(tuners): bundle use of _cast_input_dtype across all PEFT methods#3280

Closed
Chessing234 wants to merge 1 commit into
huggingface:mainfrom
Chessing234:fix/bundle-cast-input-dtype
Closed

fix(tuners): bundle use of _cast_input_dtype across all PEFT methods#3280
Chessing234 wants to merge 1 commit into
huggingface:mainfrom
Chessing234:fix/bundle-cast-input-dtype

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

This PR applies the same _cast_input_dtype fix across all PEFT tuners to properly respect the disable_lora_input_dtype_casting context manager. It replaces raw x.to() calls with self._cast_input_dtype(x, dtype) for all remaining tuners that were still using it (such as adamss, boft, c3a, fourierft, gralora, hra, ia3, lora, oft, poly, pvera, randlora, road, vblora, vera, and xlora). This bundles the fixes requested in #3177 and #3208 into a single PR.

@BenjaminBossan

Copy link
Copy Markdown
Member

@Chessing234 Why did you close all PRs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants