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-32B-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-32B-Neon-v2
18hub_model_id: AuriAetherwiing/GLM-32B-Neon-v2-LoRA
19hf_use_auth_token: true
20hub_strategy: "all_checkpoints"
21
22# WandB
23wandb_project: allura-org
24wandb_entity:
25wandb_name: GLM-32B-Neon-v2
26
27# Data
28#chat_template: chatml
29#train_on_inputs: false
30group_by_length: false
31datasets:
32 - path: ./Neon/neon.jsonl
33 type: chat_template
34 field_messages: conversations
35 message_field_role: from
36 message_field_content: value
37 train_on_eos: all
38 - path: ./Neon/S2.jsonl
39 type: chat_template
40 field_messages: conversations
41 message_field_role: from
42 message_field_content: value
43 train_on_eos: all
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 train_on_eos: all
50
51dataset_prepared_path: ./lora_last_run_prepared
52
53chat_template: jinja
54chat_template_jinja: |
55 [gMASK]<sop>{%- for msg in messages %}{%- if msg.role == 'system' %}<|system|>
56 {{ msg.content }}{%- elif msg.role == 'user' %}<|user|>
57 {{ msg.content }}{%- elif msg.role == 'assistant' %}<|assistant|>
58 {{ msg.content }}{%- endif %}{%- endfor %}{% if add_generation_prompt %}<|assistant|>{% endif %}
59
60## Evaluation
61val_set_size: 0.005
62evals_per_epoch: 8
63eval_table_size:
64eval_max_new_tokens: 128
65
66# Technical aspects
67sequence_len: 16384
68save_safetensors: true
69saves_per_epoch: 4
70logging_steps: 1
71#special_tokens:
72# pad_token: <pad>
73# Quantization
74bf16: auto
75fp16:
76tf32: false
77## For LoRA
78load_in_8bit: false
79load_in_4bit: true
80
81# LoRA
82peft_use_rslora: false
83peft_use_dora: false # better but slower
84adapter: qlora # lora or qlora
85lora_model_dir:
86lora_r: 64 # 64 is optimal for most trains on instruct
87lora_alpha: 64
88lora_dropout: 0.1
89lora_target_linear: true
90lora_fan_in_fan_out:
91lora_target_modules:
92
93# loraplus_lr_ratio: 8 # works to converge faster but is kinda cancer bc makes model unstable
94#loraplus_lr_embedding:
95
96# Training hyperparameters
97# max_steps:
98num_epochs: 1
99
100# Anti Overfit and Stability
101weight_decay: 0.01
102max_grad_norm: 1.0
103
104## Learning Rate
105warmup_ratio: 0.05
106learning_rate: 1e-5
107lr_scheduler: rex
108#lr_scheduler_kwargs:
109# min_lr: 0.0000024
110optimizer: adamw_torch # usually adamw_torch or paged_adamw_8bit
111
112## Batch Size
113gradient_accumulation_steps: 32 # More effective batch size - stabler train, usually. MBS also speeds it up.
114micro_batch_size: 1 # Batch size per gpu = micro_batch_size * gradient_accumulation_steps
115eval_batch_size: 1
116
117# Optimizations
118pad_to_sequence_len: true
119sample_packing: true
120eval_sample_packing: false
121flash_attention: true
122xformers_attention:
123gradient_checkpointing:
124gradient_checkpointing_kwargs:
125 use_reentrant: false
126
127# Set to a divisor (> 1) of the number of GPUs available
128sequence_parallel_degree: 4 # Split sequences across 4 GPUs
129# Optional; strides across the key dimension. Larger values use more memory but should make training faster.
130heads_k_stride: 1
131# Optional; one of "varlen_llama3", "batch_ring", "batch_zigzag", "batch_stripe". Defaults to
132# "varlen_llama3" when `sample_packing: true`, and "batch_ring" otherwise.
133ring_attn_func:
134
135# deepspeed: /home/owen/axolotl/deepspeed_configs/zero3_bf16_cpuoffload_all.json
136
137fsdp:
138 - full_shard
139 - auto_wrap
140fsdp_config:
141 fsdp_limit_all_gathers: true
142 fsdp_sync_module_states: true
143 fsdp_offload_params: false
144 fsdp_use_orig_params: false
145 fsdp_cpu_ram_efficient_loading: true
146 fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
147 fsdp_transformer_layer_cls_to_wrap: Glm4DecoderLayer
148 fsdp_state_dict_type: FULL_STATE_DICT
149 fsdp_sharding_strategy: FULL_SHARD
150 fsdp_activation_checkpointing: true