Add superseded/exploratory BEFT and LoRA results for MetaMathQA (1k steps)

#23
by Sergasgr - opened
MetaMathQA/beft--llama-3.2-3B-target-v_proj-1k-steps.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_info": {
3
+ "created_at": "2026-10-25T16:56:25+00:00",
4
+ "total_time": 549.2145101979986,
5
+ "experiment_name": "beft/llama-3.2-3B-target-v_proj",
6
+ "peft_branch": "update-tinylora-image-gen-experiment",
7
+ "peft_worktree_is_dirty": true,
8
+ "train_config": {
9
+ "model_id": "meta-llama/Llama-3.2-3B",
10
+ "dtype": "bfloat16",
11
+ "max_seq_length": 768,
12
+ "batch_size": 4,
13
+ "batch_size_eval": 50,
14
+ "max_steps": 250,
15
+ "eval_steps": 100,
16
+ "compile": false,
17
+ "use_gc": true,
18
+ "query_template": "Question: {query} Think step by step.\nAnswer:",
19
+ "seed": 0,
20
+ "grad_norm_clip": 1.0,
21
+ "optimizer_type": "AdamW",
22
+ "optimizer_kwargs": {
23
+ "lr": 0.001,
24
+ "weight_decay": 0.1
25
+ },
26
+ "lr_scheduler": "cosine",
27
+ "use_amp": false,
28
+ "autocast_adapter_dtype": true,
29
+ "generation_kwargs": {
30
+ "max_length": 800,
31
+ "max_new_tokens": 300
32
+ },
33
+ "attn_implementation": null,
34
+ "init_kv_cache_prefix": null
35
+ },
36
+ "peft_config": {
37
+ "task_type": null,
38
+ "peft_type": "BEFT",
39
+ "auto_mapping": null,
40
+ "peft_version": "0.19.2.dev0@UNKNOWN",
41
+ "base_model_name_or_path": "meta-llama/Llama-3.2-3B",
42
+ "revision": null,
43
+ "inference_mode": false,
44
+ "target_modules": [
45
+ "v_proj"
46
+ ],
47
+ "modules_to_save": null,
48
+ "init_weights": true
49
+ },
50
+ "error_msg": ""
51
+ },
52
+ "train_info": {
53
+ "accelerator_memory_reserved_avg": 9757788209,
54
+ "accelerator_memory_max": 13050576896,
55
+ "accelerator_memory_reserved_99th": 11655970816,
56
+ "train_time": 514.6106100569996,
57
+ "file_size": 118192,
58
+ "num_trainable_params": 28672,
59
+ "num_total_params": 3212778496,
60
+ "status": "success",
61
+ "metrics": [
62
+ {
63
+ "step": 100,
64
+ "valid accuracy": 0.34,
65
+ "train loss": 0.9662948489189148,
66
+ "train samples": 400,
67
+ "train time": 30.294393772019248,
68
+ "eval time": 15.556737405000604,
69
+ "tokens / sec": 2745.293423789037,
70
+ "mem allocated avg": 6723086085.12,
71
+ "mem reserved avg": 9753329664.0,
72
+ "elapsed time": 69.84122245899925
73
+ },
74
+ {
75
+ "step": 200,
76
+ "valid accuracy": 0.28,
77
+ "train loss": 0.7928257143497467,
78
+ "train samples": 800,
79
+ "train time": 28.346846477998042,
80
+ "eval time": 15.414412877998984,
81
+ "tokens / sec": 2923.1823040462627,
82
+ "mem allocated avg": 6720391342.08,
83
+ "mem reserved avg": 9548773457.92,
84
+ "elapsed time": 113.70483889099705
85
+ },
86
+ {
87
+ "step": 250,
88
+ "test accuracy": 0.27824109173616374,
89
+ "train loss": 0.7721195322275162,
90
+ "train samples": 1000,
91
+ "train total tokens": 211719,
92
+ "forgetting": 0.23304033279418945
93
+ }
94
+ ]
95
+ },
96
+ "meta_info": {
97
+ "model_info": {
98
+ "sha": "13afe5124825b4f3751f836b40dafda64c1ed062",
99
+ "created_at": "2024-09-18T15:23:48+00:00"
100
+ },
101
+ "dataset_info": {
102
+ "metamath": {
103
+ "sha": "aa4f34d3d2d3231299b5b03d9b3e5a20da45aa18",
104
+ "created_at": "2023-09-21T17:22:46+00:00"
105
+ },
106
+ "gsm8k": {
107
+ "sha": "740312add88f781978c0658806c59bc2815b9866",
108
+ "created_at": "2022-04-12T10:22:10+00:00"
109
+ }
110
+ },
111
+ "package_info": {
112
+ "transformers-version": "5.16.0",
113
+ "transformers-commit-hash": null,
114
+ "peft-version": "0.21.3.dev0",
115
+ "peft-commit-hash": "c2c2b15a6e30e72fe6c7a8e43ac2be1428003978",
116
+ "datasets-version": "5.0.1",
117
+ "datasets-commit-hash": null,
118
+ "bitsandbytes-version": "0.50.2",
119
+ "bitsandbytes-commit-hash": null,
120
+ "torch-version": "2.13.0+cu130",
121
+ "torch-commit-hash": null
122
+ },
123
+ "system_info": {
124
+ "system": "Linux",
125
+ "release": "7.0.0-38-generic",
126
+ "version": "#38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2",
127
+ "machine": "x86_64",
128
+ "processor": "x86_64",
129
+ "accelerator": "NVIDIA GeForce RTX 5070 Ti"
130
+ },
131
+ "pytorch_info": "PyTorch built with:\n - GCC 13.3\n - C++ Version: 202002\n - Intel(R) oneAPI Math Kernel Library Version 2024.2-Product Build 20240605 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.12.0 (Git Hash 80afa71049cd69a3df32adcccb623b12cd7baa22)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 13.0\n - NVCC architecture flags: -gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90;-gencode;arch=compute_100,code=sm_100;-gencode;arch=compute_120,code=sm_120\n - CuDNN 92.0 (built against CUDA 13.2)\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, COMMIT_SHA=cf30153c4c131c8164ee7798e5022d810682e2cb, CUDA_FLAGS= -DLIBCUDACXX_ENABLE_SIMPLIFIED_COMPLEX_OPERATIONS -Xfatbin -compress-all -DONNX_NAMESPACE=onnx_torch -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_100,code=sm_100 -gencode arch=compute_120,code=sm_120 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda -Xfatbin -compress-all --threads 2 -compress-mode=size -Wno-deprecated-gpu-targets --expt-extended-lambda -DCUB_WRAPPED_NAMESPACE=at_cuda_detail -DDISABLE_CUSPARSE_DEPRECATED -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -DC10_NODEPRECATED, CUDA_VERSION=13.0, CUDNN_VERSION=9.20.0, CXX_COMPILER=/opt/rh/gcc-toolset-13/root/usr/bin/c++, CXX_FLAGS= -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DHAS_CUPTI -DUSE_FBGEMM -DUSE_MSLK -DUSE_PYTORCH_QNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, TORCH_VERSION=2.13.0, USE_CUDA=1, USE_CUDNN=ON, USE_CUSPARSELT=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, USE_XCCL=OFF, USE_XPU=OFF, \n"
132
+ }
133
+ }
MetaMathQA/lora--llama-3.2-3B-rank32-1k-steps.json ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_info": {
3
+ "created_at": "2026-10-25T16:45:46+00:00",
4
+ "total_time": 604.7889165209999,
5
+ "experiment_name": "lora/llama-3.2-3B-rank32",
6
+ "peft_branch": "update-tinylora-image-gen-experiment",
7
+ "peft_worktree_is_dirty": true,
8
+ "train_config": {
9
+ "model_id": "meta-llama/Llama-3.2-3B",
10
+ "dtype": "bfloat16",
11
+ "max_seq_length": 768,
12
+ "batch_size": 4,
13
+ "batch_size_eval": 50,
14
+ "max_steps": 250,
15
+ "eval_steps": 100,
16
+ "compile": false,
17
+ "use_gc": true,
18
+ "query_template": "Question: {query} Think step by step.\nAnswer:",
19
+ "seed": 0,
20
+ "grad_norm_clip": 1.0,
21
+ "optimizer_type": "AdamW",
22
+ "optimizer_kwargs": {
23
+ "lr": 0.0001,
24
+ "weight_decay": 0.1
25
+ },
26
+ "lr_scheduler": "cosine",
27
+ "use_amp": false,
28
+ "autocast_adapter_dtype": true,
29
+ "generation_kwargs": {
30
+ "max_length": 800,
31
+ "max_new_tokens": 300
32
+ },
33
+ "attn_implementation": null,
34
+ "init_kv_cache_prefix": null
35
+ },
36
+ "peft_config": {
37
+ "task_type": "CAUSAL_LM",
38
+ "peft_type": "LORA",
39
+ "auto_mapping": null,
40
+ "peft_version": "0.21.3.dev0@UNKNOWN",
41
+ "base_model_name_or_path": "meta-llama/Llama-3.2-3B",
42
+ "revision": null,
43
+ "inference_mode": false,
44
+ "r": 32,
45
+ "target_modules": [
46
+ "q_proj",
47
+ "v_proj"
48
+ ],
49
+ "exclude_modules": null,
50
+ "lora_alpha": 64,
51
+ "lora_dropout": 0.0,
52
+ "fan_in_fan_out": false,
53
+ "bias": "none",
54
+ "use_rslora": false,
55
+ "modules_to_save": null,
56
+ "init_lora_weights": true,
57
+ "layers_to_transform": null,
58
+ "layers_pattern": null,
59
+ "rank_pattern": {},
60
+ "alpha_pattern": {},
61
+ "megatron_config": null,
62
+ "megatron_core": "megatron.core",
63
+ "trainable_token_indices": null,
64
+ "loftq_config": {},
65
+ "eva_config": null,
66
+ "corda_config": null,
67
+ "astra_config": null,
68
+ "lora_ga_config": null,
69
+ "use_dora": false,
70
+ "velora_config": null,
71
+ "alora_invocation_tokens": null,
72
+ "use_qalora": false,
73
+ "qalora_group_size": 16,
74
+ "monteclora_config": null,
75
+ "layer_replication": null,
76
+ "lora_bias": false,
77
+ "target_parameters": null,
78
+ "use_bdlora": null,
79
+ "arrow_config": null,
80
+ "kasa_config": null,
81
+ "ensure_weight_tying": false
82
+ },
83
+ "error_msg": ""
84
+ },
85
+ "train_info": {
86
+ "accelerator_memory_reserved_avg": 9915796029,
87
+ "accelerator_memory_max": 13260292096,
88
+ "accelerator_memory_reserved_99th": 11838423040,
89
+ "train_time": 508.0392277009996,
90
+ "file_size": 36715216,
91
+ "num_trainable_params": 9175040,
92
+ "num_total_params": 3221924864,
93
+ "status": "success",
94
+ "metrics": [
95
+ {
96
+ "step": 100,
97
+ "valid accuracy": 0.42,
98
+ "train loss": 0.9287719869613648,
99
+ "train samples": 400,
100
+ "train time": 25.280153375006194,
101
+ "eval time": 12.650473580997641,
102
+ "tokens / sec": 3289.813901296381,
103
+ "mem allocated avg": 6869435243.52,
104
+ "mem reserved avg": 9906295930.88,
105
+ "elapsed time": 110.25141799199992
106
+ },
107
+ {
108
+ "step": 200,
109
+ "valid accuracy": 0.4,
110
+ "train loss": 0.7261736690998077,
111
+ "train samples": 800,
112
+ "train time": 25.26144602099521,
113
+ "eval time": 12.261442647002696,
114
+ "tokens / sec": 3280.216022912195,
115
+ "mem allocated avg": 6866748180.48,
116
+ "mem reserved avg": 9736573419.52,
117
+ "elapsed time": 147.88168833999953
118
+ },
119
+ {
120
+ "step": 250,
121
+ "test accuracy": 0.3100833965125095,
122
+ "train loss": 0.7069227689504624,
123
+ "train samples": 1000,
124
+ "train total tokens": 211719,
125
+ "forgetting": 0.017640352249145508
126
+ }
127
+ ]
128
+ },
129
+ "meta_info": {
130
+ "model_info": {
131
+ "sha": "13afe5124825b4f3751f836b40dafda64c1ed062",
132
+ "created_at": "2024-09-18T15:23:48+00:00"
133
+ },
134
+ "dataset_info": {
135
+ "metamath": {
136
+ "sha": "aa4f34d3d2d3231299b5b03d9b3e5a20da45aa18",
137
+ "created_at": "2023-09-21T17:22:46+00:00"
138
+ },
139
+ "gsm8k": {
140
+ "sha": "740312add88f781978c0658806c59bc2815b9866",
141
+ "created_at": "2022-04-12T10:22:10+00:00"
142
+ }
143
+ },
144
+ "package_info": {
145
+ "transformers-version": "5.16.0",
146
+ "transformers-commit-hash": null,
147
+ "peft-version": "0.21.3.dev0",
148
+ "peft-commit-hash": "c2c2b15a6e30e72fe6c7a8e43ac2be1428003978",
149
+ "datasets-version": "5.0.1",
150
+ "datasets-commit-hash": null,
151
+ "bitsandbytes-version": "0.50.2",
152
+ "bitsandbytes-commit-hash": null,
153
+ "torch-version": "2.13.0+cu130",
154
+ "torch-commit-hash": null
155
+ },
156
+ "system_info": {
157
+ "system": "Linux",
158
+ "release": "7.0.0-38-generic",
159
+ "version": "#38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2",
160
+ "machine": "x86_64",
161
+ "processor": "x86_64",
162
+ "accelerator": "NVIDIA GeForce RTX 5070 Ti"
163
+ },
164
+ "pytorch_info": "PyTorch built with:\n - GCC 13.3\n - C++ Version: 202002\n - Intel(R) oneAPI Math Kernel Library Version 2024.2-Product Build 20240605 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v3.12.0 (Git Hash 80afa71049cd69a3df32adcccb623b12cd7baa22)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 13.0\n - NVCC architecture flags: -gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90;-gencode;arch=compute_100,code=sm_100;-gencode;arch=compute_120,code=sm_120\n - CuDNN 92.0 (built against CUDA 13.2)\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, COMMIT_SHA=cf30153c4c131c8164ee7798e5022d810682e2cb, CUDA_FLAGS= -DLIBCUDACXX_ENABLE_SIMPLIFIED_COMPLEX_OPERATIONS -Xfatbin -compress-all -DONNX_NAMESPACE=onnx_torch -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_100,code=sm_100 -gencode arch=compute_120,code=sm_120 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda -Xfatbin -compress-all --threads 2 -compress-mode=size -Wno-deprecated-gpu-targets --expt-extended-lambda -DCUB_WRAPPED_NAMESPACE=at_cuda_detail -DDISABLE_CUSPARSE_DEPRECATED -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -DC10_NODEPRECATED, CUDA_VERSION=13.0, CUDNN_VERSION=9.20.0, CXX_COMPILER=/opt/rh/gcc-toolset-13/root/usr/bin/c++, CXX_FLAGS= -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DHAS_CUPTI -DUSE_FBGEMM -DUSE_MSLK -DUSE_PYTORCH_QNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, TORCH_VERSION=2.13.0, USE_CUDA=1, USE_CUDNN=ON, USE_CUSPARSELT=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, USE_XCCL=OFF, USE_XPU=OFF, \n"
165
+ }
166
+ }