Upload folder using huggingface_hub
Browse files- eval_outputs/openai-community/gpt2-xl-ckpt-14290/dialog_result_eval.json +4 -0
- eval_outputs/openai-community/gpt2-xl-ckpt-14290/eval.json +26 -0
- eval_outputs/openai-community/gpt2-xl-ckpt-14290/eval.log +116 -0
- eval_outputs/outputs/gpt2_120M_distill_v2/4998/dialog_result_eval.json +4 -0
- eval_outputs/outputs/gpt2_120M_distill_v2/4998/eval.json +26 -0
- eval_outputs/outputs/gpt2_120M_distill_v2/4998/eval.log +132 -0
- eval_outputs/outputs/gpt2_120M_distill_v2/7140/dialog_result_eval.json +4 -0
- eval_outputs/outputs/gpt2_120M_distill_v2/7140/eval.json +26 -0
- eval_outputs/outputs/gpt2_120M_distill_v2/7140/eval.log +0 -0
- gpt2_120M_distill_v2/7140/config.json +38 -0
- gpt2_120M_distill_v2/7140/generation_config.json +6 -0
- gpt2_120M_distill_v2/7140/model.safetensors +3 -0
- gpt2_120M_distill_v2/args.yaml +103 -0
- gpt2_xl_distill/14290/README.md +207 -0
- gpt2_xl_distill/14290/adapter_config.json +37 -0
- gpt2_xl_distill/14290/adapter_model.safetensors +3 -0
- gpt2_xl_distill/args.yaml +103 -0
eval_outputs/openai-community/gpt2-xl-ckpt-14290/dialog_result_eval.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"rouge_l_f1": 11.070218865144792,
|
| 3 |
+
"status": "success"
|
| 4 |
+
}
|
eval_outputs/openai-community/gpt2-xl-ckpt-14290/eval.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dolly": {
|
| 3 |
+
"dataset_name": "Dolly",
|
| 4 |
+
"dataset_path": "./data/dolly/valid.jsonl",
|
| 5 |
+
"rouge_l_f1": 25.784589418800472,
|
| 6 |
+
"status": "success"
|
| 7 |
+
},
|
| 8 |
+
"sni": {
|
| 9 |
+
"dataset_name": "S-NI",
|
| 10 |
+
"dataset_path": "./data/sinst/11_/valid.jsonl",
|
| 11 |
+
"rouge_l_f1": 25.051588951850544,
|
| 12 |
+
"status": "success"
|
| 13 |
+
},
|
| 14 |
+
"self_instruct": {
|
| 15 |
+
"dataset_name": "Self-Instruct",
|
| 16 |
+
"dataset_path": "./data/self-inst/valid.jsonl",
|
| 17 |
+
"rouge_l_f1": 15.626907137888974,
|
| 18 |
+
"status": "success"
|
| 19 |
+
},
|
| 20 |
+
"vicuna": {
|
| 21 |
+
"dataset_name": "Vicuna",
|
| 22 |
+
"dataset_path": "./data/vicuna/valid.jsonl",
|
| 23 |
+
"rouge_l_f1": 16.35984222421401,
|
| 24 |
+
"status": "success"
|
| 25 |
+
}
|
| 26 |
+
}
|
eval_outputs/openai-community/gpt2-xl-ckpt-14290/eval.log
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.
|
| 2 |
+
import pynvml # type: ignore[import]
|
| 3 |
+
/mnt/hungpv/projects/ALM/run_eval.py:61: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
|
| 4 |
+
with torch.cuda.amp.autocast(dtype=torch.float16):
|
| 5 |
+
|
| 6 |
+
Evaluating on Dolly...
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
Dolly - Seed 50 ROUGE-L F1: 26.32%
|
| 10 |
+
Dolly ROUGE-L F1: 26.32%
|
| 11 |
+
|
| 12 |
+
Evaluating on S-NI...
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
Traceback (most recent call last):
|
| 16 |
+
File "/mnt/hungpv/projects/ALM/run_eval.py", line 82, in <module>
|
| 17 |
+
main()
|
| 18 |
+
File "/mnt/hungpv/projects/ALM/run_eval.py", line 62, in main
|
| 19 |
+
results = evaluator.evaluate_multiple_benchmarks(
|
| 20 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 21 |
+
return func(*args, **kwargs)
|
| 22 |
+
File "/mnt/hungpv/projects/ALM/evaluator.py", line 236, in evaluate_multiple_benchmarks
|
| 23 |
+
score = self.evaluate_benchmark_dataset(
|
| 24 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 25 |
+
return func(*args, **kwargs)
|
| 26 |
+
File "/mnt/hungpv/projects/ALM/evaluator.py", line 134, in evaluate_benchmark_dataset
|
| 27 |
+
generated_responses = self.model.generate(
|
| 28 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 29 |
+
return func(*args, **kwargs)
|
| 30 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/generation/utils.py", line 2597, in generate
|
| 31 |
+
result = self._sample(
|
| 32 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/generation/utils.py", line 3548, in _sample
|
| 33 |
+
while self._has_unfinished_sequences(this_peer_finished, synced_gpus, device=input_ids.device):
|
| 34 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/generation/utils.py", line 2748, in _has_unfinished_sequences
|
| 35 |
+
elif this_peer_finished:
|
| 36 |
+
KeyboardInterrupt
|
| 37 |
+
/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.
|
| 38 |
+
import pynvml # type: ignore[import]
|
| 39 |
+
/mnt/hungpv/projects/ALM/run_eval.py:61: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
|
| 40 |
+
with torch.cuda.amp.autocast(dtype=torch.float16):
|
| 41 |
+
|
| 42 |
+
Evaluating on Dolly...
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
Dolly - Seed 50 ROUGE-L F1: 25.78%
|
| 46 |
+
Dolly ROUGE-L F1: 25.78%
|
| 47 |
+
|
| 48 |
+
Evaluating on S-NI...
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
S-NI - Seed 50 ROUGE-L F1: 25.05%
|
| 52 |
+
S-NI ROUGE-L F1: 25.05%
|
| 53 |
+
|
| 54 |
+
Evaluating on Self-Instruct...
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
Self-Instruct - Seed 50 ROUGE-L F1: 15.63%
|
| 58 |
+
Self-Instruct ROUGE-L F1: 15.63%
|
| 59 |
+
|
| 60 |
+
Evaluating on Vicuna...
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
Vicuna - Seed 50 ROUGE-L F1: 16.36%
|
| 64 |
+
Vicuna ROUGE-L F1: 16.36%
|
| 65 |
+
|
| 66 |
+
Evaluating on dialog...
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
Traceback (most recent call last):
|
| 70 |
+
File "/mnt/hungpv/projects/ALM/run_eval.py", line 82, in <module>
|
| 71 |
+
main()
|
| 72 |
+
File "/mnt/hungpv/projects/ALM/run_eval.py", line 71, in main
|
| 73 |
+
result = evaluator.evaluate_benchmark_dataset(
|
| 74 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 75 |
+
return func(*args, **kwargs)
|
| 76 |
+
File "/mnt/hungpv/projects/ALM/evaluator.py", line 134, in evaluate_benchmark_dataset
|
| 77 |
+
generated_responses = self.model.generate(
|
| 78 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 79 |
+
return func(*args, **kwargs)
|
| 80 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/generation/utils.py", line 2597, in generate
|
| 81 |
+
result = self._sample(
|
| 82 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/generation/utils.py", line 3557, in _sample
|
| 83 |
+
outputs = self(**model_inputs, return_dict=True)
|
| 84 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 85 |
+
return self._call_impl(*args, **kwargs)
|
| 86 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 87 |
+
return forward_call(*args, **kwargs)
|
| 88 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 1210, in forward
|
| 89 |
+
transformer_outputs = self.transformer(
|
| 90 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 91 |
+
return self._call_impl(*args, **kwargs)
|
| 92 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 93 |
+
return forward_call(*args, **kwargs)
|
| 94 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 939, in forward
|
| 95 |
+
outputs = block(
|
| 96 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 97 |
+
return self._call_impl(*args, **kwargs)
|
| 98 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 99 |
+
return forward_call(*args, **kwargs)
|
| 100 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/utils/deprecation.py", line 172, in wrapped_func
|
| 101 |
+
return func(*args, **kwargs)
|
| 102 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 439, in forward
|
| 103 |
+
feed_forward_hidden_states = self.mlp(hidden_states)
|
| 104 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 105 |
+
return self._call_impl(*args, **kwargs)
|
| 106 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 107 |
+
return forward_call(*args, **kwargs)
|
| 108 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 365, in forward
|
| 109 |
+
hidden_states = self.act(hidden_states)
|
| 110 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 111 |
+
return self._call_impl(*args, **kwargs)
|
| 112 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 113 |
+
return forward_call(*args, **kwargs)
|
| 114 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/activations.py", line 47, in forward
|
| 115 |
+
return 0.5 * input * (1.0 + torch.tanh(math.sqrt(2.0 / math.pi) * (input + 0.044715 * torch.pow(input, 3.0))))
|
| 116 |
+
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 766.00 MiB. GPU 1 has a total capacity of 39.39 GiB of which 154.00 MiB is free. Including non-PyTorch memory, this process has 39.23 GiB memory in use. Of the allocated memory 31.84 GiB is allocated by PyTorch, and 6.89 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
|
eval_outputs/outputs/gpt2_120M_distill_v2/4998/dialog_result_eval.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"rouge_l_f1": 10.440596149582786,
|
| 3 |
+
"status": "success"
|
| 4 |
+
}
|
eval_outputs/outputs/gpt2_120M_distill_v2/4998/eval.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dolly": {
|
| 3 |
+
"dataset_name": "Dolly",
|
| 4 |
+
"dataset_path": "./data/dolly/valid.jsonl",
|
| 5 |
+
"rouge_l_f1": 20.86252865752882,
|
| 6 |
+
"status": "success"
|
| 7 |
+
},
|
| 8 |
+
"sni": {
|
| 9 |
+
"dataset_name": "S-NI",
|
| 10 |
+
"dataset_path": "./data/sinst/11_/valid.jsonl",
|
| 11 |
+
"rouge_l_f1": 17.76368508249188,
|
| 12 |
+
"status": "success"
|
| 13 |
+
},
|
| 14 |
+
"self_instruct": {
|
| 15 |
+
"dataset_name": "Self-Instruct",
|
| 16 |
+
"dataset_path": "./data/self-inst/valid.jsonl",
|
| 17 |
+
"rouge_l_f1": 10.654365939485007,
|
| 18 |
+
"status": "success"
|
| 19 |
+
},
|
| 20 |
+
"vicuna": {
|
| 21 |
+
"dataset_name": "Vicuna",
|
| 22 |
+
"dataset_path": "./data/vicuna/valid.jsonl",
|
| 23 |
+
"rouge_l_f1": 14.763177214107134,
|
| 24 |
+
"status": "success"
|
| 25 |
+
}
|
| 26 |
+
}
|
eval_outputs/outputs/gpt2_120M_distill_v2/4998/eval.log
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.
|
| 2 |
+
import pynvml # type: ignore[import]
|
| 3 |
+
/mnt/hungpv/projects/ALM/run_eval.py:59: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
|
| 4 |
+
with torch.cuda.amp.autocast(dtype=torch.float16):
|
| 5 |
+
|
| 6 |
+
Evaluating on Dolly...
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
Dolly - Seed 10 ROUGE-L F1: 17.11%
|
| 10 |
+
|
| 11 |
+
Traceback (most recent call last):
|
| 12 |
+
File "/mnt/hungpv/projects/ALM/run_eval.py", line 80, in <module>
|
| 13 |
+
main()
|
| 14 |
+
File "/mnt/hungpv/projects/ALM/run_eval.py", line 60, in main
|
| 15 |
+
results = evaluator.evaluate_multiple_benchmarks(
|
| 16 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 17 |
+
return func(*args, **kwargs)
|
| 18 |
+
File "/mnt/hungpv/projects/ALM/evaluator.py", line 236, in evaluate_multiple_benchmarks
|
| 19 |
+
score = self.evaluate_benchmark_dataset(
|
| 20 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 21 |
+
return func(*args, **kwargs)
|
| 22 |
+
File "/mnt/hungpv/projects/ALM/evaluator.py", line 134, in evaluate_benchmark_dataset
|
| 23 |
+
generated_responses = self.model.generate(
|
| 24 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
|
| 25 |
+
return func(*args, **kwargs)
|
| 26 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/generation/utils.py", line 2597, in generate
|
| 27 |
+
result = self._sample(
|
| 28 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/generation/utils.py", line 3560, in _sample
|
| 29 |
+
outputs = model_forward(**model_inputs, return_dict=True)
|
| 30 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 31 |
+
return self._call_impl(*args, **kwargs)
|
| 32 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 33 |
+
return forward_call(*args, **kwargs)
|
| 34 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 1210, in forward
|
| 35 |
+
transformer_outputs = self.transformer(
|
| 36 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 37 |
+
return self._call_impl(*args, **kwargs)
|
| 38 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 39 |
+
return forward_call(*args, **kwargs)
|
| 40 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 939, in forward
|
| 41 |
+
outputs = block(
|
| 42 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 43 |
+
return self._call_impl(*args, **kwargs)
|
| 44 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 45 |
+
return forward_call(*args, **kwargs)
|
| 46 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/utils/deprecation.py", line 172, in wrapped_func
|
| 47 |
+
return func(*args, **kwargs)
|
| 48 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 403, in forward
|
| 49 |
+
attn_output, self_attn_weights = self.attn(
|
| 50 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
|
| 51 |
+
return self._call_impl(*args, **kwargs)
|
| 52 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
|
| 53 |
+
return forward_call(*args, **kwargs)
|
| 54 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/utils/deprecation.py", line 172, in wrapped_func
|
| 55 |
+
return func(*args, **kwargs)
|
| 56 |
+
File "/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/transformers/models/gpt2/modeling_gpt2.py", line 298, in forward
|
| 57 |
+
query_states = query_states.view(shape_q).transpose(1, 2)
|
| 58 |
+
KeyboardInterrupt
|
| 59 |
+
/home/hungpv/miniconda3/envs/span_fdd/lib/python3.10/site-packages/torch/cuda/__init__.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.
|
| 60 |
+
import pynvml # type: ignore[import]
|
| 61 |
+
/mnt/hungpv/projects/ALM/run_eval.py:59: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
|
| 62 |
+
with torch.cuda.amp.autocast(dtype=torch.float16):
|
| 63 |
+
|
| 64 |
+
Evaluating on Dolly...
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
Dolly - Seed 10 ROUGE-L F1: 20.44%
|
| 68 |
+
|
| 69 |
+
Dolly - Seed 20 ROUGE-L F1: 41.41%
|
| 70 |
+
|
| 71 |
+
Dolly - Seed 30 ROUGE-L F1: 62.94%
|
| 72 |
+
|
| 73 |
+
Dolly - Seed 40 ROUGE-L F1: 84.09%
|
| 74 |
+
|
| 75 |
+
Dolly - Seed 50 ROUGE-L F1: 104.31%
|
| 76 |
+
Dolly ROUGE-L F1: 20.86%
|
| 77 |
+
|
| 78 |
+
Evaluating on S-NI...
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
S-NI - Seed 10 ROUGE-L F1: 18.04%
|
| 82 |
+
|
| 83 |
+
S-NI - Seed 20 ROUGE-L F1: 35.51%
|
| 84 |
+
|
| 85 |
+
S-NI - Seed 30 ROUGE-L F1: 53.34%
|
| 86 |
+
|
| 87 |
+
S-NI - Seed 40 ROUGE-L F1: 71.22%
|
| 88 |
+
|
| 89 |
+
S-NI - Seed 50 ROUGE-L F1: 88.82%
|
| 90 |
+
S-NI ROUGE-L F1: 17.76%
|
| 91 |
+
|
| 92 |
+
Evaluating on Self-Instruct...
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
Self-Instruct - Seed 10 ROUGE-L F1: 11.01%
|
| 96 |
+
|
| 97 |
+
Self-Instruct - Seed 20 ROUGE-L F1: 20.69%
|
| 98 |
+
|
| 99 |
+
Self-Instruct - Seed 30 ROUGE-L F1: 31.71%
|
| 100 |
+
|
| 101 |
+
Self-Instruct - Seed 40 ROUGE-L F1: 42.29%
|
| 102 |
+
|
| 103 |
+
Self-Instruct - Seed 50 ROUGE-L F1: 53.27%
|
| 104 |
+
Self-Instruct ROUGE-L F1: 10.65%
|
| 105 |
+
|
| 106 |
+
Evaluating on Vicuna...
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
Vicuna - Seed 10 ROUGE-L F1: 14.40%
|
| 110 |
+
|
| 111 |
+
Vicuna - Seed 20 ROUGE-L F1: 29.22%
|
| 112 |
+
|
| 113 |
+
Vicuna - Seed 30 ROUGE-L F1: 44.40%
|
| 114 |
+
|
| 115 |
+
Vicuna - Seed 40 ROUGE-L F1: 58.70%
|
| 116 |
+
|
| 117 |
+
Vicuna - Seed 50 ROUGE-L F1: 73.82%
|
| 118 |
+
Vicuna ROUGE-L F1: 14.76%
|
| 119 |
+
|
| 120 |
+
Evaluating on dialog...
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
dialog - Seed 10 ROUGE-L F1: 10.61%
|
| 124 |
+
|
| 125 |
+
dialog - Seed 20 ROUGE-L F1: 20.88%
|
| 126 |
+
|
| 127 |
+
dialog - Seed 30 ROUGE-L F1: 31.35%
|
| 128 |
+
|
| 129 |
+
dialog - Seed 40 ROUGE-L F1: 41.79%
|
| 130 |
+
|
| 131 |
+
dialog - Seed 50 ROUGE-L F1: 52.20%
|
| 132 |
+
dialog ROUGE-L F1: 10.44%
|
eval_outputs/outputs/gpt2_120M_distill_v2/7140/dialog_result_eval.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"rouge_l_f1": 10.168257922801914,
|
| 3 |
+
"status": "success"
|
| 4 |
+
}
|
eval_outputs/outputs/gpt2_120M_distill_v2/7140/eval.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dolly": {
|
| 3 |
+
"dataset_name": "Dolly",
|
| 4 |
+
"dataset_path": "./data/dolly/valid.jsonl",
|
| 5 |
+
"rouge_l_f1": 20.77205179572258,
|
| 6 |
+
"status": "success"
|
| 7 |
+
},
|
| 8 |
+
"sni": {
|
| 9 |
+
"dataset_name": "S-NI",
|
| 10 |
+
"dataset_path": "./data/sinst/11_/valid.jsonl",
|
| 11 |
+
"rouge_l_f1": 17.566700218419037,
|
| 12 |
+
"status": "success"
|
| 13 |
+
},
|
| 14 |
+
"self_instruct": {
|
| 15 |
+
"dataset_name": "Self-Instruct",
|
| 16 |
+
"dataset_path": "./data/self-inst/valid.jsonl",
|
| 17 |
+
"rouge_l_f1": 10.534277780054138,
|
| 18 |
+
"status": "success"
|
| 19 |
+
},
|
| 20 |
+
"vicuna": {
|
| 21 |
+
"dataset_name": "Vicuna",
|
| 22 |
+
"dataset_path": "./data/vicuna/valid.jsonl",
|
| 23 |
+
"rouge_l_f1": 15.10137387900088,
|
| 24 |
+
"status": "success"
|
| 25 |
+
}
|
| 26 |
+
}
|
eval_outputs/outputs/gpt2_120M_distill_v2/7140/eval.log
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2_120M_distill_v2/7140/config.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPT2LMHeadModel"
|
| 5 |
+
],
|
| 6 |
+
"attn_pdrop": 0.1,
|
| 7 |
+
"bos_token_id": 50256,
|
| 8 |
+
"embd_pdrop": 0.1,
|
| 9 |
+
"eos_token_id": 50256,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"layer_norm_epsilon": 1e-05,
|
| 12 |
+
"model_type": "gpt2",
|
| 13 |
+
"n_ctx": 1024,
|
| 14 |
+
"n_embd": 768,
|
| 15 |
+
"n_head": 12,
|
| 16 |
+
"n_inner": null,
|
| 17 |
+
"n_layer": 12,
|
| 18 |
+
"n_positions": 1024,
|
| 19 |
+
"reorder_and_upcast_attn": false,
|
| 20 |
+
"resid_pdrop": 0.1,
|
| 21 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 22 |
+
"scale_attn_weights": true,
|
| 23 |
+
"summary_activation": null,
|
| 24 |
+
"summary_first_dropout": 0.1,
|
| 25 |
+
"summary_proj_to_labels": true,
|
| 26 |
+
"summary_type": "cls_index",
|
| 27 |
+
"summary_use_proj": true,
|
| 28 |
+
"task_specific_params": {
|
| 29 |
+
"text-generation": {
|
| 30 |
+
"do_sample": true,
|
| 31 |
+
"max_length": 50
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"torch_dtype": "float32",
|
| 35 |
+
"transformers_version": "4.52.4",
|
| 36 |
+
"use_cache": true,
|
| 37 |
+
"vocab_size": 50257
|
| 38 |
+
}
|
gpt2_120M_distill_v2/7140/generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.52.4"
|
| 6 |
+
}
|
gpt2_120M_distill_v2/7140/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a69b532e7d363c1ac547c09dffc3080016033c5e5a5ee4432741d8d88db6f39
|
| 3 |
+
size 497774208
|
gpt2_120M_distill_v2/args.yaml
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
alm_diff_fn: binary_ce
|
| 2 |
+
alm_mode: merge_by_space_prob+append_space
|
| 3 |
+
binarization_temp: 100.0
|
| 4 |
+
chat_template_mode: direct_encode
|
| 5 |
+
data:
|
| 6 |
+
batch_size: 16
|
| 7 |
+
kind: jsonl
|
| 8 |
+
lang_code: en
|
| 9 |
+
num_workers: 16
|
| 10 |
+
path: data/dolly_train.jsonl
|
| 11 |
+
debug: false
|
| 12 |
+
distill_chunk_sizes:
|
| 13 |
+
- 1
|
| 14 |
+
distill_main_path_denominator: chunk_count
|
| 15 |
+
distill_main_path_numerator: chunk_count
|
| 16 |
+
do_cost_analysis: false
|
| 17 |
+
dry_run: false
|
| 18 |
+
dtype: bfloat16
|
| 19 |
+
eval:
|
| 20 |
+
add_bos: true
|
| 21 |
+
chat_template_mode: direct_encode_no_force_eos
|
| 22 |
+
confirm_run_unsafe_code: true
|
| 23 |
+
lengths:
|
| 24 |
+
- 2048
|
| 25 |
+
limit: null
|
| 26 |
+
tasks:
|
| 27 |
+
- math_500_openmath2
|
| 28 |
+
- gsm8k_openmath2
|
| 29 |
+
tokens_per_batch: 16384
|
| 30 |
+
eval_at_step_zero: false
|
| 31 |
+
eval_interval: 50000
|
| 32 |
+
expand_input_ids: false
|
| 33 |
+
export_to_gcs_bucket: null
|
| 34 |
+
gradient_checkpointing: false
|
| 35 |
+
hypernet:
|
| 36 |
+
architecture: identity
|
| 37 |
+
multiply_hidden_dim_by_num_embeddings: true
|
| 38 |
+
num_heads: 16
|
| 39 |
+
num_layers: 1
|
| 40 |
+
residual: true
|
| 41 |
+
residual_alpha: 1
|
| 42 |
+
shared: true
|
| 43 |
+
use_attention: false
|
| 44 |
+
use_attention_mask: false
|
| 45 |
+
latents_chunks: naive
|
| 46 |
+
latents_do_project: true
|
| 47 |
+
latents_normalization: l2_channelwise
|
| 48 |
+
latents_to_align: last_hidden_state
|
| 49 |
+
log_interval: 50
|
| 50 |
+
loss_mask_mode: dolly
|
| 51 |
+
loss_schedules: null
|
| 52 |
+
loss_weights: null
|
| 53 |
+
losses:
|
| 54 |
+
- sft
|
| 55 |
+
- alm_unconstrained
|
| 56 |
+
max_student_length: 256
|
| 57 |
+
max_teacher_length: 256
|
| 58 |
+
model_lora_alpha: 64
|
| 59 |
+
model_lora_rank: 64
|
| 60 |
+
multitask_aggregation_fn: null
|
| 61 |
+
n_data_parallel: 1
|
| 62 |
+
n_model_parallel: 1
|
| 63 |
+
name: gpt2_120m_distill
|
| 64 |
+
num_workers: 24
|
| 65 |
+
optimizer:
|
| 66 |
+
b1: 0.9
|
| 67 |
+
b2: 0.95
|
| 68 |
+
eps: 1.0e-08
|
| 69 |
+
grad_acc_steps: 1
|
| 70 |
+
learning_rate: 5.0e-05
|
| 71 |
+
max_grad_norm: null
|
| 72 |
+
param_groups:
|
| 73 |
+
- lr_scale: 2
|
| 74 |
+
pattern: .*(projector_query|projector_s2t|projector_t2s|projector_latents|loss_weights).*
|
| 75 |
+
type: adamw
|
| 76 |
+
weight_decay: 0.0
|
| 77 |
+
output: outputs/gpt2_120M_distill_v2
|
| 78 |
+
output_embeddings_mode: preserve
|
| 79 |
+
pad_to_multiple_of: 64
|
| 80 |
+
ppl_eval_data: null
|
| 81 |
+
save_at_step_zero: false
|
| 82 |
+
save_interval: 50000
|
| 83 |
+
seed: 1234
|
| 84 |
+
skip_lm_eval: true
|
| 85 |
+
space_mask_mode: space+tab+newline+special
|
| 86 |
+
steps: 7200
|
| 87 |
+
student:
|
| 88 |
+
pretrained_model_name_or_path: openai-community/gpt2
|
| 89 |
+
revision: null
|
| 90 |
+
tokenizer_name: openai-community/gpt2:source=GPT2
|
| 91 |
+
sync_interval: 100
|
| 92 |
+
target_tokenizer_name: openai-community/gpt2:source=GPT2
|
| 93 |
+
teacher:
|
| 94 |
+
pretrained_model_name_or_path: VoCuc/Qwen1.5_1.8B_SFT
|
| 95 |
+
revision: null
|
| 96 |
+
tokenizer_name: VoCuc/Qwen1.5_1.8B_SFT:source=Qwen2
|
| 97 |
+
tokenizer_pair_bias_threshold: 0.1
|
| 98 |
+
tokenizer_pair_data_path: artifacts/tokenizer_data/math_llama3_to_gemma2
|
| 99 |
+
tokens_to_add: []
|
| 100 |
+
train_embeddings: true
|
| 101 |
+
train_model_mode: full
|
| 102 |
+
use_chat_template: false
|
| 103 |
+
warmup_steps: 500
|
gpt2_xl_distill/14290/README.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: openai-community/gpt2-xl
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:openai-community/gpt2-xl
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Model Card for Model ID
|
| 12 |
+
|
| 13 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Model Details
|
| 18 |
+
|
| 19 |
+
### Model Description
|
| 20 |
+
|
| 21 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
- **Developed by:** [More Information Needed]
|
| 26 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 27 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 28 |
+
- **Model type:** [More Information Needed]
|
| 29 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
+
- **License:** [More Information Needed]
|
| 31 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
+
|
| 33 |
+
### Model Sources [optional]
|
| 34 |
+
|
| 35 |
+
<!-- Provide the basic links for the model. -->
|
| 36 |
+
|
| 37 |
+
- **Repository:** [More Information Needed]
|
| 38 |
+
- **Paper [optional]:** [More Information Needed]
|
| 39 |
+
- **Demo [optional]:** [More Information Needed]
|
| 40 |
+
|
| 41 |
+
## Uses
|
| 42 |
+
|
| 43 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 44 |
+
|
| 45 |
+
### Direct Use
|
| 46 |
+
|
| 47 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 48 |
+
|
| 49 |
+
[More Information Needed]
|
| 50 |
+
|
| 51 |
+
### Downstream Use [optional]
|
| 52 |
+
|
| 53 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 54 |
+
|
| 55 |
+
[More Information Needed]
|
| 56 |
+
|
| 57 |
+
### Out-of-Scope Use
|
| 58 |
+
|
| 59 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 60 |
+
|
| 61 |
+
[More Information Needed]
|
| 62 |
+
|
| 63 |
+
## Bias, Risks, and Limitations
|
| 64 |
+
|
| 65 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 66 |
+
|
| 67 |
+
[More Information Needed]
|
| 68 |
+
|
| 69 |
+
### Recommendations
|
| 70 |
+
|
| 71 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 72 |
+
|
| 73 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 74 |
+
|
| 75 |
+
## How to Get Started with the Model
|
| 76 |
+
|
| 77 |
+
Use the code below to get started with the model.
|
| 78 |
+
|
| 79 |
+
[More Information Needed]
|
| 80 |
+
|
| 81 |
+
## Training Details
|
| 82 |
+
|
| 83 |
+
### Training Data
|
| 84 |
+
|
| 85 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 86 |
+
|
| 87 |
+
[More Information Needed]
|
| 88 |
+
|
| 89 |
+
### Training Procedure
|
| 90 |
+
|
| 91 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 92 |
+
|
| 93 |
+
#### Preprocessing [optional]
|
| 94 |
+
|
| 95 |
+
[More Information Needed]
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
#### Training Hyperparameters
|
| 99 |
+
|
| 100 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 101 |
+
|
| 102 |
+
#### Speeds, Sizes, Times [optional]
|
| 103 |
+
|
| 104 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 105 |
+
|
| 106 |
+
[More Information Needed]
|
| 107 |
+
|
| 108 |
+
## Evaluation
|
| 109 |
+
|
| 110 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 111 |
+
|
| 112 |
+
### Testing Data, Factors & Metrics
|
| 113 |
+
|
| 114 |
+
#### Testing Data
|
| 115 |
+
|
| 116 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 117 |
+
|
| 118 |
+
[More Information Needed]
|
| 119 |
+
|
| 120 |
+
#### Factors
|
| 121 |
+
|
| 122 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 123 |
+
|
| 124 |
+
[More Information Needed]
|
| 125 |
+
|
| 126 |
+
#### Metrics
|
| 127 |
+
|
| 128 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 129 |
+
|
| 130 |
+
[More Information Needed]
|
| 131 |
+
|
| 132 |
+
### Results
|
| 133 |
+
|
| 134 |
+
[More Information Needed]
|
| 135 |
+
|
| 136 |
+
#### Summary
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
## Model Examination [optional]
|
| 141 |
+
|
| 142 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 143 |
+
|
| 144 |
+
[More Information Needed]
|
| 145 |
+
|
| 146 |
+
## Environmental Impact
|
| 147 |
+
|
| 148 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 149 |
+
|
| 150 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 151 |
+
|
| 152 |
+
- **Hardware Type:** [More Information Needed]
|
| 153 |
+
- **Hours used:** [More Information Needed]
|
| 154 |
+
- **Cloud Provider:** [More Information Needed]
|
| 155 |
+
- **Compute Region:** [More Information Needed]
|
| 156 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 157 |
+
|
| 158 |
+
## Technical Specifications [optional]
|
| 159 |
+
|
| 160 |
+
### Model Architecture and Objective
|
| 161 |
+
|
| 162 |
+
[More Information Needed]
|
| 163 |
+
|
| 164 |
+
### Compute Infrastructure
|
| 165 |
+
|
| 166 |
+
[More Information Needed]
|
| 167 |
+
|
| 168 |
+
#### Hardware
|
| 169 |
+
|
| 170 |
+
[More Information Needed]
|
| 171 |
+
|
| 172 |
+
#### Software
|
| 173 |
+
|
| 174 |
+
[More Information Needed]
|
| 175 |
+
|
| 176 |
+
## Citation [optional]
|
| 177 |
+
|
| 178 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 179 |
+
|
| 180 |
+
**BibTeX:**
|
| 181 |
+
|
| 182 |
+
[More Information Needed]
|
| 183 |
+
|
| 184 |
+
**APA:**
|
| 185 |
+
|
| 186 |
+
[More Information Needed]
|
| 187 |
+
|
| 188 |
+
## Glossary [optional]
|
| 189 |
+
|
| 190 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 191 |
+
|
| 192 |
+
[More Information Needed]
|
| 193 |
+
|
| 194 |
+
## More Information [optional]
|
| 195 |
+
|
| 196 |
+
[More Information Needed]
|
| 197 |
+
|
| 198 |
+
## Model Card Authors [optional]
|
| 199 |
+
|
| 200 |
+
[More Information Needed]
|
| 201 |
+
|
| 202 |
+
## Model Card Contact
|
| 203 |
+
|
| 204 |
+
[More Information Needed]
|
| 205 |
+
### Framework versions
|
| 206 |
+
|
| 207 |
+
- PEFT 0.17.1
|
gpt2_xl_distill/14290/adapter_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "openai-community/gpt2-xl",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"corda_config": null,
|
| 7 |
+
"eva_config": null,
|
| 8 |
+
"exclude_modules": null,
|
| 9 |
+
"fan_in_fan_out": true,
|
| 10 |
+
"inference_mode": true,
|
| 11 |
+
"init_lora_weights": true,
|
| 12 |
+
"layer_replication": null,
|
| 13 |
+
"layers_pattern": null,
|
| 14 |
+
"layers_to_transform": null,
|
| 15 |
+
"loftq_config": {},
|
| 16 |
+
"lora_alpha": 8,
|
| 17 |
+
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.1,
|
| 19 |
+
"megatron_config": null,
|
| 20 |
+
"megatron_core": "megatron.core",
|
| 21 |
+
"modules_to_save": null,
|
| 22 |
+
"peft_type": "LORA",
|
| 23 |
+
"qalora_group_size": 16,
|
| 24 |
+
"r": 256,
|
| 25 |
+
"rank_pattern": {},
|
| 26 |
+
"revision": null,
|
| 27 |
+
"target_modules": [
|
| 28 |
+
"c_proj",
|
| 29 |
+
"c_attn"
|
| 30 |
+
],
|
| 31 |
+
"target_parameters": null,
|
| 32 |
+
"task_type": "CAUSAL_LM",
|
| 33 |
+
"trainable_token_indices": null,
|
| 34 |
+
"use_dora": false,
|
| 35 |
+
"use_qalora": false,
|
| 36 |
+
"use_rslora": false
|
| 37 |
+
}
|
gpt2_xl_distill/14290/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a83c4da369b6b1220180f3855a9794fbb65d7a2d0b6aa645d8a6a177e29654e3
|
| 3 |
+
size 865113592
|
gpt2_xl_distill/args.yaml
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
alm_diff_fn: binary_ce
|
| 2 |
+
alm_mode: merge_by_space_prob+append_space
|
| 3 |
+
binarization_temp: 100.0
|
| 4 |
+
chat_template_mode: direct_encode
|
| 5 |
+
data:
|
| 6 |
+
batch_size: 8
|
| 7 |
+
kind: jsonl
|
| 8 |
+
lang_code: en
|
| 9 |
+
num_workers: 16
|
| 10 |
+
path: data/dolly_train.jsonl
|
| 11 |
+
debug: false
|
| 12 |
+
distill_chunk_sizes:
|
| 13 |
+
- 1
|
| 14 |
+
distill_main_path_denominator: chunk_count
|
| 15 |
+
distill_main_path_numerator: chunk_count
|
| 16 |
+
do_cost_analysis: false
|
| 17 |
+
dry_run: false
|
| 18 |
+
dtype: bfloat16
|
| 19 |
+
eval:
|
| 20 |
+
add_bos: true
|
| 21 |
+
chat_template_mode: direct_encode_no_force_eos
|
| 22 |
+
confirm_run_unsafe_code: true
|
| 23 |
+
lengths:
|
| 24 |
+
- 2048
|
| 25 |
+
limit: null
|
| 26 |
+
tasks:
|
| 27 |
+
- math_500_openmath2
|
| 28 |
+
- gsm8k_openmath2
|
| 29 |
+
tokens_per_batch: 16384
|
| 30 |
+
eval_at_step_zero: false
|
| 31 |
+
eval_interval: 50000
|
| 32 |
+
expand_input_ids: false
|
| 33 |
+
export_to_gcs_bucket: null
|
| 34 |
+
gradient_checkpointing: false
|
| 35 |
+
hypernet:
|
| 36 |
+
architecture: identity
|
| 37 |
+
multiply_hidden_dim_by_num_embeddings: true
|
| 38 |
+
num_heads: 16
|
| 39 |
+
num_layers: 1
|
| 40 |
+
residual: true
|
| 41 |
+
residual_alpha: 1
|
| 42 |
+
shared: true
|
| 43 |
+
use_attention: false
|
| 44 |
+
use_attention_mask: false
|
| 45 |
+
latents_chunks: naive
|
| 46 |
+
latents_do_project: false
|
| 47 |
+
latents_normalization: l2_channelwise
|
| 48 |
+
latents_to_align: last_hidden_state
|
| 49 |
+
log_interval: 50
|
| 50 |
+
loss_mask_mode: dolly
|
| 51 |
+
loss_schedules: null
|
| 52 |
+
loss_weights: null
|
| 53 |
+
losses:
|
| 54 |
+
- sft
|
| 55 |
+
- alm_unconstrained
|
| 56 |
+
max_student_length: 256
|
| 57 |
+
max_teacher_length: 256
|
| 58 |
+
model_lora_alpha: 64
|
| 59 |
+
model_lora_rank: 64
|
| 60 |
+
multitask_aggregation_fn: null
|
| 61 |
+
n_data_parallel: 1
|
| 62 |
+
n_model_parallel: 1
|
| 63 |
+
name: TinyLLaMA_distill
|
| 64 |
+
num_workers: 24
|
| 65 |
+
optimizer:
|
| 66 |
+
b1: 0.9
|
| 67 |
+
b2: 0.95
|
| 68 |
+
eps: 1.0e-08
|
| 69 |
+
grad_acc_steps: 1
|
| 70 |
+
learning_rate: 0.0005
|
| 71 |
+
max_grad_norm: null
|
| 72 |
+
param_groups:
|
| 73 |
+
- lr_scale: 2
|
| 74 |
+
pattern: .*(projector_query|projector_s2t|projector_t2s|projector_latents|loss_weights).*
|
| 75 |
+
type: adamw
|
| 76 |
+
weight_decay: 0.0
|
| 77 |
+
output: outputs/gpt2_xl_distill
|
| 78 |
+
output_embeddings_mode: preserve
|
| 79 |
+
pad_to_multiple_of: 64
|
| 80 |
+
ppl_eval_data: null
|
| 81 |
+
save_at_step_zero: false
|
| 82 |
+
save_interval: 50000
|
| 83 |
+
seed: 1234
|
| 84 |
+
skip_lm_eval: true
|
| 85 |
+
space_mask_mode: space+tab+newline+special
|
| 86 |
+
steps: 15000
|
| 87 |
+
student:
|
| 88 |
+
pretrained_model_name_or_path: openai-community/gpt2-xl
|
| 89 |
+
revision: null
|
| 90 |
+
tokenizer_name: openai-community/gpt2-xl:source=GPT2
|
| 91 |
+
sync_interval: 100
|
| 92 |
+
target_tokenizer_name: openai-community/gpt2-xl:source=GPT2
|
| 93 |
+
teacher:
|
| 94 |
+
pretrained_model_name_or_path: VoCuc/Qwen2.5-7B-Instruct-Dolly-SFT
|
| 95 |
+
revision: null
|
| 96 |
+
tokenizer_name: VoCuc/Qwen2.5-7B-Instruct-Dolly-SFT:source=Qwen2
|
| 97 |
+
tokenizer_pair_bias_threshold: 0.1
|
| 98 |
+
tokenizer_pair_data_path: artifacts/tokenizer_data/math_llama3_to_gemma2
|
| 99 |
+
tokens_to_add: []
|
| 100 |
+
train_embeddings: true
|
| 101 |
+
train_model_mode: lora
|
| 102 |
+
use_chat_template: false
|
| 103 |
+
warmup_steps: 1500
|