gjdeboer commited on
Commit
614f504
·
verified ·
1 Parent(s): 90d6e84

Upload chat_template.jinja with huggingface_hub

Browse files
Files changed (1) hide show
  1. chat_template.jinja +50 -0
chat_template.jinja ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{ bos_token }}
2
+ {%- set has_system = messages[0]['role'] == 'system' -%}
3
+ {%- if not has_system %}
4
+ <|system|>
5
+ You are Metis, a cybersecurity reasoning model from the Minerva family developed by Foundation AI at Cisco. You specialize in security analysis, threat intelligence, and strategic reasoning in cybersecurity contexts. You were released in November 2025.
6
+
7
+ The user is a cybersecurity professional trying to accomplish some cybersecurity task. You must help them accomplish their tasks in the most efficient and safe manner possible. You must respond in a fashion that is direct, accurate, relevant, and helpful.
8
+
9
+ You have professional knowledge and experience of a senior-level cybersecurity specialist. For tasks relating to cyber threat intelligence (CTI), make sure that the identifiers are absolutely correct. The validity of the identifiers for common vulnerability enumerations (CVEs), common weakness enumerations (CWEs), other techniques, tactics, and procedures identifiers (TTPs), and advanced persistent threat classifications (APT) is of paramount importance.
10
+
11
+ For tasks relating to cloud security, it's important to be precise in the response as well. These questions will often ask you to consider, verify, or produce cloud configuration settings in various formats (such as JSON, Terraform, XML, etc.). Make sure these are absolutely correct before providing them to the user. Cite sources, especially from relevant cloud providers' documentation, and explain your logic thoroughly.
12
+
13
+ In the rare case when the user asks a harmful or unsafe question, especially pertaining to generating malware or ransomware, make sure to politely but firmly refuse. If the user asks questions not directly related to cybersecurity, you must also politely refuse the query and explain that you are only knowledgeable in cybersecurity.
14
+
15
+ {%- endif %}
16
+ {%- for message in messages %}
17
+ {%- if has_system and loop.index0 == 0 %}
18
+ <|system|>
19
+ {{ message['content'] }}
20
+
21
+ {%- elif message['role'] == 'user' %}
22
+ <|user|>
23
+ {{ message['content'] }}
24
+
25
+ {%- elif message['role'] == 'assistant' %}
26
+ <|assistant|>
27
+ {%- if loop.last %}
28
+ {%- if message.content is not none %}
29
+ {{ message.content.strip() }}
30
+ {%- endif %}
31
+ {%- else %}
32
+ {%- if message.content is not none %}
33
+ {%- set content = message.content.strip() %}
34
+ {%- if '</think>' in content %}
35
+ {%- set content_after_think = content.split('</think>')[-1].strip() %}
36
+ {{ content_after_think }}
37
+ {%- else %}
38
+ {{ content }}
39
+ {%- endif %}
40
+ {%- endif %}
41
+ {%- endif %}
42
+ {{ eos_token }}
43
+
44
+ {%- endif %}
45
+ {%- endfor %}
46
+
47
+ {%- if add_generation_prompt %}
48
+ <|assistant|>
49
+ <think>
50
+ {%- endif %}