Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-0.5B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- gguf
|
| 6 |
+
- ffmpeg
|
| 7 |
+
- command-generation
|
| 8 |
+
- lm-studio
|
| 9 |
+
- ollama
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# FFMPEG Command Generator (GGUF)
|
| 13 |
+
|
| 14 |
+
Fine-tuned Qwen2.5-0.5B that generates FFMPEG commands from natural language with chain-of-thought reasoning.
|
| 15 |
+
|
| 16 |
+
## Quick Start
|
| 17 |
+
|
| 18 |
+
### LM Studio
|
| 19 |
+
```bash
|
| 20 |
+
lms import kingjux/ffmpeg-command-generator-gguf
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
### Ollama
|
| 24 |
+
```bash
|
| 25 |
+
ollama run hf.co/kingjux/ffmpeg-command-generator-gguf
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Example
|
| 29 |
+
|
| 30 |
+
**Input:** "Convert video.mp4 to webm format"
|
| 31 |
+
|
| 32 |
+
**Output:**
|
| 33 |
+
```
|
| 34 |
+
<think>
|
| 35 |
+
Task: Convert MP4 to WebM
|
| 36 |
+
- WebM uses VP9 video + Opus audio
|
| 37 |
+
- Use -c:v libvpx-vp9 for video
|
| 38 |
+
- Use -c:a libopus for audio
|
| 39 |
+
</think>
|
| 40 |
+
|
| 41 |
+
ffmpeg -i video.mp4 -c:v libvpx-vp9 -c:a libopus output.webm
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Training
|
| 45 |
+
- Base: Qwen2.5-0.5B-Instruct
|
| 46 |
+
- Method: LoRA fine-tuning (r=16, alpha=32)
|
| 47 |
+
- Dataset: 30 FFMPEG command examples with CoT reasoning
|
| 48 |
+
- Trained on HuggingFace Jobs (T4 GPU)
|