AmberYifan commited on
Commit
7366ef7
·
verified ·
1 Parent(s): 0f7e893

capmix single-domain code_cap_b4000_s0 (marin-8b-base)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ checkpoint-63/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ base_model: marin-community/marin-8b-base
5
+ tags:
6
+ - llama-factory
7
+ - full
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: marin-8b-base_code_cap_b4000_s0
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # marin-8b-base_code_cap_b4000_s0
18
+
19
+ This model is a fine-tuned version of [marin-community/marin-8b-base](https://huggingface.co/marin-community/marin-8b-base) on the capsd_marin-8b-base-n80000-code__mix_code_cap_b4000_s0 dataset.
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 1e-05
39
+ - train_batch_size: 2
40
+ - eval_batch_size: 8
41
+ - seed: 0
42
+ - distributed_type: multi-GPU
43
+ - num_devices: 4
44
+ - gradient_accumulation_steps: 8
45
+ - total_train_batch_size: 64
46
+ - total_eval_batch_size: 32
47
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: cosine
49
+ - lr_scheduler_warmup_steps: 0.03
50
+ - num_epochs: 1
51
+
52
+ ### Training results
53
+
54
+
55
+
56
+ ### Framework versions
57
+
58
+ - Transformers 5.7.0
59
+ - Pytorch 2.13.0+cu130
60
+ - Datasets 4.0.0
61
+ - Tokenizers 0.22.2
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 2295712972800.0,
4
+ "train_loss": 0.2977916778080047,
5
+ "train_runtime": 2018.1852,
6
+ "train_samples_per_second": 1.982,
7
+ "train_steps_per_second": 0.031
8
+ }
chat_template.jinja ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {{ '<|begin_of_text|>' }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ '<|start_header_id|>system<|end_header_id|>
2
+
3
+ ' + system_message + '<|eot_id|>' }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|start_header_id|>user<|end_header_id|>
4
+
5
+ ' + content + '<|eot_id|><|start_header_id|>assistant<|end_header_id|>
6
+
7
+ ' }}{% elif message['role'] == 'assistant' %}{{ content + '<|eot_id|>' }}{% endif %}{% endfor %}
checkpoint-63/chat_template.jinja ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {{ '<|begin_of_text|>' }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ '<|start_header_id|>system<|end_header_id|>
2
+
3
+ ' + system_message + '<|eot_id|>' }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|start_header_id|>user<|end_header_id|>
4
+
5
+ ' + content + '<|eot_id|><|start_header_id|>assistant<|end_header_id|>
6
+
7
+ ' }}{% elif message['role'] == 'assistant' %}{{ content + '<|eot_id|>' }}{% endif %}{% endfor %}
checkpoint-63/config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": false,
3
+ "add_cross_attention": false,
4
+ "architectures": [
5
+ "LlamaForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 128000,
10
+ "cross_attention_hidden_size": null,
11
+ "decoder_start_token_id": 128000,
12
+ "dtype": "bfloat16",
13
+ "eos_token_id": 128009,
14
+ "finetuning_task": null,
15
+ "head_dim": 128,
16
+ "hidden_act": "silu",
17
+ "hidden_size": 4096,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 14336,
20
+ "is_decoder": false,
21
+ "max_position_embeddings": 4096,
22
+ "mlp_bias": false,
23
+ "model_type": "llama",
24
+ "num_attention_heads": 32,
25
+ "num_hidden_layers": 32,
26
+ "num_key_value_heads": 8,
27
+ "pad_token_id": 128009,
28
+ "prefix": null,
29
+ "pretraining_tp": 1,
30
+ "pruned_heads": {},
31
+ "rms_norm_eps": 1e-05,
32
+ "rope_parameters": {
33
+ "factor": 8.0,
34
+ "high_freq_factor": 4.0,
35
+ "low_freq_factor": 1.0,
36
+ "original_max_position_embeddings": 8192,
37
+ "rope_theta": 500000,
38
+ "rope_type": "llama3"
39
+ },
40
+ "sep_token_id": null,
41
+ "task_specific_params": null,
42
+ "tf_legacy_loss": false,
43
+ "tie_encoder_decoder": false,
44
+ "tie_word_embeddings": false,
45
+ "tokenizer_class": null,
46
+ "torchscript": false,
47
+ "transformers_version": "5.7.0",
48
+ "use_bfloat16": false,
49
+ "use_cache": false,
50
+ "vocab_size": 128256
51
+ }
checkpoint-63/generation_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "begin_suppress_tokens": [
4
+ 128000,
5
+ 128001
6
+ ],
7
+ "bos_token_id": 128000,
8
+ "decoder_start_token_id": 128000,
9
+ "diversity_penalty": 0.0,
10
+ "do_sample": false,
11
+ "early_stopping": false,
12
+ "encoder_no_repeat_ngram_size": 0,
13
+ "eos_token_id": [
14
+ 128009,
15
+ 128001
16
+ ],
17
+ "length_penalty": 1.0,
18
+ "max_length": 20,
19
+ "min_length": 0,
20
+ "no_repeat_ngram_size": 0,
21
+ "num_beam_groups": 1,
22
+ "num_beams": 1,
23
+ "num_return_sequences": 1,
24
+ "output_attentions": false,
25
+ "output_hidden_states": false,
26
+ "output_scores": false,
27
+ "pad_token_id": 128009,
28
+ "remove_invalid_values": false,
29
+ "repetition_penalty": 1.0,
30
+ "return_dict_in_generate": false,
31
+ "temperature": 1.0,
32
+ "top_k": 50,
33
+ "top_p": 1.0,
34
+ "transformers_version": "5.7.0",
35
+ "typical_p": 1.0,
36
+ "use_cache": true
37
+ }
checkpoint-63/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0aaa2276192b5b03d71917041b3d154e59c16c6ff1a24e5f64aa3920833c3f99
3
+ size 16060556616
checkpoint-63/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
checkpoint-63/tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "extra_special_tokens": [
7
+ "<|eom_id|>"
8
+ ],
9
+ "is_local": false,
10
+ "local_files_only": false,
11
+ "model_input_names": [
12
+ "input_ids",
13
+ "attention_mask"
14
+ ],
15
+ "model_max_length": 131072,
16
+ "pad_token": "<|eot_id|>",
17
+ "padding_side": "right",
18
+ "split_special_tokens": false,
19
+ "tokenizer_class": "TokenizersBackend"
20
+ }
checkpoint-63/trainer_state.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 500,
7
+ "global_step": 63,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.8,
14
+ "grad_norm": 0.5070397515220946,
15
+ "learning_rate": 1.2443403456474017e-06,
16
+ "loss": 0.30378759384155274,
17
+ "step": 50
18
+ }
19
+ ],
20
+ "logging_steps": 50,
21
+ "max_steps": 63,
22
+ "num_input_tokens_seen": 0,
23
+ "num_train_epochs": 1,
24
+ "save_steps": 500,
25
+ "stateful_callbacks": {
26
+ "TrainerControl": {
27
+ "args": {
28
+ "should_epoch_stop": false,
29
+ "should_evaluate": false,
30
+ "should_log": false,
31
+ "should_save": true,
32
+ "should_training_stop": true
33
+ },
34
+ "attributes": {}
35
+ }
36
+ },
37
+ "total_flos": 2295712972800.0,
38
+ "train_batch_size": 2,
39
+ "trial_name": null,
40
+ "trial_params": null
41
+ }
checkpoint-63/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da25d45395525d55c46a7dd6872e546185bf25e986085e3239afb4ae3cc1ad11
3
+ size 7761
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": false,
3
+ "add_cross_attention": false,
4
+ "architectures": [
5
+ "LlamaForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 128000,
10
+ "cross_attention_hidden_size": null,
11
+ "decoder_start_token_id": 128000,
12
+ "dtype": "bfloat16",
13
+ "eos_token_id": 128009,
14
+ "finetuning_task": null,
15
+ "head_dim": 128,
16
+ "hidden_act": "silu",
17
+ "hidden_size": 4096,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 14336,
20
+ "is_decoder": false,
21
+ "max_position_embeddings": 4096,
22
+ "mlp_bias": false,
23
+ "model_type": "llama",
24
+ "num_attention_heads": 32,
25
+ "num_hidden_layers": 32,
26
+ "num_key_value_heads": 8,
27
+ "pad_token_id": 128009,
28
+ "prefix": null,
29
+ "pretraining_tp": 1,
30
+ "pruned_heads": {},
31
+ "rms_norm_eps": 1e-05,
32
+ "rope_parameters": {
33
+ "factor": 8.0,
34
+ "high_freq_factor": 4.0,
35
+ "low_freq_factor": 1.0,
36
+ "original_max_position_embeddings": 8192,
37
+ "rope_theta": 500000,
38
+ "rope_type": "llama3"
39
+ },
40
+ "sep_token_id": null,
41
+ "task_specific_params": null,
42
+ "tf_legacy_loss": false,
43
+ "tie_encoder_decoder": false,
44
+ "tie_word_embeddings": false,
45
+ "tokenizer_class": null,
46
+ "torchscript": false,
47
+ "transformers_version": "5.7.0",
48
+ "use_bfloat16": false,
49
+ "use_cache": false,
50
+ "vocab_size": 128256
51
+ }
generation_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "begin_suppress_tokens": [
4
+ 128000,
5
+ 128001
6
+ ],
7
+ "bos_token_id": 128000,
8
+ "decoder_start_token_id": 128000,
9
+ "diversity_penalty": 0.0,
10
+ "do_sample": false,
11
+ "early_stopping": false,
12
+ "encoder_no_repeat_ngram_size": 0,
13
+ "eos_token_id": [
14
+ 128009,
15
+ 128001
16
+ ],
17
+ "length_penalty": 1.0,
18
+ "max_length": 20,
19
+ "min_length": 0,
20
+ "no_repeat_ngram_size": 0,
21
+ "num_beam_groups": 1,
22
+ "num_beams": 1,
23
+ "num_return_sequences": 1,
24
+ "output_attentions": false,
25
+ "output_hidden_states": false,
26
+ "output_scores": false,
27
+ "pad_token_id": 128009,
28
+ "remove_invalid_values": false,
29
+ "repetition_penalty": 1.0,
30
+ "return_dict_in_generate": false,
31
+ "temperature": 1.0,
32
+ "top_k": 50,
33
+ "top_p": 1.0,
34
+ "transformers_version": "5.7.0",
35
+ "typical_p": 1.0,
36
+ "use_cache": true
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0aaa2276192b5b03d71917041b3d154e59c16c6ff1a24e5f64aa3920833c3f99
3
+ size 16060556616
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "extra_special_tokens": [
7
+ "<|eom_id|>"
8
+ ],
9
+ "is_local": false,
10
+ "local_files_only": false,
11
+ "model_input_names": [
12
+ "input_ids",
13
+ "attention_mask"
14
+ ],
15
+ "model_max_length": 131072,
16
+ "pad_token": "<|eot_id|>",
17
+ "padding_side": "right",
18
+ "split_special_tokens": false,
19
+ "tokenizer_class": "TokenizersBackend"
20
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 2295712972800.0,
4
+ "train_loss": 0.2977916778080047,
5
+ "train_runtime": 2018.1852,
6
+ "train_samples_per_second": 1.982,
7
+ "train_steps_per_second": 0.031
8
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {"current_steps": 50, "total_steps": 63, "loss": 0.30378759384155274, "lr": 1.2443403456474017e-06, "epoch": 0.8, "percentage": 79.37, "elapsed_time": "0:26:47", "remaining_time": "0:06:57"}
2
+ {"current_steps": 63, "total_steps": 63, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "0:33:38", "remaining_time": "0:00:00"}
trainer_state.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 500,
7
+ "global_step": 63,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.8,
14
+ "grad_norm": 0.5070397515220946,
15
+ "learning_rate": 1.2443403456474017e-06,
16
+ "loss": 0.30378759384155274,
17
+ "step": 50
18
+ },
19
+ {
20
+ "epoch": 1.0,
21
+ "step": 63,
22
+ "total_flos": 2295712972800.0,
23
+ "train_loss": 0.2977916778080047,
24
+ "train_runtime": 2018.1852,
25
+ "train_samples_per_second": 1.982,
26
+ "train_steps_per_second": 0.031
27
+ }
28
+ ],
29
+ "logging_steps": 50,
30
+ "max_steps": 63,
31
+ "num_input_tokens_seen": 0,
32
+ "num_train_epochs": 1,
33
+ "save_steps": 500,
34
+ "stateful_callbacks": {
35
+ "TrainerControl": {
36
+ "args": {
37
+ "should_epoch_stop": false,
38
+ "should_evaluate": false,
39
+ "should_log": false,
40
+ "should_save": true,
41
+ "should_training_stop": true
42
+ },
43
+ "attributes": {}
44
+ }
45
+ },
46
+ "total_flos": 2295712972800.0,
47
+ "train_batch_size": 2,
48
+ "trial_name": null,
49
+ "trial_params": null
50
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da25d45395525d55c46a7dd6872e546185bf25e986085e3239afb4ae3cc1ad11
3
+ size 7761