Views
No views yet

[gMASK]<sop><|system|>
{system_prompt}<|user|>
{prompt}<|assistant|>Temperature - 1
Min-P - 0.1
Repetition Penalty - 1.03--overridekv glm4.rope.dimension_count=int:64 to the CLI command or put glm4.rope.dimension_count=int:64 into overridekv box in the GUI (under the Tokens tab at the very bottom).1# Model
2base_model: /home/owen/models/GLM-4-9B-0414
3strict: false
4model_type: AutoModelForCausalLM
5
6# Liger Kernels and CCE (optimization)
7plugins:
8 - axolotl.integrations.liger.LigerPlugin
9 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
10liger_rope: false
11liger_rms_norm: false
12liger_glu_activation: false
13liger_fused_linear_cross_entropy: false
14cut_cross_entropy: true
15
16# Output and HuggingFace
17output_dir: ./GLM-9B-Neon-v2
18hub_model_id: AuriAetherwiing/GLM-9B-Neon-v2-LoRA
19hf_use_auth_token: true
20hub_strategy: "all_checkpoints"
21
22# WandB
23wandb_project: allura-org
24wandb_entity:
25wandb_name: GLM-9B-Neon-v2
26
27# === Data Configuration ===
28
29# Data
30#chat_template: chatml
31#train_on_inputs: false
32group_by_length: false
33datasets:
34 - path: ./Neon/neon.jsonl
35 type: chat_template
36 field_messages: conversations
37 message_field_role: from
38 message_field_content: value
39 - path: ./Neon/S2.jsonl
40 type: chat_template
41 field_messages: conversations
42 message_field_role: from
43 message_field_content: value
44 - path: ./Neon/SystemChat_subset_filtered_sharegpt_utf8fix.jsonl
45 type: chat_template
46 field_messages: conversations
47 message_field_role: from
48 message_field_content: value
49
50dataset_prepared_path: ./lora_last_run_prepared
51
52## Evaluation
53val_set_size: 0.01
54evals_per_epoch: 2
55eval_table_size:
56eval_max_new_tokens: 128
57
58# Technical aspects
59sequence_len: 16384
60save_safetensors: true
61saves_per_epoch: 2
62logging_steps: 1
63#special_tokens:
64# pad_token: <pad>
65# Quantization
66bf16: auto
67fp16:
68tf32: false
69## For LoRA
70load_in_8bit: false
71load_in_4bit: true
72
73# LoRA
74peft_use_rslora: false
75peft_use_dora: false # better but slower
76adapter: qlora # lora or qlora
77lora_model_dir:
78lora_r: 64 # 64 is optimal for most trains on instruct
79lora_alpha: 64
80lora_dropout: 0.1
81lora_target_linear: true
82lora_fan_in_fan_out:
83lora_target_modules:
84
85# loraplus_lr_ratio: 8 # works to converge faster but is kinda cancer bc makes model unstable
86#loraplus_lr_embedding:
87
88# Training hyperparameters
89# max_steps:
90num_epochs: 1
91
92# Anti Overfit and Stability
93weight_decay: 0.01
94max_grad_norm: 1.0
95
96## Learning Rate
97warmup_ratio: 0.05
98learning_rate: 1e-5
99lr_scheduler: rex
100#lr_scheduler_kwargs:
101# min_lr: 0.0000024
102optimizer: adamw_torch # usually adamw_torch or paged_adamw_8bit
103
104## Batch Size
105gradient_accumulation_steps: 32 # More effective batch size - stabler train, usually. MBS also speeds it up.
106micro_batch_size: 1 # Batch size per gpu = micro_batch_size * gradient_accumulation_steps
107eval_batch_size: 1
108
109# Optimizations
110pad_to_sequence_len: true
111sample_packing: true
112eval_sample_packing: false
113flash_attention: true
114xformers_attention:
115gradient_checkpointing:
116gradient_checkpointing_kwargs:
117 use_reentrant: false
118
119# Set to a divisor (> 1) of the number of GPUs available
120#sequence_parallel_degree: 2 # Split sequences across 4 GPUs
121# Optional; strides across the key dimension. Larger values use more memory but should make training faster.
122#heads_k_stride: 1
123# Optional; one of "varlen_llama3", "batch_ring", "batch_zigzag", "batch_stripe". Defaults to
124# "varlen_llama3" when `sample_packing: true`, and "batch_ring" otherwise.
125#ring_attn_func:
126
127# deepspeed: /home/owen/axolotl/deepspeed_configs/zero3_bf16_cpuoffload_all.json
128
129fsdp:
130 - full_shard
131 - auto_wrap
132fsdp_config:
133 fsdp_limit_all_gathers: true
134 fsdp_sync_module_states: true
135 fsdp_offload_params: false
136 fsdp_use_orig_params: false
137 fsdp_cpu_ram_efficient_loading: true
138 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
139 fsdp_transformer_layer_cls_to_wrap: Glm4DecoderLayer
140 fsdp_state_dict_type: FULL_STATE_DICT
141 fsdp_sharding_strategy: FULL_SHARD
142 fsdp_activation_checkpointing: true