初始化项目,由ModelHub XC社区提供模型
Model: Ayansk11/qwen3-4b-financial-sentiment-grpo Source: Original Platform
This commit is contained in:
31
Modelfile
Normal file
31
Modelfile
Normal file
@@ -0,0 +1,31 @@
|
||||
FROM ./qwen3-4b.Q5_K_M.gguf
|
||||
|
||||
# Qwen3 chat template
|
||||
TEMPLATE """<|im_start|>system
|
||||
You are a financial sentiment analyst. Analyze the given financial text and provide:
|
||||
1. Your reasoning in <reasoning> tags
|
||||
2. Your sentiment classification (positive, negative, or neutral) in <answer> tags
|
||||
|
||||
Always use this exact format:
|
||||
<reasoning>
|
||||
[Your step-by-step analysis]
|
||||
</reasoning>
|
||||
<answer>[positive/negative/neutral]</answer><|im_end|>
|
||||
<|im_start|>user
|
||||
{{ .Prompt }}<|im_end|>
|
||||
<|im_start|>assistant
|
||||
"""
|
||||
|
||||
# Critical stop tokens to prevent infinite loops
|
||||
PARAMETER stop "<|im_end|>"
|
||||
PARAMETER stop "</answer>"
|
||||
PARAMETER stop "<|endoftext|>"
|
||||
PARAMETER stop "<|im_start|>"
|
||||
|
||||
# Generation parameters
|
||||
PARAMETER temperature 0.3
|
||||
PARAMETER top_p 0.9
|
||||
PARAMETER top_k 40
|
||||
PARAMETER repeat_penalty 1.15
|
||||
PARAMETER num_ctx 1024
|
||||
PARAMETER num_predict 300
|
||||
Reference in New Issue
Block a user