PackCount-Simat-8M, trained on Qwen3-VL-8B's answers, counts packs loaded into a truck as accurately as the 8B model, in 10 ms per window instead of 650 ms.
Why we ran this
Large vision-language models can answer almost any question about a video, but they are slow and expensive to run on every camera all day. Distillation is the standard way round that: let the large model (the teacher) label footage, then train a small model (the student) to give the same answers for one task.
We wanted our own measurement of how much speed this buys and how much accuracy it costs, on a task we already deploy.
The task and the data
The task is counting the packs (cartons and wrapped bundles) loaded into a truck through one dock door at a customer's loading dock, filmed by one fixed overhead camera. A pack counts when it passes through the doorway, and packs going in are counted separately from packs coming back out. We used three recorded sessions of eight to ten minutes each. Two of them have hand counts, of 57 and 87 packs. The third has none.
Each session is cut into 2-second windows of 20 frames, cropped to the doorway. A model sees one window and answers how many packs went into the truck during it, from 0 to 3. The footage stayed on GPU servers we rented in EU data centres and was not sent to any hosted model API.
How we scored it
Every system is scored the same way against the hand counts. A predicted pack is a hit if it falls within 3 seconds of a hand-counted pack going in the same direction, and each hand-counted pack can be matched once. Accuracy is hits divided by the hand-counted packs plus the extra counts, so missed packs and invented packs both lower it.
The student is always tested on a hand-counted session it never trained on. Each result is reported for three training runs with different random seeds.
The teacher: Qwen3-VL-8B
We ran Qwen3-VL-8B at full precision on one A100 and asked it, for each window, how many packs went in and how many came out. Over both hand-counted sessions it hit 134 of 144 packs, missed 10 and invented 41, which is 72% accuracy. It scored 84% on one session and 66% on the other, where most of the invented counts were. Its median latency was 650 ms per window.
The student: PackCount-Simat-8M
The student, which we named PackCount-Simat-8M, is a compact video network with 7.9 million parameters. We trained it on the teacher's answers for one hand-counted session plus the unlabelled session and tested it on the other hand-counted session. Then we swapped the two hand-counted sessions and repeated. It counts packs going into the truck only, and answers 0, 1, 2 or 3 for each window.
Results
These figures come from the held-out session in each direction. The latency figures exclude video decoding and resizing for both models. The student ran without any inference optimization, so 9.85 ms is not its floor.
- Accuracy on the 57-pack session: student 79% to 83% across three seeds, Qwen3-VL-8B 84%.
- Accuracy on the 87-pack session: student 78% to 81%, Qwen3-VL-8B 66%. The student did not copy most of the teacher's invented counts.
- Both sessions together: student 79.0% to 80.6%, Qwen3-VL-8B 72.4%.
- Median latency per window, batch 1, one A100: student 9.85 ms, Qwen3-VL-8B 650 ms. That is 66× faster.
- The student misses more packs than the teacher (it finds 84% to 88% of them against the teacher's 93%) and invents far fewer.
Two ways to be wrong
A counter can be wrong in two ways: it can miss a pack, or it can count one that was not there. The chart below separates the two. The Qwen models sit on the left. They find almost every pack and invent many. PackCount-Simat-8M sits on the right. It invents few and misses more.
The dashed lines join points with the same accuracy, so a model improves by moving up or to the right across them. Our production counter is in the top right corner, which is where the next version of the distilled model needs to get to.
What made it work: more footage, not better labels
With only one session of training data the student failed, whichever labels it used. Trained on one session of teacher labels it scored 10% to 14% on one test session and 54% to 64% on the other. Trained on one session of hand counts it swung from 25% to 77% depending on the seed.
Adding the unlabelled session, which the teacher labelled at no extra cost, is what made the result stable. That is the practical value of the large model here: it turns unlabelled footage into training data.
The 4-bit quantization test
Separately, we compared Qwen3-VL-32B at full precision with a publicly available 4-bit build of the same model, both on one A100.
- Text generation (256 output tokens per request): 4-bit was 160% faster at one request at a time, 125% faster at 4 and 54% faster at 16.
- Pack counting: no faster. 2.09 s per window at full precision and 2.16 s at 4-bit, with 3% to 21% fewer windows per second under load.
- Counting accuracy fell from 64% to 56%.
- GPU memory fell from 71.9 GB to 28.2 GB.
Why 4-bit did not help counting
Pack counting spends its time reading: 20 frames come to about 4,100 input tokens, and the answer is about 13 tokens. In our runs the 4-bit weights sped up writing the answer, not reading the frames, so the gain did not reach this task.
The 32B model was also no better than the 8B model at counting. It missed fewer packs, invented many more, and took about three times as long per window.
What this does not show
The result is narrow, and these are its limits:
- The sample is small: two test sessions of 57 and 87 packs. Differences of a few points are noise.
- One site, one camera, one gate. We have no evidence yet for other gates or lighting.
- Our production pack counter scored 85% and 91% on the same two sessions. PackCount-Simat-8M is faster than Qwen3-VL-8B. It is not better than what we deploy.
- We tested one publicly available 4-bit build. Another quantization could score differently.
- The teacher's prompt was written once and not tuned. A better prompt could change the teacher's invented counts, and with them the student.
What comes next
Next we will hand-count the third session, so teacher labels and hand labels can be compared on equal amounts of data. We will also train on more footage and measure the student again after inference optimization.
Related on simatlabs.com
Have a problem a camera could solve?
Describe it, add a photo, and get a free first read on whether AI vision can handle it.
