| base_model: Qwen/Qwen2.5-0.5B-Instruct | |
| tags: [gguf, ffmpeg, command-generation, chain-of-thought] | |
| # FFmpeg Command Generator V2 (GGUF) | |
| GGUF conversion of [kingjux/ffmpeg-command-generator-v2](https://huggingface.co/kingjux/ffmpeg-command-generator-v2). | |
| ## Usage with Ollama | |
| ```bash | |
| # Download | |
| huggingface-cli download kingjux/ffmpeg-command-generator-v2-gguf ffmpeg-command-generator-v2-q4_k_m.gguf | |
| # Create Modelfile | |
| cat > Modelfile << EOF | |
| FROM ./ffmpeg-command-generator-v2-q4_k_m.gguf | |
| SYSTEM "You are an expert FFmpeg engineer. Think through the solution step-by-step in <think> tags, then output the correct ffmpeg command in a bash code block." | |
| EOF | |
| # Create and run | |
| ollama create ffmpeg -f Modelfile | |
| ollama run ffmpeg "Convert input.mp4 to 720p H.264" | |
| ``` | |