-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add default configmaps - Part 5 (#346)
**Reason for Change**: Provide a default configmaps in the helm chart. **Notes for Reviewers**: An env variable release namespace is passed in for future use so that the controller will be able to find where the configmap is deployed. --------- Signed-off-by: Ishaan Sehgal <ishaanforthewin@gmail.com>
- Loading branch information
1 parent
64152d4
commit f88b529
Showing
3 changed files
with
86 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: lora-params | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
training_config.yaml: | | ||
training_config: | ||
ModelConfig: | ||
torch_dtype: "bfloat16" | ||
local_files_only: true | ||
device_map: "auto" | ||
TokenizerParams: | ||
padding: true | ||
truncation: true | ||
QuantizationConfig: | ||
load_in_4bit: false | ||
LoraConfig: | ||
r: 16 | ||
lora_alpha: 32 | ||
target_modules: "query_key_value" | ||
lora_dropout: 0.05 | ||
bias: "none" | ||
TrainingArguments: | ||
output_dir: "." | ||
num_train_epochs: 4 | ||
auto_find_batch_size: true | ||
ddp_find_unused_parameters: false | ||
save_strategy: "epoch" | ||
DatasetConfig: | ||
shuffle_dataset: true | ||
train_test_split: 1 | ||
DataCollator: | ||
mlm: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: qlora-params | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
training_config.yaml: | | ||
training_config: | ||
ModelConfig: | ||
torch_dtype: "bfloat16" | ||
local_files_only: true | ||
device_map: "auto" | ||
TokenizerParams: | ||
padding: true | ||
truncation: true | ||
QuantizationConfig: | ||
load_in_4bit: true | ||
bnb_4bit_quant_type: "nf4" | ||
bnb_4bit_compute_dtype: "bfloat16" | ||
bnb_4bit_use_double_quant: true | ||
LoraConfig: | ||
r: 16 | ||
lora_alpha: 32 | ||
target_modules: "query_key_value" | ||
lora_dropout: 0.05 | ||
bias: "none" | ||
TrainingArguments: | ||
output_dir: "." | ||
num_train_epochs: 4 | ||
auto_find_batch_size: true | ||
ddp_find_unused_parameters: false | ||
save_strategy: "epoch" | ||
DatasetConfig: | ||
shuffle_dataset: true | ||
train_test_split: 1 | ||
DataCollator: | ||
mlm: true |