-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yu Chin Fabian Lim <flim@sg.ibm.com>
- Loading branch information
Showing
2 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
sample-configurations/accelerated-peft-autogptq-foak-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,44 @@ | ||
# 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: | ||
|
||
# AutoGPTQ quantized base weights. | ||
auto_gptq: | ||
|
||
# Kernel to be used for GPTQ linear laeyer | ||
# NOTE: Not all kernels are suitable for PEFT training; need to use | ||
# kernels that support autograd forward / backward. The best | ||
# recommendation at the moment is "triton_v2". | ||
kernel: triton_v2 | ||
|
||
# If true, then will already expect quantized checkpoint | ||
# passed into TrainingArguments.model_name_or_path | ||
from_quantized: true | ||
fused_ops_and_kernels: | ||
|
||
# load unsloth optimizations for these 4bit base layer weights. | ||
# currently only support "auto_gptq" and "bitsandbytes" | ||
base_layer: auto_gptq | ||
|
||
# activate various unsloth optimizations | ||
# NOTE: currently supports only all-or-nothing. | ||
|
||
# fused kernels for lora linear layers | ||
fused_lora: true | ||
|
||
# fast loss triton kernels | ||
fast_loss: true | ||
|
||
# fast rms norm triton kernels | ||
fast_rsm_layernorm: true | ||
|
||
# fast RoPE embedding triton kernels | ||
fast_rope_embeddings: 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