Marko Tasic
commited on
Commit
•
6d5af06
1
Parent(s):
e7cbf52
pretrain final
Browse files
out/pretrain/final/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": 1,
|
8 |
+
"eos_token_id": [
|
9 |
+
2,
|
10 |
+
5,
|
11 |
+
6
|
12 |
+
],
|
13 |
+
"head_dim": 64,
|
14 |
+
"hidden_act": "silu",
|
15 |
+
"hidden_size": 256,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 1024,
|
18 |
+
"max_position_embeddings": 131072,
|
19 |
+
"mlp_bias": false,
|
20 |
+
"model_type": "llama",
|
21 |
+
"num_attention_heads": 32,
|
22 |
+
"num_hidden_layers": 32,
|
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.0.dev0",
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 262144
|
39 |
+
}
|
out/pretrain/final/hyperparameters.yaml
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
model_name: Llama-3.1-8B
|
2 |
+
model_config:
|
3 |
+
name: ''
|
4 |
+
hf_config: {}
|
5 |
+
scale_embeddings: false
|
6 |
+
block_size: 8192
|
7 |
+
vocab_size: 262144
|
8 |
+
padding_multiple: 512
|
9 |
+
padded_vocab_size: 262144
|
10 |
+
n_layer: 32
|
11 |
+
n_head: 32
|
12 |
+
head_size: 64
|
13 |
+
n_embd: 256
|
14 |
+
rotary_percentage: 1.0
|
15 |
+
parallel_residual: false
|
16 |
+
bias: false
|
17 |
+
lm_head_bias: false
|
18 |
+
n_query_groups: 8
|
19 |
+
shared_attention_norm: false
|
20 |
+
norm_class_name: RMSNorm
|
21 |
+
post_attention_norm: false
|
22 |
+
post_mlp_norm: false
|
23 |
+
norm_eps: 1.0e-05
|
24 |
+
mlp_class_name: LLaMAMLP
|
25 |
+
gelu_approximate: none
|
26 |
+
intermediate_size: 1024
|
27 |
+
rope_condense_ratio: 1
|
28 |
+
rope_base: 500000
|
29 |
+
rope_adjustments:
|
30 |
+
factor: 32.0
|
31 |
+
low_freq_factor: 1.0
|
32 |
+
high_freq_factor: 4.0
|
33 |
+
original_max_seq_len: 8192
|
34 |
+
n_expert: 0
|
35 |
+
n_expert_per_token: 0
|
36 |
+
out_dir: ../out/pretrain
|
37 |
+
precision: bf16-true
|
38 |
+
resume: auto
|
39 |
+
data:
|
40 |
+
class_path: litgpt.data.LitData
|
41 |
+
init_args:
|
42 |
+
data_path: ../pretrain-data/
|
43 |
+
seed: 42
|
44 |
+
num_workers: 32
|
45 |
+
train:
|
46 |
+
save_interval: 500
|
47 |
+
log_interval: 1
|
48 |
+
global_batch_size: 512
|
49 |
+
micro_batch_size: 11
|
50 |
+
lr_warmup_steps: 2000
|
51 |
+
max_tokens: 9889496064
|
52 |
+
max_seq_length: 512
|
53 |
+
tie_embeddings: true
|
54 |
+
max_norm: 1.0
|
55 |
+
min_lr: 4.0e-05
|
56 |
+
eval:
|
57 |
+
interval: 100
|
58 |
+
max_iters: 100
|
59 |
+
initial_validation: false
|
60 |
+
final_validation: true
|
61 |
+
evaluate_example: first
|
62 |
+
optimizer:
|
63 |
+
class_path: grokadamw.GrokAdamW
|
64 |
+
init_args:
|
65 |
+
lr: 0.001
|
66 |
+
weight_decay: 0.01
|
67 |
+
betas:
|
68 |
+
- 0.9
|
69 |
+
- 0.999
|
70 |
+
devices: auto
|
71 |
+
num_nodes: 1
|
72 |
+
tokenizer_dir: ..
|
73 |
+
logger_name: wandb
|
74 |
+
seed: 23
|
out/pretrain/final/lit_model.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58836dae5410566815233a6a7dda727e660176f8272bc838e52e37b39dd6d513
|
3 |
+
size 1074196642
|
out/pretrain/final/model_config.yaml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
attention_logit_softcapping: null
|
2 |
+
attention_scores_scalar: null
|
3 |
+
bias: false
|
4 |
+
block_size: 8192
|
5 |
+
final_logit_softcapping: null
|
6 |
+
gelu_approximate: none
|
7 |
+
head_size: 64
|
8 |
+
hf_config: {}
|
9 |
+
intermediate_size: 1024
|
10 |
+
lm_head_bias: false
|
11 |
+
mlp_class_name: LLaMAMLP
|
12 |
+
n_embd: 256
|
13 |
+
n_expert: 0
|
14 |
+
n_expert_per_token: 0
|
15 |
+
n_head: 32
|
16 |
+
n_layer: 32
|
17 |
+
n_query_groups: 8
|
18 |
+
name: ''
|
19 |
+
norm_class_name: RMSNorm
|
20 |
+
norm_eps: 1.0e-05
|
21 |
+
padded_vocab_size: 262144
|
22 |
+
padding_multiple: 512
|
23 |
+
parallel_residual: false
|
24 |
+
post_attention_norm: false
|
25 |
+
post_mlp_norm: false
|
26 |
+
rope_adjustments:
|
27 |
+
factor: 32.0
|
28 |
+
high_freq_factor: 4.0
|
29 |
+
low_freq_factor: 1.0
|
30 |
+
original_max_seq_len: 8192
|
31 |
+
rope_base: 500000
|
32 |
+
rope_condense_ratio: 1
|
33 |
+
rotary_percentage: 1.0
|
34 |
+
scale_embeddings: false
|
35 |
+
shared_attention_norm: false
|
36 |
+
sliding_window_layer_placing: null
|
37 |
+
sliding_window_size: null
|
38 |
+
vocab_size: 262144
|
out/pretrain/final/tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87f950ea35683d2d80e36a35aa88b4c80fe5bd6d53aaab0a3ff3380ed0bc823e
|
3 |
+
size 19928939
|
out/pretrain/final/tokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|