Qwen4 on a Mac against Gemini in the cloud: which one picks better clips?
Qwen4-35B-A3B came out on 4 December 2026 under Apache 2.0. The next day we put it in the step where OpenShorts sends your transcript to a cloud model, the one that picks the moments, and ran it on a laptop against the default, Gemini 3.1 Flash-Lite, on the same 9-minute video.
With reasoning on, Qwen4 returned 11 clips and Gemini 6. 3 of Qwen4's scored 7 or more out of 10 against 1 of Gemini's, and none of its titles described something that is not in the clip (Gemini: 2 of 6).
It took 6 min 31 s to pick them, against 7 s: 55 times slower. Turning reasoning off brings it down to 45 s and the picks get worse. Its cut points are worse than Gemini's either way.
A full job with no Google key at all transcribed, picked and rendered 10 clips on the Mac for $0 in API calls. This is one video scored by a language model, not blind: a first impression, with the limits listed at the end.
Two lines in .env point OpenShorts at your own model. The repo is MIT and free to run; the hosted edition has a free plan with a watermark and paid plans from $12/month.
Why test this at all?
OpenShorts turns a long video into vertical clips. When you self-host it, almost all of that runs on your own machine: the download, the transcription with faster-whisper, scene detection, face tracking, the 9:16 reframe and the encode. The step that decides what gets cut is the moment picker, a text call that reads the timestamped transcript and returns the stretches worth cutting, with a title and a hook for each. By default that call goes to Google Gemini 3.1 Flash-Lite.
It does not have to. The picker accepts any OpenAI-compatible server through
LLM_BASE_URL. The open question was quality: a local model keeps
the transcript at home, but does it pick clips you would post? A new 35B open
model that fits on a laptop was a good excuse to measure it.
The setup
- Machine. MacBook Pro, M5 Max, 36 GB of memory.
- Model. Qwen4-35B-A3B (Apache 2.0), the IQ4_XS GGUF from unsloth, 20.5 GB on disk, all layers on the GPU.
- Server. llama.cpp's
llama-server, release build b13002. The Homebrew build available that day did not recognise the model's tokenizer. - Baseline. Gemini 3.1 Flash-Lite, the model OpenShorts uses by default.
- Video. A 9 minute 11 second product walkthrough in Spanish: one person to camera, with screen shares.
- Same everything else. One transcript, reused in the three runs, the same prompt and the same two-pass pipeline: the transcript is split into 9 windows, each is scored, and the 8 best are sent in one call that returns the clips. Layout choice and rendering used the same code and settings.
The server was started like this, and OpenShorts needed two lines:
llama-server -m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \
--host 127.0.0.1 --port 8081 -c 32768 -np 1 -ngl 99 --jinja \
--alias qwen4-35b-a3b
# add "--reasoning off" for the fast run
# .env of OpenShorts
LLM_BASE_URL=http://host.docker.internal:8081/v1
LLM_MODEL=qwen4-35b-a3b
Wired memory on the Mac went from 4.6 GB to 25.4 GB with the model loaded and a job running: about 20 GB. On a 36 GB machine that fits, but not next to a game and a browser full of tabs.
The numbers
| Gemini 3.1 Flash-Lite (cloud) | Qwen4, reasoning on (local) | Qwen4, reasoning off (local) | |
|---|---|---|---|
| Clips returned | 6 | 11 | 10 |
| Time to pick the moments | 7 s | 6 min 31 s | 45 s |
| Cost of the picker | $0.005 | $0 | $0 |
| Output tokens in the final call | not logged | 23,945 | 2,329 |
| Generation speed in that call | n/a | 65.9 tok/s | 77.8 tok/s |
| Average clip length | 29.2 s | 25.8 s | 33.8 s |
| Video covered by the clips | 175 s of 551 | 284 s of 551 | 338 s of 551 |
| Titles describing something outside the clip | 2 of 6 | 0 of 11 | 3 of 10 |
| Clips scoring 7 or more out of 10 | 1 of 6 | 3 of 11 | 0 of 10 |
| Average score out of 10 | 4.3 | 6.0 | 4.9 |
The prompt asks for 6 to 12 clips on a video this long. Gemini returned the minimum: one clip from each of six windows, skipping two. Qwen4 used all 8 shortlisted windows and took up to three clips from one of them. That is where 11 against 6 comes from.
Where Qwen4 was better
- It found moments Gemini skipped. Why the authors ruled out Twilio, a 22-second tutorial (app, QR code, connect), the "production is down and your agent calls you" use case, and a three-way call. The last one is telling: Gemini wrote a title about that group call and then cut the clip eight seconds before it happens.
- Its titles match its clips. None of the 11 titles describes something that is not said inside the clip. Gemini did that in 2 of 6, and in 3 of 6 when we ran its picker a second time.
- Its best clips are tighter. Its opening clip skips the greeting and goes straight to the promise in 18 seconds. Gemini's version of the same moment spends two seconds on "hello" and runs eight seconds into the next story.
Where it was worse
- Cut points. Qwen4 chains clips back to back, so one clip ends on the exact frame where the next one starts. Only 4 of its 11 clips start within 0.4 seconds of a sentence boundary in the transcript, and none ends on one. Gemini starts cleaner.
- One bad pick. It kept a stretch saying the iPhone app was not out yet, which was already out of date, with a price misquoted in the video itself.
- Time. 6 min 31 s against 7 s. On a batch of videos that is the difference between a coffee and an overnight job.
The endings are bad in all three runs: almost every clip stops mid-sentence. That is not a model problem. It is ours to fix in the pipeline, by snapping the cut to the end of the sentence, and it would help whichever model picks.
Reasoning on or off?
Almost the whole gap in time is one call. The three scoring calls take under
10 seconds each with reasoning on and under 5 with it off. The final call, the
one that writes the clips, produced 23,945 tokens with reasoning on
and 2,329 with it off: 6 min 3 s against 30 seconds.
--reasoning-effort low did not help; the same call still wrote
22,846 tokens.
These are llama-server's own timing lines for that call in the two runs, with the log prefix trimmed:
# reasoning on
prompt eval time = 3027.83 ms / 4681 tokens ( 0.65 ms per token, 1545.99 tokens per second)
eval time = 363351.76 ms / 23945 tokens ( 15.18 ms per token, 65.90 tokens per second)
total time = 366379.59 ms / 28626 tokens
# --reasoning off
prompt eval time = 3065.76 ms / 4682 tokens ( 0.65 ms per token, 1527.19 tokens per second)
eval time = 29915.52 ms / 2329 tokens ( 12.85 ms per token, 77.82 tokens per second)
total time = 32981.28 ms / 7011 tokens
What the thinking buys is the match between title and cut. With reasoning off Qwen4 behaves like Gemini: 3 of its 10 titles describe something outside the clip, and it also returned the video's sign-off ("leave a like") as a clip, which the prompt asks it to avoid.
One practical note: with reasoning on, that call used 28,626 of the 32,768 tokens of context we gave the server. The 16k that is enough for a non-reasoning model is not enough here.
The run with no Google key at all
In the three runs above only the picker changed; the layout choice and the step that rewrites a title from what is on screen still used Gemini. So we ran a fourth job with no Google key in the environment. It transcribed the video in about 30 seconds, picked for 6 min 9 s, rendered 10 clips and finished in 12 min 34 s on the CPU image, with a picker cost of $0.000000 in the log. Nothing left the machine.
What you give up without a Gemini key: the automatic layout picker falls back to the plain face-tracking crop, titles and hooks are not rewritten from the frames, and a video with no speech cannot be clipped. The self-hosting guide covers the rest of the setup.
How the clips were scored
Each clip got up to 10 points: the hook in the first three seconds (3), whether it makes sense without the rest of the video (3), clean start and end cuts (2), and whether the title matches what is said inside (2). The scores were given by Claude, a language model, reading the transcript of each clip and knowing which model had produced it. "Title outside the clip" and the sentence-boundary counts are checks against the transcript, not opinions.
Limits of this test
- One video, 9 minutes, in Spanish, with a noisy transcript. It is a first impression, not a benchmark.
- The scoring was not blind and there is no audience data behind it. Nobody posted these clips to see which ones people watch.
- Gemini 3.1 Flash-Lite is the cheap tier. A larger Gemini would probably do better than it did here.
- Qwen4 ran quantised to IQ4_XS. The full-precision model may behave differently.
- Total job time is not compared between runs, because each rendered a different number of clips.
What we are doing with it
The default stays. When someone is waiting for their clips, 7 s and half a cent against 6 min 31 s is not a close call.
For anyone self-hosting who wants nothing to leave the machine, the answer changed this week: a model you can run on a laptop now picks clips at least as well as the cloud default on this video, if you can wait. OpenShorts is open source under MIT and free to self-host. The hosted edition, OpenShorts Cloud, has a free plan with a watermark and paid plans from $12/month (all plans).
Common questions
- Can OpenShorts run without a Google Gemini key?
- Yes. Set LLM_BASE_URL and LLM_MODEL in .env to any OpenAI-compatible server and the moment picker runs on your own model. In this test a full job with no Google key transcribed, picked and rendered 10 clips on a Mac for $0 in API calls. Without a Gemini key the automatic layout picker falls back to the plain face-tracking crop, titles and hooks are not rewritten from the frames, and a video with no speech cannot be clipped.
- Is Qwen4 better than Gemini at picking clips?
- On the one video we tested, Qwen4-35B-A3B with reasoning on returned more usable clips than Gemini 3.1 Flash-Lite (3 scored 7 or more out of 10, against 1) and none of its titles described something outside the clip. It took 6 min 31 s against 7 s, and its cut points were worse. One video is a first impression, not a benchmark.
- How much memory does Qwen4-35B-A3B need?
- About 20 GB at the IQ4_XS quantisation. The GGUF files are 20.5 GB, and wired memory on the Mac went from 4.6 GB to 25.4 GB with the model loaded and a job running. It fits on a 36 GB Apple Silicon machine, but not next to a game or a browser full of tabs.
- Should I turn reasoning off for a local clip picker?
- It depends on what you are short of. With reasoning off the picker took 45 s in place of 6 min 31 s, because one call wrote 2,329 tokens in place of 23,945. It also picked worse: 3 of 10 titles described something outside the clip and one clip was the video's sign-off. If the job runs overnight, leave reasoning on.
- How fast is Qwen4-35B-A3B on Apple Silicon?
- On a MacBook Pro with an M5 Max and 36 GB, llama.cpp generated 65.9 tokens per second on the long reasoning call and about 78 on the short ones, with the IQ4_XS GGUF fully on the GPU. Prompt processing ran at over 1,000 tokens per second.
- Does the video leave my machine with a local model?
- No. Downloading, transcription, scene detection, face tracking, reframing and encoding run locally either way. With a Gemini key, the moment picker sends the transcript, the automatic layout picker sends a few still frames, and a video with no speech is sent whole. With LLM_BASE_URL pointing at a server on your own machine and no Gemini key, nothing leaves it.
Sources
- Qwen/Qwen4-35B-A3B on Hugging Face (model card, Apache 2.0 licence).
- unsloth/Qwen4-35B-A3B-GGUF, the quantised files used here.
- The local-model option is section 6 of the README, "Run without a Google key", at github.com/mutonby/openshorts; the code is
llm_backend.py. - Timings are from the OpenShorts job logs and llama-server's own timing lines for the runs of 2026-12-05.