igorithm commited on
Commit
6ab4d6a
Β·
1 Parent(s): 2048275

Move model files to root

Browse files
.gitattributes CHANGED
@@ -33,4 +33,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
- trained_model/model.safetensors filter=lfs diff=lfs merge=lfs -text
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
trained_model/model.safetensors β†’ model.safetensors RENAMED
File without changes
register_pipeline.py CHANGED
@@ -4,7 +4,7 @@ from transformers.pipelines import PIPELINE_REGISTRY
4
  from bert_paper_classifier import SciBertPaperClassifierPipeline
5
 
6
  PIPELINE_REGISTRY.register_pipeline(
7
- "text-classification",
8
  pipeline_class=SciBertPaperClassifierPipeline,
9
  pt_model=AutoModelForSequenceClassification,
10
  )
 
4
  from bert_paper_classifier import SciBertPaperClassifierPipeline
5
 
6
  PIPELINE_REGISTRY.register_pipeline(
7
+ "paper-classification",
8
  pipeline_class=SciBertPaperClassifierPipeline,
9
  pt_model=AutoModelForSequenceClassification,
10
  )
trained_model/special_tokens_map.json β†’ special_tokens_map.json RENAMED
File without changes
trained_model/tokenizer.json β†’ tokenizer.json RENAMED
File without changes
trained_model/tokenizer_config.json β†’ tokenizer_config.json RENAMED
File without changes
trained_model/config.json DELETED
@@ -1,103 +0,0 @@
1
- {
2
- "architectures": [
3
- "BertForSequenceClassification"
4
- ],
5
- "attention_probs_dropout_prob": 0.1,
6
- "classifier_dropout": null,
7
- "hidden_act": "gelu",
8
- "hidden_dropout_prob": 0.1,
9
- "hidden_size": 768,
10
- "id2label": {
11
- "0": "acc-phys",
12
- "1": "adap-org",
13
- "2": "alg-geom",
14
- "3": "ao-sci",
15
- "4": "astro-ph",
16
- "5": "atom-ph",
17
- "6": "chao-dyn",
18
- "7": "chem-ph",
19
- "8": "cmp-lg",
20
- "9": "comp-gas",
21
- "10": "cond-mat",
22
- "11": "cs",
23
- "12": "dg-ga",
24
- "13": "econ",
25
- "14": "eess",
26
- "15": "funct-an",
27
- "16": "gr-qc",
28
- "17": "hep-ex",
29
- "18": "hep-lat",
30
- "19": "hep-ph",
31
- "20": "hep-th",
32
- "21": "math",
33
- "22": "math-ph",
34
- "23": "mtrl-th",
35
- "24": "nlin",
36
- "25": "nucl-ex",
37
- "26": "nucl-th",
38
- "27": "patt-sol",
39
- "28": "physics",
40
- "29": "plasm-ph",
41
- "30": "q-alg",
42
- "31": "q-bio",
43
- "32": "q-fin",
44
- "33": "quant-ph",
45
- "34": "solv-int",
46
- "35": "stat",
47
- "36": "supr-con"
48
- },
49
- "initializer_range": 0.02,
50
- "intermediate_size": 3072,
51
- "label2id": {
52
- "acc-phys": 0,
53
- "adap-org": 1,
54
- "alg-geom": 2,
55
- "ao-sci": 3,
56
- "astro-ph": 4,
57
- "atom-ph": 5,
58
- "chao-dyn": 6,
59
- "chem-ph": 7,
60
- "cmp-lg": 8,
61
- "comp-gas": 9,
62
- "cond-mat": 10,
63
- "cs": 11,
64
- "dg-ga": 12,
65
- "econ": 13,
66
- "eess": 14,
67
- "funct-an": 15,
68
- "gr-qc": 16,
69
- "hep-ex": 17,
70
- "hep-lat": 18,
71
- "hep-ph": 19,
72
- "hep-th": 20,
73
- "math": 21,
74
- "math-ph": 22,
75
- "mtrl-th": 23,
76
- "nlin": 24,
77
- "nucl-ex": 25,
78
- "nucl-th": 26,
79
- "patt-sol": 27,
80
- "physics": 28,
81
- "plasm-ph": 29,
82
- "q-alg": 30,
83
- "q-bio": 31,
84
- "q-fin": 32,
85
- "quant-ph": 33,
86
- "solv-int": 34,
87
- "stat": 35,
88
- "supr-con": 36
89
- },
90
- "layer_norm_eps": 1e-12,
91
- "max_position_embeddings": 512,
92
- "model_type": "bert",
93
- "num_attention_heads": 12,
94
- "num_hidden_layers": 12,
95
- "pad_token_id": 0,
96
- "position_embedding_type": "absolute",
97
- "problem_type": "single_label_classification",
98
- "torch_dtype": "float32",
99
- "transformers_version": "4.51.0",
100
- "type_vocab_size": 2,
101
- "use_cache": true,
102
- "vocab_size": 31090
103
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trained_model/vocab.txt β†’ vocab.txt RENAMED
File without changes