not-lain commited on
Commit
5445fc2
·
1 Parent(s): 9df9490

commit files to HF hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. README.md +5 -0
  3. config.json +2 -2
  4. model.safetensors +3 -0
  5. tokenizer_config.json +43 -2
.gitattributes CHANGED
@@ -25,3 +25,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ model.safetensors filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # how to load the pipeline
2
+ ```python
3
+ from transformers import pipeline
4
+ pipe = pipeline(model="lysandre/test-dynamic-pipeline",trust_remote_code=True)
5
+ ```
config.json CHANGED
@@ -15,7 +15,7 @@
15
  ]
16
  }
17
  },
18
- "impl": "__main__.PairClassificationPipeline",
19
  "pt": [
20
  "AutoModelForSequenceClassification"
21
  ],
@@ -37,7 +37,7 @@
37
  "pad_token_id": 0,
38
  "position_embedding_type": "absolute",
39
  "torch_dtype": "float32",
40
- "transformers_version": "4.21.0.dev0",
41
  "type_vocab_size": 16,
42
  "use_cache": true,
43
  "vocab_size": 1124
 
15
  ]
16
  }
17
  },
18
+ "impl": "custom_pipeline.PairClassificationPipeline",
19
  "pt": [
20
  "AutoModelForSequenceClassification"
21
  ],
 
37
  "pad_token_id": 0,
38
  "position_embedding_type": "absolute",
39
  "torch_dtype": "float32",
40
+ "transformers_version": "4.35.2",
41
  "type_vocab_size": 16,
42
  "use_cache": true,
43
  "vocab_size": 1124
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3e35d8730d325faa348fd37538d9066b62e602c5b765e77aebafd493f91b72b
3
+ size 361660
tokenizer_config.json CHANGED
@@ -1,12 +1,53 @@
1
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  "cls_token": "[CLS]",
3
  "do_lower_case": true,
4
  "mask_token": "[MASK]",
5
  "model_max_length": 512,
6
- "name_or_path": "hf-internal-testing/tiny-random-bert",
7
  "pad_token": "[PAD]",
8
  "sep_token": "[SEP]",
9
- "special_tokens_map_file": null,
10
  "strip_accents": null,
11
  "tokenize_chinese_chars": true,
12
  "tokenizer_class": "BertTokenizer",
 
1
  {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
46
  "do_lower_case": true,
47
  "mask_token": "[MASK]",
48
  "model_max_length": 512,
 
49
  "pad_token": "[PAD]",
50
  "sep_token": "[SEP]",
 
51
  "strip_accents": null,
52
  "tokenize_chinese_chars": true,
53
  "tokenizer_class": "BertTokenizer",