de-slothbug commited on
Commit
acaeff9
·
verified ·
1 Parent(s): 39a215c

Upload MPE v4.0 Model, Tokenizer, Categories, and ONNX export

Browse files
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ language: en
4
+ tags:
5
+ - torrent
6
+ - usenet
7
+ - metadata-extraction
8
+ - title-extraction
9
+ - span-prediction
10
+ - onnx
11
+ license: mit
12
+ ---
13
+
14
+ # MPE Engine v4.0 (Metadata Probability Extraction Engine)
15
+
16
+ This model is a token classification and span extraction transformer designed to parse release names from Torrents and Usenet.
17
+ It uses an **Atomic Normalization Layer** to compress relational metadata (like `Season 1-5 Complete` or `S01E02-E04`) into single, unbreakable tokens before passing them to a MiniLM encoder.
18
+
19
+ ## Architecture
20
+ - **Backbone:** sentence-transformers/all-MiniLM-L6-v2
21
+ - **Head 1 (Binary):** Is the token metadata? (BCE Loss)
22
+ - **Head 2 (Category):** What type of metadata? (Cross-Entropy Loss)
23
+ - **Head 3 & 4 (Span):** Start/End position of the Title (Cross-Entropy Loss)
24
+
25
+ ## Capabilities
26
+ - Extracts titles cleanly from Western, Anime, K-Drama, and Indian OTT release styles.
27
+ - Resists breaking on ambiguous titles like `1923`, `It`, `DV`, `From`.
28
+ - Supports exhaustive ISO languages (3-letter codes like `tam`, `kor`).
29
+ - Handles complete pack ranges, daily episodes, and multi-episode ranges.
30
+
31
+ ## Files Included
32
+ - `mpe_model.onnx`: The production-ready ONNX export for <10ms CPU inference.
33
+ - `pytorch_model.bin`: The native PyTorch weights.
34
+ - `tokenizer/`: The WordPiece tokenizer vocabulary.
35
+ - `categories.json`: The hierarchical category mapping.
categories.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "TITLE": 0,
3
+ "UNKNOWN": 1,
4
+ "SEASON": 2,
5
+ "SEASON_RANGE": 3,
6
+ "EPISODE_NUMBER": 4,
7
+ "EPISODE_RANGE": 5,
8
+ "COMPLETE_PACK": 6,
9
+ "PART_VOLUME": 7,
10
+ "YEAR": 8,
11
+ "RESOLUTION": 9,
12
+ "SOURCE": 10,
13
+ "VIDEO_CODEC": 11,
14
+ "AUDIO_CODEC": 12,
15
+ "AUDIO_CHANNELS": 13,
16
+ "HDR": 14,
17
+ "RELEASE_GROUP": 15,
18
+ "EDITION": 16,
19
+ "BIT_DEPTH": 17,
20
+ "FRAMERATE": 18,
21
+ "LANGUAGE": 19,
22
+ "ANIME_TERM": 20,
23
+ "VOLUME": 21,
24
+ "COUR": 22,
25
+ "FINAL_SEASON": 23,
26
+ "WEBSITE": 24
27
+ }
mpe_model_fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a69d4854e3a1e22b8c5d003af09ede4fa4347ac84961efaf49d0504d6fb1803c
3
+ size 90429299
mpe_model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47185beff8d8405af5c9fe77569ba80f23a810f76e0aa97fe85c114647b7444d
3
+ size 22895985
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a734fc1ce84617b547878003841e419e7ea0acdbfec9de90455120e66764084e
3
+ size 90942367
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": true,
6
+ "is_local": false,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "strip_accents": null,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }