Upload folder using huggingface_hub
Browse files- config.json +52 -0
- generation_config.json +7 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- model.safetensors.index.json +84 -0
- quantize_config.json +8 -0
- tokenizer.model +3 -0
- tokenizer_config.json +34 -0
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/workspace/process/llama-68m",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 768,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 3072,
|
13 |
+
"max_position_embeddings": 2048,
|
14 |
+
"model_type": "llama",
|
15 |
+
"num_attention_heads": 12,
|
16 |
+
"num_hidden_layers": 2,
|
17 |
+
"num_key_value_heads": 12,
|
18 |
+
"pad_token_id": 1,
|
19 |
+
"pretraining_tp": 1,
|
20 |
+
"quantization_config": {
|
21 |
+
"batch_size": 1,
|
22 |
+
"bits": 4,
|
23 |
+
"block_name_to_quantize": "model.layers",
|
24 |
+
"cache_block_outputs": true,
|
25 |
+
"damp_percent": 0.1,
|
26 |
+
"desc_act": true,
|
27 |
+
"exllama_config": {
|
28 |
+
"version": 1
|
29 |
+
},
|
30 |
+
"group_size": 128,
|
31 |
+
"max_input_length": null,
|
32 |
+
"model_seqlen": 4096,
|
33 |
+
"module_name_preceding_first_block": [
|
34 |
+
"model.embed_tokens"
|
35 |
+
],
|
36 |
+
"pad_token_id": null,
|
37 |
+
"quant_method": "gptq",
|
38 |
+
"sym": true,
|
39 |
+
"tokenizer": null,
|
40 |
+
"true_sequential": true,
|
41 |
+
"use_cuda_fp16": true,
|
42 |
+
"use_exllama": false
|
43 |
+
},
|
44 |
+
"rms_norm_eps": 1e-06,
|
45 |
+
"rope_scaling": null,
|
46 |
+
"rope_theta": 10000.0,
|
47 |
+
"tie_word_embeddings": false,
|
48 |
+
"torch_dtype": "float16",
|
49 |
+
"transformers_version": "4.35.0",
|
50 |
+
"use_cache": true,
|
51 |
+
"vocab_size": 32000
|
52 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 1,
|
6 |
+
"transformers_version": "4.35.0"
|
7 |
+
}
|
model-00001-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:603971352a2aed704e6ece67d273a8731500209f4edd7601645028d66431c1fd
|
3 |
+
size 49152136
|
model-00002-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:460e1e9fd8efae4d546ea490292a8260d1e465568336aabb8bdc3f9fce902ba7
|
3 |
+
size 9922680
|
model-00003-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:480a097c63ac151fabbeaa0a2970c2ac012e1d4afb723a9356c56ddb93a163e8
|
3 |
+
size 49152128
|
model.safetensors.index.json
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"metadata": {
|
3 |
+
"total_size": 108218880
|
4 |
+
},
|
5 |
+
"weight_map": {
|
6 |
+
"lm_head.weight": "model-00003-of-00003.safetensors",
|
7 |
+
"model.embed_tokens.weight": "model-00001-of-00003.safetensors",
|
8 |
+
"model.layers.0.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
9 |
+
"model.layers.0.mlp.down_proj.bias": "model-00002-of-00003.safetensors",
|
10 |
+
"model.layers.0.mlp.down_proj.g_idx": "model-00002-of-00003.safetensors",
|
11 |
+
"model.layers.0.mlp.down_proj.qweight": "model-00002-of-00003.safetensors",
|
12 |
+
"model.layers.0.mlp.down_proj.qzeros": "model-00002-of-00003.safetensors",
|
13 |
+
"model.layers.0.mlp.down_proj.scales": "model-00002-of-00003.safetensors",
|
14 |
+
"model.layers.0.mlp.gate_proj.bias": "model-00002-of-00003.safetensors",
|
15 |
+
"model.layers.0.mlp.gate_proj.g_idx": "model-00002-of-00003.safetensors",
|
16 |
+
"model.layers.0.mlp.gate_proj.qweight": "model-00002-of-00003.safetensors",
|
17 |
+
"model.layers.0.mlp.gate_proj.qzeros": "model-00002-of-00003.safetensors",
|
18 |
+
"model.layers.0.mlp.gate_proj.scales": "model-00002-of-00003.safetensors",
|
19 |
+
"model.layers.0.mlp.up_proj.bias": "model-00002-of-00003.safetensors",
|
20 |
+
"model.layers.0.mlp.up_proj.g_idx": "model-00002-of-00003.safetensors",
|
21 |
+
"model.layers.0.mlp.up_proj.qweight": "model-00002-of-00003.safetensors",
|
22 |
+
"model.layers.0.mlp.up_proj.qzeros": "model-00002-of-00003.safetensors",
|
23 |
+
"model.layers.0.mlp.up_proj.scales": "model-00002-of-00003.safetensors",
|
24 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
25 |
+
"model.layers.0.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
26 |
+
"model.layers.0.self_attn.k_proj.g_idx": "model-00002-of-00003.safetensors",
|
27 |
+
"model.layers.0.self_attn.k_proj.qweight": "model-00002-of-00003.safetensors",
|
28 |
+
"model.layers.0.self_attn.k_proj.qzeros": "model-00002-of-00003.safetensors",
|
29 |
+
"model.layers.0.self_attn.k_proj.scales": "model-00002-of-00003.safetensors",
|
30 |
+
"model.layers.0.self_attn.o_proj.bias": "model-00002-of-00003.safetensors",
|
31 |
+
"model.layers.0.self_attn.o_proj.g_idx": "model-00002-of-00003.safetensors",
|
32 |
+
"model.layers.0.self_attn.o_proj.qweight": "model-00002-of-00003.safetensors",
|
33 |
+
"model.layers.0.self_attn.o_proj.qzeros": "model-00002-of-00003.safetensors",
|
34 |
+
"model.layers.0.self_attn.o_proj.scales": "model-00002-of-00003.safetensors",
|
35 |
+
"model.layers.0.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
36 |
+
"model.layers.0.self_attn.q_proj.g_idx": "model-00002-of-00003.safetensors",
|
37 |
+
"model.layers.0.self_attn.q_proj.qweight": "model-00002-of-00003.safetensors",
|
38 |
+
"model.layers.0.self_attn.q_proj.qzeros": "model-00002-of-00003.safetensors",
|
39 |
+
"model.layers.0.self_attn.q_proj.scales": "model-00002-of-00003.safetensors",
|
40 |
+
"model.layers.0.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
41 |
+
"model.layers.0.self_attn.v_proj.g_idx": "model-00002-of-00003.safetensors",
|
42 |
+
"model.layers.0.self_attn.v_proj.qweight": "model-00002-of-00003.safetensors",
|
43 |
+
"model.layers.0.self_attn.v_proj.qzeros": "model-00002-of-00003.safetensors",
|
44 |
+
"model.layers.0.self_attn.v_proj.scales": "model-00002-of-00003.safetensors",
|
45 |
+
"model.layers.1.input_layernorm.weight": "model-00002-of-00003.safetensors",
|
46 |
+
"model.layers.1.mlp.down_proj.bias": "model-00002-of-00003.safetensors",
|
47 |
+
"model.layers.1.mlp.down_proj.g_idx": "model-00002-of-00003.safetensors",
|
48 |
+
"model.layers.1.mlp.down_proj.qweight": "model-00002-of-00003.safetensors",
|
49 |
+
"model.layers.1.mlp.down_proj.qzeros": "model-00002-of-00003.safetensors",
|
50 |
+
"model.layers.1.mlp.down_proj.scales": "model-00002-of-00003.safetensors",
|
51 |
+
"model.layers.1.mlp.gate_proj.bias": "model-00002-of-00003.safetensors",
|
52 |
+
"model.layers.1.mlp.gate_proj.g_idx": "model-00002-of-00003.safetensors",
|
53 |
+
"model.layers.1.mlp.gate_proj.qweight": "model-00002-of-00003.safetensors",
|
54 |
+
"model.layers.1.mlp.gate_proj.qzeros": "model-00002-of-00003.safetensors",
|
55 |
+
"model.layers.1.mlp.gate_proj.scales": "model-00002-of-00003.safetensors",
|
56 |
+
"model.layers.1.mlp.up_proj.bias": "model-00002-of-00003.safetensors",
|
57 |
+
"model.layers.1.mlp.up_proj.g_idx": "model-00002-of-00003.safetensors",
|
58 |
+
"model.layers.1.mlp.up_proj.qweight": "model-00002-of-00003.safetensors",
|
59 |
+
"model.layers.1.mlp.up_proj.qzeros": "model-00002-of-00003.safetensors",
|
60 |
+
"model.layers.1.mlp.up_proj.scales": "model-00002-of-00003.safetensors",
|
61 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00002-of-00003.safetensors",
|
62 |
+
"model.layers.1.self_attn.k_proj.bias": "model-00002-of-00003.safetensors",
|
63 |
+
"model.layers.1.self_attn.k_proj.g_idx": "model-00002-of-00003.safetensors",
|
64 |
+
"model.layers.1.self_attn.k_proj.qweight": "model-00002-of-00003.safetensors",
|
65 |
+
"model.layers.1.self_attn.k_proj.qzeros": "model-00002-of-00003.safetensors",
|
66 |
+
"model.layers.1.self_attn.k_proj.scales": "model-00002-of-00003.safetensors",
|
67 |
+
"model.layers.1.self_attn.o_proj.bias": "model-00002-of-00003.safetensors",
|
68 |
+
"model.layers.1.self_attn.o_proj.g_idx": "model-00002-of-00003.safetensors",
|
69 |
+
"model.layers.1.self_attn.o_proj.qweight": "model-00002-of-00003.safetensors",
|
70 |
+
"model.layers.1.self_attn.o_proj.qzeros": "model-00002-of-00003.safetensors",
|
71 |
+
"model.layers.1.self_attn.o_proj.scales": "model-00002-of-00003.safetensors",
|
72 |
+
"model.layers.1.self_attn.q_proj.bias": "model-00002-of-00003.safetensors",
|
73 |
+
"model.layers.1.self_attn.q_proj.g_idx": "model-00002-of-00003.safetensors",
|
74 |
+
"model.layers.1.self_attn.q_proj.qweight": "model-00002-of-00003.safetensors",
|
75 |
+
"model.layers.1.self_attn.q_proj.qzeros": "model-00002-of-00003.safetensors",
|
76 |
+
"model.layers.1.self_attn.q_proj.scales": "model-00002-of-00003.safetensors",
|
77 |
+
"model.layers.1.self_attn.v_proj.bias": "model-00002-of-00003.safetensors",
|
78 |
+
"model.layers.1.self_attn.v_proj.g_idx": "model-00002-of-00003.safetensors",
|
79 |
+
"model.layers.1.self_attn.v_proj.qweight": "model-00002-of-00003.safetensors",
|
80 |
+
"model.layers.1.self_attn.v_proj.qzeros": "model-00002-of-00003.safetensors",
|
81 |
+
"model.layers.1.self_attn.v_proj.scales": "model-00002-of-00003.safetensors",
|
82 |
+
"model.norm.weight": "model-00002-of-00003.safetensors"
|
83 |
+
}
|
84 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bits": 4,
|
3 |
+
"group_size": 128,
|
4 |
+
"damp_percent": 0.01,
|
5 |
+
"desc_act": true,
|
6 |
+
"sym": true,
|
7 |
+
"true_sequential": true
|
8 |
+
}
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "<s>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"clean_up_tokenization_spaces": false,
|
13 |
+
"eos_token": {
|
14 |
+
"__type": "AddedToken",
|
15 |
+
"content": "</s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": true,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
},
|
21 |
+
"model_max_length": 1000000000000000019884624838656,
|
22 |
+
"pad_token": null,
|
23 |
+
"sp_model_kwargs": {},
|
24 |
+
"tokenizer_class": "LlamaTokenizer",
|
25 |
+
"unk_token": {
|
26 |
+
"__type": "AddedToken",
|
27 |
+
"content": "<unk>",
|
28 |
+
"lstrip": false,
|
29 |
+
"normalized": true,
|
30 |
+
"rstrip": false,
|
31 |
+
"single_word": false
|
32 |
+
},
|
33 |
+
"use_fast": true
|
34 |
+
}
|