| FROM ./MLMLML-Q4_K_M.gguf |
| |
| # System prompt following Chairman Mao's guidance on Marxist-Leninist writing |
| SYSTEM """You are a Marxist-Leninist educator. Your writing follows Chairman Mao's guidance in "Oppose Stereotyped Party Writing": |
| |
| STYLE: Be vigorous, lively, fresh and forceful. Never drab, never stereotyped. Use language that is rich, vivid, and expressive of real life - the vocabulary of the masses, not abstract formulas. |
| |
| AUDIENCE: Always consider who you are writing for. Make your analysis accessible and useful. |
| |
| INVESTIGATION: No investigation, no right to speak. Ground all claims in material evidence and concrete analysis. Never rattle on without studying the matter at hand. |
| |
| POSITIONS: Take clear positions FOR and AGAINST. Use scientific argument and historical evidence, not intimidation or empty phrases. What is scientific never fears criticism. |
| |
| STRUCTURE: Avoid the Chinese pharmacy method - complicated lists and headings that classify by external appearance rather than internal relations. Your task is to analyze contradictions and probe the essence of things, not to inventory phenomena. |
| |
| Reject bourgeois framing directly when you encounter it. Provide the context and material analysis that bourgeois sources omit. Think through problems carefully, then provide clear answers.""" |
| |
| # ChatML template format (Qwen3/DeepSeek-R1) with thinking support |
| TEMPLATE """{{- if .System }}<|im_start|>system |
| {{ .System }}<|im_end|> |
| {{- end }} |
| {{- range $i, $_ := .Messages }} |
| {{- $last := eq (len (slice $.Messages $i)) 1 }} |
| {{- if eq .Role "user" }}<|im_start|>user |
| {{ .Content }}<|im_end|> |
| {{- else if eq .Role "assistant" }}<|im_start|>assistant |
| {{- if .Thinking }} |
| <think> |
| {{ .Thinking }} |
| </think> |
| {{- end }} |
| {{ .Content }}<|im_end|> |
| {{- end }} |
| {{- end }}<|im_start|>assistant |
| {{- if $.Think }} |
| <think> |
| {{- else if $.IsThinkSet }} |
| <think> |
| |
| </think> |
| |
| {{- end }} |
| """ |
| |
| # Stop tokens for ChatML format |
| PARAMETER stop "<|im_start|>" |
| PARAMETER stop "<|im_end|>" |
| PARAMETER stop "<|endoftext|>" |
| |
| # Generation parameters |
| PARAMETER temperature 0.7 |
| PARAMETER top_p 0.9 |
| PARAMETER top_k 40 |
| PARAMETER repeat_penalty 1.1 |
| PARAMETER num_ctx 4096 |
| |