UnbeT commited on
Commit
0c6a90f
·
verified ·
1 Parent(s): cbd5e25

Upload LlamaForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +35 -31
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,46 +1,50 @@
1
  {
2
- "_name_or_path": "openai-community/gpt2",
3
- "activation_function": "gelu_new",
4
  "architectures": [
5
- "GPT2ForSequenceClassification"
6
  ],
7
- "attn_pdrop": 0.1,
8
- "bos_token_id": 50256,
9
- "embd_pdrop": 0.1,
10
- "eos_token_id": 50256,
 
 
11
  "id2label": {
12
  "0": "LABEL_0"
13
  },
14
  "initializer_range": 0.02,
 
15
  "label2id": {
16
  "LABEL_0": 0
17
  },
18
- "layer_norm_epsilon": 1e-05,
19
- "model_type": "gpt2",
20
- "n_ctx": 1024,
21
- "n_embd": 768,
22
- "n_head": 12,
23
- "n_inner": null,
24
- "n_layer": 12,
25
- "n_positions": 1024,
26
- "pad_token_id": 50256,
27
- "reorder_and_upcast_attn": false,
28
- "resid_pdrop": 0.1,
29
- "scale_attn_by_inverse_layer_idx": false,
30
- "scale_attn_weights": true,
31
- "summary_activation": null,
32
- "summary_first_dropout": 0.1,
33
- "summary_proj_to_labels": true,
34
- "summary_type": "cls_index",
35
- "summary_use_proj": true,
36
- "task_specific_params": {
37
- "text-generation": {
38
- "do_sample": true,
39
- "max_length": 50
40
- }
41
  },
 
 
 
 
42
  "torch_dtype": "float32",
43
  "transformers_version": "4.40.1",
44
  "use_cache": true,
45
- "vocab_size": 50257
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:d94de82e14690fb89ab8450d55ce11f7ab56a032060c4e203f4d668cdce8639c
3
- size 498963352
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e28f622eb47be16fe40b50de0335884f54fdc2b1d7b1eebf0f397d01e321b83
3
+ size 3883408610