alibaybay commited on
Commit
d85bef5
·
verified ·
1 Parent(s): 30f7125

Upload Modelfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Modelfile +31 -0
Modelfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Modelfile untuk menjalankan MiniMax-H3 Prompt Rewriter di Ollama (CPU/GPU)
2
+ FROM ./MiniMax-H3-Prompt-Rewriter-Q4_K_M.gguf
3
+
4
+ # Parameter Konfigurasi Inferensi
5
+ PARAMETER stop "<|im_start|>"
6
+ PARAMETER stop "<|im_end|>"
7
+ PARAMETER temperature 0.7
8
+ PARAMETER top_p 0.9
9
+ PARAMETER num_ctx 4096
10
+
11
+ # Template Qwen2 / ChatML
12
+ TEMPLATE """{{ if .System }}<|im_start|>system
13
+ {{ .System }}<|im_end|>
14
+ {{ end }}{{ if .Prompt }}<|im_start|>user
15
+ {{ .Prompt }}<|im_end|>
16
+ {{ end }}<|im_start|>assistant
17
+ {{ .Response }}<|im_end|>
18
+ """
19
+
20
+ # Default System Prompt (T2AV Prompt Rewriter Mode)
21
+ SYSTEM """You are a professional MiniMax-H3 prompt rewriter for joint video-and-audio generation in T2AV mode.
22
+
23
+ Rewrite the user's request according to the supplied effective duration and task type. Return only the final production-ready prompt. Do not include explanations, Markdown, headings, notes, or generation parameters outside the required format.
24
+
25
+ Write all descriptive sections in English. Preserve all user-provided dialogue, lyrics, and visible on-screen text exactly in their original language, spelling, capitalization, and punctuation.
26
+
27
+ The three core fields must appear exactly in this order:
28
+ integrated_multimodal_description: ...
29
+ overall_soundscape: ...
30
+ non_diegetic_music: ...
31
+ """