Upload BertForSequenceClassification

#4
Files changed (2) hide show
  1. config.json +17 -35
  2. pytorch_model.bin +3 -0
config.json CHANGED
@@ -1,44 +1,26 @@
1
  {
2
- "_name_or_path": "lhoestq/demo1",
3
  "architectures": [
4
- "GPTNeoXForCausalLM"
5
  ],
6
- "bos_token_id": 0,
7
- "classifier_dropout": 0.1,
8
- "custom_pipelines": {
9
- "text-generation": {
10
- "impl": "instruct_pipeline.InstructionTextGenerationPipeline",
11
- "pt": "AutoModelForCausalLM",
12
- "tf": "TFAutoModelForCausalLM"
13
- }
14
- },
15
- "eos_token_id": 0,
16
  "hidden_act": "gelu",
17
- "hidden_size": 5120,
 
18
  "initializer_range": 0.02,
19
- "intermediate_size": 20480,
20
- "layer_norm_eps": 1e-05,
21
- "max_position_embeddings": 2048,
22
- "model_type": "gpt_neox",
23
- "num_attention_heads": 40,
24
- "num_hidden_layers": 36,
25
- "quantization_config": {
26
- "bnb_4bit_compute_dtype": "float32",
27
- "bnb_4bit_quant_type": "fp4",
28
- "bnb_4bit_use_double_quant": false,
29
- "llm_int8_enable_fp32_cpu_offload": false,
30
- "llm_int8_has_fp16_weight": false,
31
- "llm_int8_skip_modules": null,
32
- "llm_int8_threshold": 6.0,
33
- "load_in_4bit": false,
34
- "load_in_8bit": true
35
- },
36
- "rotary_emb_base": 10000,
37
- "rotary_pct": 0.25,
38
- "tie_word_embeddings": false,
39
  "torch_dtype": "float32",
40
  "transformers_version": "4.30.0.dev0",
 
41
  "use_cache": true,
42
- "use_parallel_residual": true,
43
- "vocab_size": 50280
44
  }
 
1
  {
2
+ "_name_or_path": "bert-base-uncased",
3
  "architectures": [
4
+ "BertForSequenceClassification"
5
  ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
 
 
 
 
 
 
 
9
  "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
  "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
 
 
 
 
 
 
 
 
 
 
 
 
21
  "torch_dtype": "float32",
22
  "transformers_version": "4.30.0.dev0",
23
+ "type_vocab_size": 2,
24
  "use_cache": true,
25
+ "vocab_size": 30522
 
26
  }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac501c1d0fd8b4ec8d5b6e4f498e30801bc3382bd2985fbe12c5dcfed8619d35
3
+ size 438005109