Upload LlamaForSequenceClassification
Browse files- config.json +35 -31
- model.safetensors +2 -2
config.json
CHANGED
@@ -1,46 +1,50 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
-
"activation_function": "gelu_new",
|
4 |
"architectures": [
|
5 |
-
"
|
6 |
],
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"eos_token_id":
|
|
|
|
|
11 |
"id2label": {
|
12 |
"0": "LABEL_0"
|
13 |
},
|
14 |
"initializer_range": 0.02,
|
|
|
15 |
"label2id": {
|
16 |
"LABEL_0": 0
|
17 |
},
|
18 |
-
"
|
19 |
-
"model_type": "
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
"
|
38 |
-
|
39 |
-
"max_length": 50
|
40 |
-
}
|
41 |
},
|
|
|
|
|
|
|
|
|
42 |
"torch_dtype": "float32",
|
43 |
"transformers_version": "4.40.1",
|
44 |
"use_cache": true,
|
45 |
-
"vocab_size":
|
46 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "NousResearch/Llama-2-7b-hf",
|
|
|
3 |
"architectures": [
|
4 |
+
"LlamaForSequenceClassification"
|
5 |
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 4096,
|
12 |
"id2label": {
|
13 |
"0": "LABEL_0"
|
14 |
},
|
15 |
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 11008,
|
17 |
"label2id": {
|
18 |
"LABEL_0": 0
|
19 |
},
|
20 |
+
"max_position_embeddings": 4096,
|
21 |
+
"model_type": "llama",
|
22 |
+
"num_attention_heads": 32,
|
23 |
+
"num_hidden_layers": 32,
|
24 |
+
"num_key_value_heads": 32,
|
25 |
+
"pad_token_id": 0,
|
26 |
+
"pretraining_tp": 1,
|
27 |
+
"quantization_config": {
|
28 |
+
"_load_in_4bit": true,
|
29 |
+
"_load_in_8bit": false,
|
30 |
+
"bnb_4bit_compute_dtype": "float16",
|
31 |
+
"bnb_4bit_quant_storage": "uint8",
|
32 |
+
"bnb_4bit_quant_type": "nf4",
|
33 |
+
"bnb_4bit_use_double_quant": true,
|
34 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
35 |
+
"llm_int8_has_fp16_weight": false,
|
36 |
+
"llm_int8_skip_modules": null,
|
37 |
+
"llm_int8_threshold": 6.0,
|
38 |
+
"load_in_4bit": true,
|
39 |
+
"load_in_8bit": false,
|
40 |
+
"quant_method": "bitsandbytes"
|
|
|
|
|
41 |
},
|
42 |
+
"rms_norm_eps": 1e-05,
|
43 |
+
"rope_scaling": null,
|
44 |
+
"rope_theta": 10000.0,
|
45 |
+
"tie_word_embeddings": false,
|
46 |
"torch_dtype": "float32",
|
47 |
"transformers_version": "4.40.1",
|
48 |
"use_cache": true,
|
49 |
+
"vocab_size": 32000
|
50 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e28f622eb47be16fe40b50de0335884f54fdc2b1d7b1eebf0f397d01e321b83
|
3 |
+
size 3883408610
|