Upload LlamaForCausalLM
Browse files- config.json +52 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "meta-llama/Llama-2-7b-hf",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 4096,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 11008,
|
13 |
+
"max_position_embeddings": 4096,
|
14 |
+
"model_type": "llama",
|
15 |
+
"num_attention_heads": 32,
|
16 |
+
"num_hidden_layers": 32,
|
17 |
+
"num_key_value_heads": 32,
|
18 |
+
"pretraining_tp": 1,
|
19 |
+
"quantization_config": {
|
20 |
+
"batch_size": 1,
|
21 |
+
"bits": 4,
|
22 |
+
"block_name_to_quantize": "model.layers",
|
23 |
+
"cache_block_outputs": true,
|
24 |
+
"damp_percent": 0.1,
|
25 |
+
"dataset": "c4",
|
26 |
+
"desc_act": false,
|
27 |
+
"exllama_config": {
|
28 |
+
"version": 1
|
29 |
+
},
|
30 |
+
"group_size": -1,
|
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-05,
|
45 |
+
"rope_scaling": null,
|
46 |
+
"rope_theta": 10000.0,
|
47 |
+
"tie_word_embeddings": false,
|
48 |
+
"torch_dtype": "float16",
|
49 |
+
"transformers_version": "4.35.2",
|
50 |
+
"use_cache": true,
|
51 |
+
"vocab_size": 32000
|
52 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 4096,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"temperature": 0.6,
|
8 |
+
"top_p": 0.9,
|
9 |
+
"transformers_version": "4.35.2"
|
10 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3e6479ccda7848d60b9e20d6a4c3d88abb635b7813502ed196f562c41d73c68
|
3 |
+
size 3773629352
|