Model save
Browse files- .gitattributes +1 -0
- README.md +56 -0
- adapter_config.json +37 -0
- adapter_model.safetensors +3 -0
- config.json +39 -0
- special_tokens_map.json +17 -0
- tokenizer.json +3 -0
- tokenizer_config.json +0 -0
- trainer_state.json +140 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ 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 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
license: llama3.2
|
4 |
+
base_model: meta-llama/Llama-3.2-1B-Instruct
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: Yelp-1B
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# Yelp-1B
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [meta-llama/Llama-3.2-1B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct) on an unknown dataset.
|
18 |
+
|
19 |
+
## Model description
|
20 |
+
|
21 |
+
More information needed
|
22 |
+
|
23 |
+
## Intended uses & limitations
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Training and evaluation data
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training procedure
|
32 |
+
|
33 |
+
### Training hyperparameters
|
34 |
+
|
35 |
+
The following hyperparameters were used during training:
|
36 |
+
- learning_rate: 0.0001
|
37 |
+
- train_batch_size: 16
|
38 |
+
- eval_batch_size: 8
|
39 |
+
- seed: 42
|
40 |
+
- gradient_accumulation_steps: 16
|
41 |
+
- total_train_batch_size: 256
|
42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
+
- lr_scheduler_type: linear
|
44 |
+
- lr_scheduler_warmup_steps: 2
|
45 |
+
- num_epochs: 4
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
### Framework versions
|
52 |
+
|
53 |
+
- PEFT 0.14.0
|
54 |
+
- Transformers 4.45.2
|
55 |
+
- Pytorch 2.5.1
|
56 |
+
- Tokenizers 0.20.3
|
adapter_config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "meta-llama/Llama-3.2-1B-Instruct",
|
5 |
+
"bias": "none",
|
6 |
+
"eva_config": null,
|
7 |
+
"exclude_modules": null,
|
8 |
+
"fan_in_fan_out": false,
|
9 |
+
"inference_mode": true,
|
10 |
+
"init_lora_weights": true,
|
11 |
+
"layer_replication": null,
|
12 |
+
"layers_pattern": null,
|
13 |
+
"layers_to_transform": null,
|
14 |
+
"loftq_config": {},
|
15 |
+
"lora_alpha": 32,
|
16 |
+
"lora_bias": false,
|
17 |
+
"lora_dropout": 0.05,
|
18 |
+
"megatron_config": null,
|
19 |
+
"megatron_core": "megatron.core",
|
20 |
+
"modules_to_save": null,
|
21 |
+
"peft_type": "LORA",
|
22 |
+
"r": 16,
|
23 |
+
"rank_pattern": {},
|
24 |
+
"revision": null,
|
25 |
+
"target_modules": [
|
26 |
+
"v_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"up_proj",
|
29 |
+
"o_proj",
|
30 |
+
"q_proj",
|
31 |
+
"k_proj",
|
32 |
+
"down_proj"
|
33 |
+
],
|
34 |
+
"task_type": "CAUSAL_LM",
|
35 |
+
"use_dora": false,
|
36 |
+
"use_rslora": false
|
37 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:25f55454e1526a2a3540192469c0a2a7acf0e2930445c8c382be50350443861a
|
3 |
+
size 1104180408
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"LlamaForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 128000,
|
8 |
+
"eos_token_id": [
|
9 |
+
128001,
|
10 |
+
128008,
|
11 |
+
128009
|
12 |
+
],
|
13 |
+
"head_dim": 64,
|
14 |
+
"hidden_act": "silu",
|
15 |
+
"hidden_size": 2048,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 8192,
|
18 |
+
"max_position_embeddings": 131072,
|
19 |
+
"mlp_bias": false,
|
20 |
+
"model_type": "llama",
|
21 |
+
"num_attention_heads": 32,
|
22 |
+
"num_hidden_layers": 16,
|
23 |
+
"num_key_value_heads": 8,
|
24 |
+
"pretraining_tp": 1,
|
25 |
+
"rms_norm_eps": 1e-05,
|
26 |
+
"rope_scaling": {
|
27 |
+
"factor": 32.0,
|
28 |
+
"high_freq_factor": 4.0,
|
29 |
+
"low_freq_factor": 1.0,
|
30 |
+
"original_max_position_embeddings": 8192,
|
31 |
+
"rope_type": "llama3"
|
32 |
+
},
|
33 |
+
"rope_theta": 500000.0,
|
34 |
+
"tie_word_embeddings": true,
|
35 |
+
"torch_dtype": "bfloat16",
|
36 |
+
"transformers_version": "4.45.2",
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 129280
|
39 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|begin_of_text|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|eot_id|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "!"
|
17 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a86b1c5a1446428216066226d092e81d022c7c65a8521c675c25e559d1216e6e
|
3 |
+
size 17398145
|
tokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
trainer_state.json
ADDED
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.9991469396459802,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 3516,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.28435345134001566,
|
13 |
+
"grad_norm": 0.7178500890731812,
|
14 |
+
"learning_rate": 9.294251565167901e-05,
|
15 |
+
"loss": 1.3567,
|
16 |
+
"step": 250
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.5687069026800313,
|
20 |
+
"grad_norm": 1.2267086505889893,
|
21 |
+
"learning_rate": 8.582811610700058e-05,
|
22 |
+
"loss": 0.8286,
|
23 |
+
"step": 500
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.8530603540200469,
|
27 |
+
"grad_norm": 0.9475031495094299,
|
28 |
+
"learning_rate": 7.871371656232215e-05,
|
29 |
+
"loss": 0.6149,
|
30 |
+
"step": 750
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.1374138053600626,
|
34 |
+
"grad_norm": 0.7641754150390625,
|
35 |
+
"learning_rate": 7.159931701764372e-05,
|
36 |
+
"loss": 0.5355,
|
37 |
+
"step": 1000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 1.421767256700078,
|
41 |
+
"grad_norm": 0.6781603693962097,
|
42 |
+
"learning_rate": 6.448491747296529e-05,
|
43 |
+
"loss": 0.502,
|
44 |
+
"step": 1250
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.706120708040094,
|
48 |
+
"grad_norm": 0.6851858496665955,
|
49 |
+
"learning_rate": 5.737051792828686e-05,
|
50 |
+
"loss": 0.4789,
|
51 |
+
"step": 1500
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.9904741593801094,
|
55 |
+
"grad_norm": 0.7101367712020874,
|
56 |
+
"learning_rate": 5.025611838360843e-05,
|
57 |
+
"loss": 0.4672,
|
58 |
+
"step": 1750
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 2.2748276107201253,
|
62 |
+
"grad_norm": 0.719354510307312,
|
63 |
+
"learning_rate": 4.3141718838929996e-05,
|
64 |
+
"loss": 0.4556,
|
65 |
+
"step": 2000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 2.5591810620601407,
|
69 |
+
"grad_norm": 0.7557260394096375,
|
70 |
+
"learning_rate": 3.602731929425157e-05,
|
71 |
+
"loss": 0.4437,
|
72 |
+
"step": 2250
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 2.843534513400156,
|
76 |
+
"grad_norm": 0.7026885151863098,
|
77 |
+
"learning_rate": 2.8912919749573137e-05,
|
78 |
+
"loss": 0.4346,
|
79 |
+
"step": 2500
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 3.127887964740172,
|
83 |
+
"grad_norm": 0.7724879384040833,
|
84 |
+
"learning_rate": 2.1798520204894708e-05,
|
85 |
+
"loss": 0.4278,
|
86 |
+
"step": 2750
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 3.4122414160801875,
|
90 |
+
"grad_norm": 0.726881742477417,
|
91 |
+
"learning_rate": 1.4684120660216277e-05,
|
92 |
+
"loss": 0.4204,
|
93 |
+
"step": 3000
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 3.6965948674202034,
|
97 |
+
"grad_norm": 0.726548969745636,
|
98 |
+
"learning_rate": 7.569721115537849e-06,
|
99 |
+
"loss": 0.4147,
|
100 |
+
"step": 3250
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 3.980948318760219,
|
104 |
+
"grad_norm": 0.7224068641662598,
|
105 |
+
"learning_rate": 4.553215708594195e-07,
|
106 |
+
"loss": 0.4115,
|
107 |
+
"step": 3500
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 3.9991469396459802,
|
111 |
+
"step": 3516,
|
112 |
+
"total_flos": 9.36662514312536e+17,
|
113 |
+
"train_loss": 0.5558986084724313,
|
114 |
+
"train_runtime": 21202.7076,
|
115 |
+
"train_samples_per_second": 42.459,
|
116 |
+
"train_steps_per_second": 0.166
|
117 |
+
}
|
118 |
+
],
|
119 |
+
"logging_steps": 250,
|
120 |
+
"max_steps": 3516,
|
121 |
+
"num_input_tokens_seen": 0,
|
122 |
+
"num_train_epochs": 4,
|
123 |
+
"save_steps": 500,
|
124 |
+
"stateful_callbacks": {
|
125 |
+
"TrainerControl": {
|
126 |
+
"args": {
|
127 |
+
"should_epoch_stop": false,
|
128 |
+
"should_evaluate": false,
|
129 |
+
"should_log": false,
|
130 |
+
"should_save": false,
|
131 |
+
"should_training_stop": false
|
132 |
+
},
|
133 |
+
"attributes": {}
|
134 |
+
}
|
135 |
+
},
|
136 |
+
"total_flos": 9.36662514312536e+17,
|
137 |
+
"train_batch_size": 16,
|
138 |
+
"trial_name": null,
|
139 |
+
"trial_params": null
|
140 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a37ed115efdad59b564640085ef6e9db8dfac80498dd6c379575ad52cd92456
|
3 |
+
size 5176
|