-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for running official HF baseline FSDP-QLoRA benchmark (#16
) * new baseline scenario * rename variables * added warning when plugin allows SFTTrainer to handle PEFT on single device
- Loading branch information
Showing
8 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
sample-configurations/baseline-peft-bnb-nf4-sample-configuration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# FMS Acceleration Plugin Configuration. | ||
# | ||
# Each stanza incorporates various configurations for | ||
# different fine-tuning / training tasks. | ||
plugins: | ||
# PEFT-related acceleration | ||
peft: | ||
|
||
# quantization-releated acceleration | ||
# e.g., kernels for quantized base weights | ||
quantization: | ||
|
||
# For loading BitsAndBytes quantized layers | ||
# to serve as 4bit base-weights for LoRA PEFT-tuning. | ||
# NOTE: currently AutoGPTQ is not properly integrated into huggingface / | ||
# bitsandbytes, thus recommended quant_type to be either "nf4" | ||
# or "fp4". | ||
# bitsandbytes: | ||
bitsandbytes: | ||
quant_type: nf4 | ||
|
||
# If True, then no get_peft_model and prepare_model_for_kbit_training | ||
# will be called. | ||
no_peft_model: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters