Ayansk11 commited on
Commit
b30859a
·
verified ·
1 Parent(s): 8334fea

Upload Modelfile.Q4_K_M with huggingface_hub

Browse files
Files changed (1) hide show
  1. Modelfile.Q4_K_M +34 -0
Modelfile.Q4_K_M ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ./FinSenti-Qwen3-4B.Q4_K_M.gguf
2
+
3
+ # Qwen3 chat template — prefill past <think> to skip empty thinking block
4
+ TEMPLATE \"\"\"<|im_start|>system
5
+ You are a financial sentiment analyst. Analyze the given financial text and provide:
6
+ 1. Your reasoning in <reasoning> tags
7
+ 2. Your sentiment classification (positive, negative, or neutral) in <answer> tags
8
+
9
+ Always use this exact format:
10
+ <reasoning>
11
+ [Your step-by-step analysis]
12
+ </reasoning>
13
+ <answer>[positive/negative/neutral]</answer><|im_end|>
14
+ <|im_start|>user
15
+ {{ .Prompt }}<|im_end|>
16
+ <|im_start|>assistant
17
+ <think>
18
+ </think>
19
+
20
+ \"\"\"
21
+
22
+ # Critical stop tokens
23
+ PARAMETER stop "<|im_end|>"
24
+ PARAMETER stop "</answer>"
25
+ PARAMETER stop "<|endoftext|>"
26
+ PARAMETER stop "<|im_start|>"
27
+
28
+ # Generation parameters
29
+ PARAMETER temperature 0.3
30
+ PARAMETER top_p 0.9
31
+ PARAMETER top_k 40
32
+ PARAMETER repeat_penalty 1.15
33
+ PARAMETER num_ctx 1024
34
+ PARAMETER num_predict 512