How to use from
Pi
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama-server -hf kingjux/ffmpeg-command-generator-gguf:F16
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "kingjux/ffmpeg-command-generator-gguf:F16"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

FFMPEG Command Generator (GGUF)

Fine-tuned Qwen2.5-0.5B that generates FFMPEG commands from natural language with chain-of-thought reasoning.

Quick Start

LM Studio

lms import kingjux/ffmpeg-command-generator-gguf

Ollama

ollama run hf.co/kingjux/ffmpeg-command-generator-gguf

Example

Input: "Convert video.mp4 to webm format"

Output:

<think>
Task: Convert MP4 to WebM
- WebM uses VP9 video + Opus audio
- Use -c:v libvpx-vp9 for video
- Use -c:a libopus for audio
</think>

ffmpeg -i video.mp4 -c:v libvpx-vp9 -c:a libopus output.webm

Training

  • Base: Qwen2.5-0.5B-Instruct
  • Method: LoRA fine-tuning (r=16, alpha=32)
  • Dataset: 30 FFMPEG command examples with CoT reasoning
  • Trained on HuggingFace Jobs (T4 GPU)
Downloads last month
14
GGUF
Model size
0.5B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for kingjux/ffmpeg-command-generator-gguf

Quantized
(224)
this model