__pycache__/labels_mapping.cpython-310.pyc ADDED
Binary file (3.2 kB). View file
 
config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForSequenceClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "dtype": "float32",
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8",
21
+ "9": "LABEL_9",
22
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "label2id": {
28
+ "LABEL_0": 0,
29
+ "LABEL_1": 1,
30
+ "LABEL_10": 10,
31
+ "LABEL_11": 11,
32
+ "LABEL_12": 12,
33
+ "LABEL_2": 2,
34
+ "LABEL_3": 3,
35
+ "LABEL_4": 4,
36
+ "LABEL_5": 5,
37
+ "LABEL_6": 6,
38
+ "LABEL_7": 7,
39
+ "LABEL_8": 8,
40
+ "LABEL_9": 9
41
+ },
42
+ "max_position_embeddings": 1024,
43
+ "model_type": "distilbert",
44
+ "n_heads": 12,
45
+ "n_layers": 6,
46
+ "pad_token_id": 0,
47
+ "qa_dropout": 0.1,
48
+ "seq_classif_dropout": 0.2,
49
+ "sinusoidal_pos_embds": false,
50
+ "tie_weights_": true,
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.53.2",
53
+ "vocab_size": 30522
54
+ }
labels_mapping.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INTENT_CATEGORIES_LIST = [
2
+ "academic_help",
3
+ "personal_writing_or_communication",
4
+ "writing_and_editing",
5
+ "creative_writing_and_role_play",
6
+ "general_guidance_and_info",
7
+ "programming_and_data_analysis",
8
+ "creative_ideation",
9
+ "purchasable_products",
10
+ "greetings_and_chitchat",
11
+ "relationships_and_personal_reflection",
12
+ "media_generation_or_analysis",
13
+ "other",
14
+ "other_obscene_or_illegal"
15
+ ]
16
+
17
+ INTENT_CATEGORIES_MAPPING = {
18
+ "A": {
19
+ "name": "academic_help",
20
+ "description": "Students getting help with homework, assignments, tests, or studying. Key indicators: multiple problems/questions in a row, test/quiz format (multiple choice, true/false, select correct answer), textbook-style questions, requests for step-by-step solutions or translations, academic subject matter (math, science, world languages, history, etc.) in a learning context, asking for explanations of academic concepts. Use this even if not explicitly stated as homework"
21
+ },
22
+ "B": {
23
+ "name": "personal_writing_or_communication",
24
+ "description": "Draft, edit, or improve personal/professional emails, messages, social media posts, letters, or workplace communications. The focus is on REAL correspondence to actual people (boss, colleague, client, friend)"
25
+ },
26
+ "C": {
27
+ "name": "writing_and_editing",
28
+ "description": "Create, edit, or improve nonfiction or instructional writing: essays, reports, arguments, articles, blog posts, or educational materials (lesson plans, assignments, summaries). If the focus is logic, structure, or conveying factual information, consider using this category."
29
+ },
30
+ "D": {
31
+ "name": "creative_writing_and_role_play",
32
+ "description": "Create poems, stories, fictional narratives, scripts, dialogues, or character-based roleplays. Look for tone, emotion, or imaginative context.If the writing involves characters, world-building, roleplay, sci-fi or fantasy, or other storytelling, consider using this category."
33
+ },
34
+ "E": {
35
+ "name": "general_guidance_and_info",
36
+ "description": "Provide step-by-step guidance, practical advice, or factual information about how or why something works. Combines procedural 'how-to' help with general knowledge or curiosity."
37
+ },
38
+ "F": {
39
+ "name": "programming_and_data_analysis",
40
+ "description": "Write or debug code or work with data/programming tools. Covers technical problem solving in computing, IT, or analytics contexts."
41
+ },
42
+ "G": {
43
+ "name": "creative_ideation",
44
+ "description": "Generate new ideas, brainstorm concepts, discover new topics or related resources, or create names/slogans."
45
+ },
46
+ "H": {
47
+ "name": "purchasable_products",
48
+ "description": "Ask about products, services, or prices."
49
+ },
50
+ "I": {
51
+ "name": "greetings_and_chitchat",
52
+ "description": "Small talk or casual chat, asking about the assistant's day."
53
+ },
54
+ "J": {
55
+ "name": "relationships_and_personal_reflection",
56
+ "description": "Discuss emotions, relationships, or introspection. Typically but not strictly non-sexual content."
57
+ },
58
+ "K": {
59
+ "name": "media_generation_or_analysis",
60
+ "description": "Create, edit, analyze, or retrieve visual/audio/media content (images, photos, videos)."
61
+ },
62
+ "L": {
63
+ "name": "other",
64
+ "description": "If there is no indication of what the user wants or if there is an intent that is not listed above; should be rare. e.g. suspicious requests, attempts to extract sensitive information."
65
+ },
66
+ "M": {
67
+ "name": "other_obscene_or_illegal",
68
+ "description": "If the user is making obscene or illegal requests (including violence, drugs, bigotry, hate speech, etc); should be rare."
69
+ }
70
+ }
pytorch_model_qint8.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f694b8711d28c1725c5e0ea2e691e93791d5a1c5ae72e82227f54b20cd45a8ce
3
+ size 140296810
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "DistilBertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff