AmberYifan commited on
Commit
c1e8995
·
verified ·
1 Parent(s): c5784e0

capmix single-domain code_random_b2000_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-32/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_random_b2000_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_random_b2000_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_random_b2000_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": 1206412247040.0,
4
+ "train_loss": 0.3207094073295593,
5
+ "train_runtime": 1010.8052,
6
+ "train_samples_per_second": 1.979,
7
+ "train_steps_per_second": 0.032
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-32/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-32/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-32/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-32/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60b529cf4ba2a371a90d33f8c48c024fb327265d20dd6101836598e7fb4fd94a
3
+ size 16060556616
checkpoint-32/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
checkpoint-32/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-32/trainer_state.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 32,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [],
12
+ "logging_steps": 50,
13
+ "max_steps": 32,
14
+ "num_input_tokens_seen": 0,
15
+ "num_train_epochs": 1,
16
+ "save_steps": 500,
17
+ "stateful_callbacks": {
18
+ "TrainerControl": {
19
+ "args": {
20
+ "should_epoch_stop": false,
21
+ "should_evaluate": false,
22
+ "should_log": false,
23
+ "should_save": true,
24
+ "should_training_stop": true
25
+ },
26
+ "attributes": {}
27
+ }
28
+ },
29
+ "total_flos": 1206412247040.0,
30
+ "train_batch_size": 2,
31
+ "trial_name": null,
32
+ "trial_params": null
33
+ }
checkpoint-32/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21fac8b80154aeeb34ec114adb58c7b6ce6653ba6070a227bc681d224a43428a
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:60b529cf4ba2a371a90d33f8c48c024fb327265d20dd6101836598e7fb4fd94a
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": 1206412247040.0,
4
+ "train_loss": 0.3207094073295593,
5
+ "train_runtime": 1010.8052,
6
+ "train_samples_per_second": 1.979,
7
+ "train_steps_per_second": 0.032
8
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"current_steps": 32, "total_steps": 32, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "0:16:50", "remaining_time": "0:00:00"}
trainer_state.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 32,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 1.0,
14
+ "step": 32,
15
+ "total_flos": 1206412247040.0,
16
+ "train_loss": 0.3207094073295593,
17
+ "train_runtime": 1010.8052,
18
+ "train_samples_per_second": 1.979,
19
+ "train_steps_per_second": 0.032
20
+ }
21
+ ],
22
+ "logging_steps": 50,
23
+ "max_steps": 32,
24
+ "num_input_tokens_seen": 0,
25
+ "num_train_epochs": 1,
26
+ "save_steps": 500,
27
+ "stateful_callbacks": {
28
+ "TrainerControl": {
29
+ "args": {
30
+ "should_epoch_stop": false,
31
+ "should_evaluate": false,
32
+ "should_log": false,
33
+ "should_save": true,
34
+ "should_training_stop": true
35
+ },
36
+ "attributes": {}
37
+ }
38
+ },
39
+ "total_flos": 1206412247040.0,
40
+ "train_batch_size": 2,
41
+ "trial_name": null,
42
+ "trial_params": null
43
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21fac8b80154aeeb34ec114adb58c7b6ce6653ba6070a227bc681d224a43428a
3
+ size 7761