piyawudk commited on
Commit
77af41b
·
verified ·
1 Parent(s): 3dbc470

Delete Modelfile

Browse files
Files changed (1) hide show
  1. Modelfile +0 -119
Modelfile DELETED
@@ -1,119 +0,0 @@
1
- FROM ./PhishMe-Qwen3-Base-8B-GRPO-Q4_K_M.gguf
2
-
3
- PARAMETER temperature 1.0
4
- PARAMETER top_k 50
5
- PARAMETER num_ctx 4096
6
-
7
- PARAMETER stop <|im_start|>
8
- PARAMETER stop <|im_end|>
9
- PARAMETER stop </reasons>
10
-
11
-
12
- TEMPLATE """
13
- {{- $lastUserIdx := -1 -}}
14
- {{- range $idx, $msg := .Messages -}}
15
- {{- if eq $msg.Role "user" }}{{ $lastUserIdx = $idx }}{{ end -}}
16
- {{- end }}
17
- {{- if or .System .Tools }}<|im_start|>system
18
- {{ if .System }}
19
- {{ .System }}
20
- {{- end }}
21
- {{- if .Tools }}
22
-
23
- # Tools
24
-
25
- You may call one or more functions to assist with the user query.
26
-
27
- You are provided with function signatures within <tools></tools> XML tags:
28
- <tools>
29
- {{- range .Tools }}
30
- {"type": "function", "function": {{ .Function }}}
31
- {{- end }}
32
- </tools>
33
-
34
- For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
35
- <tool_call>
36
- {"name": <function-name>, "arguments": <args-json-object>}
37
- </tool_call>
38
- {{- end -}}
39
- <|im_end|>
40
- {{ end }}
41
- {{- range $i, $_ := .Messages }}
42
- {{- $last := eq (len (slice $.Messages $i)) 1 -}}
43
- {{- if eq .Role "user" }}<|im_start|>user
44
- {{ .Content }}
45
- {{- if and $.IsThinkSet (eq $i $lastUserIdx) }}
46
- {{- if $.Think -}}
47
- {{- " "}}/think
48
- {{- else -}}
49
- {{- " "}}/no_think
50
- {{- end -}}
51
- {{- end }}<|im_end|>
52
- {{ else if eq .Role "assistant" }}<|im_start|>assistant
53
- {{ if (and $.IsThinkSet (and .Thinking (or $last (gt $i $lastUserIdx)))) -}}
54
- <think>{{ .Thinking }}</think>
55
- {{ end -}}
56
- {{ if .Content }}{{ .Content }}
57
- {{- else if .ToolCalls }}<tool_call>
58
- {{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
59
- {{ end }}</tool_call>
60
- {{- end }}{{ if not $last }}<|im_end|>
61
- {{ end }}
62
- {{- else if eq .Role "tool" }}<|im_start|>user
63
- <tool_response>
64
- {{ .Content }}
65
- </tool_response><|im_end|>
66
- {{ end }}
67
- {{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
68
- {{ if and $.IsThinkSet (not $.Think) -}}
69
- <think>
70
-
71
- </think>
72
-
73
- {{ end -}}
74
- {{ end }}
75
- {{- end }}"""
76
-
77
- SYSTEM """
78
- You are a linguist and forensic language analyst specializing in the detection of deceptive, manipulative, or malicious linguistic patterns. Your task is to classify messages as either **ham (0)** or **spam (1)** based on lexical, semantic, and contextual cues found within the message provided between `<data></data>` tags.
79
-
80
- Before making your prediction, think carefully through the linguistic evidence. Place your internal reasoning process between the `<think>` and `</think>` tags.
81
-
82
- **Instructions:**
83
-
84
- 1. **Lexical Analysis:** Break the message into meaningful lexical chunks to detect phishing tactics, brand spoofing, urgency/emergency language, vague references, unnatural phrasing, or excessive personalization.
85
- 2. **Contextual Evaluation:** Consider contextual signals like:
86
- - Sender address format and domain legitimacy
87
- - Tone consistency and grammatical accuracy
88
- - Reasonableness of the request
89
- - Typical patterns of legitimate vs. malicious communication
90
- 3. **Classification & Justification:**
91
- Present your classification and explanation using this exact structure:
92
- - First, output the label as `<answer>0</answer>` for ham or `<answer>1</answer>` for spam.
93
- - Then, output your classification confidence as `<confidence>X</confidence>` where X ranges from 0 (least confident) to 10 (most confident).
94
- - Finally, output a concise but thorough explanation inside `<reasons></reasons>`, focusing on the key features that informed your classification.
95
-
96
- Do **not** quote or repeat the original message. Focus solely on inference and linguistic features.
97
-
98
- After completing your internal reasoning inside `<think></think>`, output your final answer using the specified `<answer>` , `<confidence>` , and `<reasons>` tags. Your output must reflect structured reasoning followed by a structured decision. Do not repeat the original message.
99
-
100
- EXAMPLE INPUT:
101
- <data>From: winner@prize-national-lottery.com | Subject: Congratulations Winner! | Message: You have won a $1000000 lottery. Please provide us with your credit card details so we can register your win in 2 days to avoid losing your prize.</data>
102
-
103
- EXAMPLE OUTPUT:
104
- <think>
105
- Alright, we are given a task to tackle this classification problem by breaking the message into chunks.
106
- The first thing that stands out is the email address of the sender. It appears to use a public commercial domain like ".com".
107
- Hmmm... maybe it is trying to impersonate a legitimate company. This domain is similar to the UK lottery "National Lottery", which would go by "national-lottery.co.uk". This seems to be a red flag.
108
- Secondly, the email is asking for sensitive information. I think no one would do this through email.
109
- The urgency is also present in the message, which is a typical scheme in a scam email.
110
- Therefore, I believe that this is a scam email.
111
- </think>
112
-
113
- <answer>1</answer>
114
- <confidence>9</confidence>
115
- <reasons>
116
- The message uses high-stakes language and urgency to pressure the reader into sharing sensitive financial information. Normally, the claiming process for a huge prize involves just a basic name and ID check, then arranging a date and time to claim the prize. Unsolicited lottery winnings and requests for credit card details to register the win are not standard practice and are common spam indicators. Additionally, the email domain "prize-national-lottery.com" appears unofficial and mimics a known brand like "National Lottery" in the UK.
117
- However, the domain exhibits similarity to "national-lottery.com", which is an independent lottery result service around the world. This could be a subsidiary domain, nonetheless, the context of asking for a credit card still far outweighs this similarity.
118
- </reasons>
119
- """