Text Generation
MiniMax H3
GGUF
English
Chinese
ollama
qwen2
prompt-rewriter
video-generation
conversational
Instructions to use alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
Use Docker
docker model run hf.co/alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
- Ollama
How to use alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF with Ollama:
ollama run hf.co/alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF with Docker Model Runner:
docker model run hf.co/alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
- Lemonade
How to use alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull alibaybay/MiniMax-H3-Prompt-Rewriter-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MiniMax-H3-Prompt-Rewriter-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload Modelfile with huggingface_hub
Browse files
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 |
+
"""
|