Upload LlamaForCausalLM
Browse files- config.json +86 -0
- generation_config.json +9 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"LlamaForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 128000,
|
8 |
+
"dtype": "bfloat16",
|
9 |
+
"eos_token_id": 128001,
|
10 |
+
"head_dim": 64,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 2048,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 8192,
|
15 |
+
"max_position_embeddings": 131072,
|
16 |
+
"mlp_bias": false,
|
17 |
+
"model_type": "llama",
|
18 |
+
"num_attention_heads": 32,
|
19 |
+
"num_hidden_layers": 16,
|
20 |
+
"num_key_value_heads": 8,
|
21 |
+
"pretraining_tp": 1,
|
22 |
+
"quantization_config": {
|
23 |
+
"include_input_output_embeddings": false,
|
24 |
+
"modules_to_not_convert": null,
|
25 |
+
"quant_method": "torchao",
|
26 |
+
"quant_type": {
|
27 |
+
"default": {
|
28 |
+
"_data": {
|
29 |
+
"activation_dtype": {
|
30 |
+
"_data": "float8_e4m3fn",
|
31 |
+
"_type": "torch.dtype"
|
32 |
+
},
|
33 |
+
"activation_value_lb": null,
|
34 |
+
"activation_value_ub": null,
|
35 |
+
"granularity": [
|
36 |
+
{
|
37 |
+
"_data": {},
|
38 |
+
"_type": "PerTensor",
|
39 |
+
"_version": 1
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"_data": {},
|
43 |
+
"_type": "PerTensor",
|
44 |
+
"_version": 1
|
45 |
+
}
|
46 |
+
],
|
47 |
+
"kernel_preference": {
|
48 |
+
"_data": "AUTO",
|
49 |
+
"_type": "KernelPreference"
|
50 |
+
},
|
51 |
+
"mm_config": {
|
52 |
+
"_data": {
|
53 |
+
"emulate": false,
|
54 |
+
"pad_inner_dim": false,
|
55 |
+
"use_fast_accum": true
|
56 |
+
},
|
57 |
+
"_type": "Float8MMConfig",
|
58 |
+
"_version": 1
|
59 |
+
},
|
60 |
+
"set_inductor_config": true,
|
61 |
+
"weight_dtype": {
|
62 |
+
"_data": "float8_e4m3fn",
|
63 |
+
"_type": "torch.dtype"
|
64 |
+
}
|
65 |
+
},
|
66 |
+
"_type": "Float8DynamicActivationFloat8WeightConfig",
|
67 |
+
"_version": 2
|
68 |
+
}
|
69 |
+
},
|
70 |
+
"quant_type_kwargs": {},
|
71 |
+
"untie_embedding_weights": false
|
72 |
+
},
|
73 |
+
"rms_norm_eps": 1e-05,
|
74 |
+
"rope_scaling": {
|
75 |
+
"factor": 32.0,
|
76 |
+
"high_freq_factor": 4.0,
|
77 |
+
"low_freq_factor": 1.0,
|
78 |
+
"original_max_position_embeddings": 8192,
|
79 |
+
"rope_type": "llama3"
|
80 |
+
},
|
81 |
+
"rope_theta": 500000.0,
|
82 |
+
"tie_word_embeddings": true,
|
83 |
+
"transformers_version": "4.56.1",
|
84 |
+
"use_cache": true,
|
85 |
+
"vocab_size": 128256
|
86 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 128000,
|
4 |
+
"do_sample": true,
|
5 |
+
"eos_token_id": 128001,
|
6 |
+
"temperature": 0.6,
|
7 |
+
"top_p": 0.9,
|
8 |
+
"transformers_version": "4.56.1"
|
9 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8489e5e493fab377a0acc1d75314a7da498686b486319c1e391f61fdde6099d
|
3 |
+
size 1498652395
|