Short answer: on the same RTX 5060 Ti 16 GB, changing the configuration (rather than the hardware) increased throughput by about 5.5 times. The time extrapolated to 5,000 photos fell from 4.80 h to 0.87-0.88 h, while the share of complete answers rose from 12.5% to 98.2-98.7%. This is a starting point for hardware sizing, not a promise for every application. First, we check what your task needs and what slows it down. Then we recommend a card.
The request was specific: a quiet workstation to analyse a large photo archive locally, write Polish descriptions, count people, assess mood and recognise faces. The target: 5,000 photos in about an hour. We could have answered from a catalogue. Instead, we reproduced the task and ran it. The first attempt meant almost five hours after extrapolation, with most answers cut short at the context limit. Then came the next challenges: parallel requests, a larger model and small faces missed by the detector. It became a small adventure, with a few twists along the way.
The times for 5,000 photos in the table are extrapolated from measurements; the final row is an estimate. We explain the details below.
| Stage | What we found | Result |
|---|---|---|
| First attempt | Answers are cut short or requests rejected | 4.80 h, 12.5% complete |
| Investigation | Changing how the language model is served speeds up the pipeline | 0.87-0.88 h, 98.2-98.7% complete |
| Larger model | The 9B configuration loses about 32-36% throughput against 4B | 1.28-1.29 h, 100% complete |
| Faces | The model, detector and threshold matter | 3.1% drop in throughput after switching to buffalo_l |
| Second card | About 1.8 times the throughput | 0.46-0.47 h |
| More powerful card | Estimate, without a measurement | 0.76-0.85 h (RTX 5070 Ti) |
The essentials to start with
- The card was not the first problem. Configuration changes gave about 5.5 times the throughput on the same RTX 5060 Ti.
- In the 4B tests, the language model accounted for about 89-97% of the processing time per photo. All other stages together took about 0.1-0.23 s. With parallel processing, the processing time for one photo and the reciprocal of throughput are different metrics.
- The tested version of Ollama queues requests for Qwen3.5.
llama-serverwith eight slots processed requests in parallel. - 16 GB of VRAM becomes the limit when you add a larger model and more accurate face recognition.
- The RTX 5070 Ti estimate is an estimate, not a measurement. Windows was not measured either.
- Licences matter. The pretrained InsightFace models we used for faces are available only for non-commercial research; commercial use requires a separate licence from their authors. We cover this in a dedicated section below.
What we measured (and what we did not)
We will make this clear at the start, because it matters to you: we did not have the client's application code. We reproduced the pipeline from its description, writing the model prompt, image crop rules and processing workflow ourselves. This is a test of a reproduced task, rather than a measurement of the client's program. The target application needs to be measured before choosing hardware.
The pipeline uses SigLIP (image embeddings, mood, aesthetic score), InsightFace buffalo_sc (face detection and embeddings), HSEmotion (emotions from face crops) and Qwen3.5, initially 4B and later 9B (Q4_K_M quantisation), returning JSON with a Polish description, a people count and a location. We measured how long these stages took; we did not assess the accuracy of mood and emotion judgements.
The photos: 1,090 files from Wikimedia Commons under free licences, comprising 295 without people, 299 with one person, 248 group photos and 248 crowds or small faces. A further 10 photos were used for warm-up. No private photos. The environment: Ubuntu 24.04 in a virtual machine with GPU passthrough, Ryzen 9 7950X, and one or two RTX 5060 Ti 16 GB cards.
We calculate the time for 5,000 photos as 5,000 divided by measured throughput. The main results come from the 1,090-photo set. We separately identify the tests on 200 and 400 photos and the one-hour continuous test. The RTX 5070 Ti results are estimates only. Image sizes of 896, 1,024 and 1,600 px refer to the longer side; we describe the detector input size separately.
First attempt: 4.80 hours and answers cut short
The configuration from the description: Ollama, "thinking" enabled, a context window of 2,048 tokens and a 1,600 px image for the language model. A measurement on 1,090 photos gave an extrapolated 4.80 h for 5,000 photos. We tested the initial configuration once on the full set.
What happened to the answers was worse. Only 12.5% were complete. 79.9% were cut short at the context limit, and the server rejected 7.5% of requests with HTTP 400. In this configuration, a 1,600 px image took about 1,500-2,400 tokens. A context window of 2,048 tokens was therefore sometimes too small even for the input alone; in the other cases, it restricted the room for an answer.
A word about "completeness", because it will come up again. In our test, an answer counted as complete if it was valid JSON with the required fields (a description longer than 15 characters, an integer people count and a location), and the model stopped on its own rather than at a limit. Complete does not mean true. This checks structure, not content accuracy.
Investigation: where the time goes
The first question was whether the card was too slow. Stage measurements gave us the answer. In the 4B tests, the language model accounted for about 89-97% of the processing time for a single photo. Everything else, SigLIP, face detection, emotions, decoding and writing, took 0.1-0.23 s in total. The bottleneck was therefore in the language model. That alone did not prove that a faster card would make no difference. First, we needed to check how the model was using the card.
A queue instead of parallel processing. In the test, Ollama 0.40.13 handled the qwen35 architecture one request at a time; OLLAMA_NUM_PARALLEL gave no gain. After switching to llama-server from llama.cpp, requests were processed in parallel. On a sample of 200 photos (896 px images), four slots gave 1.191 photos/s, eight gave 1.651, and sixteen gave 1.472. Eight was the best of the settings tested. More did not mean faster.
"Thinking" at the cost of a thousand tokens. Turning thinking off reduced the time per photo from 11.67 s to 1.88 s (a sample of 200 photos, a context window of 4,096, 1,600 px images), a speed-up of about 6.2 times. Thinking cost about 1,000 extra tokens per photo. Quality proxies, agreement on the people count and description length, showed no benefit from those tokens. A caveat: a human did not assess every description.
The final configuration: eight slots, a context window of 4,096 per slot, thinking off, Flash Attention on, and 896 px images for the language model (SigLIP and the face stages still see 1,600 px). Turning Flash Attention off reduced throughput by 28% and increased VRAM usage by 5.4 GB in our measurements. However, we do not have a separate table for that test, so we do not automatically attribute these differences to the final configuration.
The result across two full runs: 0.87-0.88 h for 5,000 photos and 98.2-98.7% complete answers, with a spread of 0.9%. That is about 5.5 times the throughput without replacing the card. GPU telemetry: peak VRAM usage of 10.4 GB, a maximum of 70 °C, an average of 122 W (a peak of about 170 W with a 180 W limit), and no thermal or power throttling. With a one-sentence description, the result was 0.70-0.71 h, but that is a different task.
Three traps that do not report an error
Three times, computation ended up partly or entirely on the CPU, with nothing suggesting a failure:
- In the tested environment,
pip install insightfaceinstalled the CPU packageonnxruntime, which shadowedonnxruntime-gpu. The face models ran without an error, but on the CPU. - The
onnxruntime-gpu1.31.1 build we used required CUDA 13 libraries. With only CUDA 12 libraries, there was just a log entry about a missing library, and computation fell back to the CPU. - With four Ollama servers on one 16 GB card, one server loaded 38% of the model onto the CPU. We marked that run as invalid and excluded it from comparisons.
Only valid runs contributed to the results. The practical lesson: after startup, check that every ONNX session uses CUDAExecutionProvider and that the language model runs entirely on the GPU. Having a card in the computer does not guarantee this.
A new dilemma: a better description or a faster batch
Here begins the trade-off that really changes hardware sizing. Qwen3.5 9B (with a server-enforced JSON schema and different generation settings) achieved 1.28-1.29 h for 5,000 photos and 100% complete answers, with peak VRAM usage of 13.0 GB. Its throughput was about 32% lower than 4B in the first series (an average of 1.083 rather than 1.590 photos/s) and about 36% lower than the faster 4B series (1.684 photos/s). The result depends on the reference series, which is why we give a range. The response schema and generation settings also changed, so we are comparing configurations, rather than model size alone.
Does the quality justify that drop? We compared descriptions of the same 21 photos at a generation temperature of 0.5. We counted about 5 language errors in the 9B descriptions and about 8 in the 4B descriptions; 9B described some details more accurately and filled in the miejsce field better. It still made mistakes, and the sample is small. If batch time matters more to you, 4B is a reasonable choice. If the quality of the Polish description matters, test 9B on your own photos before buying a card.
Faces that "refuse to match"
The next challenge: some faces were not being matched to saved identities. We separated three issues: the recognition model, the detector and the matching threshold. We measured them on public datasets, rather than the client's private photos.
The recognition model. On CFP (frontal and profile faces), switching from buffalo_sc to buffalo_l raised verification accuracy from 98.26% to 99.43%, and the share of accepted same-person pairs at FAR 0.0001 (the false acceptance rate for pairs) from 84.3% to 97.1%. In the CFP identification test, with three frontal reference photos per person and 2,000 profile probes, the share of probes with a face detected but not matched fell from 3.0% to 0.55%. These are shares of all probes, rather than just detected faces. On LFW, which mainly contains frontal faces, both packages scored close to the ceiling, so this cannot establish effectiveness on arbitrary photos. The cost in the full pipeline with the 9B model: a 3.1% drop in throughput, or about 2.4 extra minutes extrapolated to 5,000 photos. Buffalo_l also produced 61% more face detections in crowds and 11% more in groups (these are detection counts on an unlabelled set, not the share of faces correctly found).
The detector. This is the less obvious culprit. The detector takes a 640 px input and loses small faces before recognition even starts. In a simulation using reduced LFW photos (a face about 23 px wide in a 1,600 px image), a 640 px input missed 94.4% of faces with buffalo_sc and 46.2% with buffalo_l. With a 1,280 px input, the figures were 0.8% and 0.2% respectively. However, in the full pipeline, the 1,280 px input missed some large close-up faces, so combining detections at two scales is probably needed. We did not measure the cost of the 640 + 1,280 px pair.
The threshold. A threshold derived from pairs accepted 41-45% of people outside the gallery as known identities when the gallery contained 610 people. On LFW with buffalo_l, a cosine similarity threshold of 0.288 and three reference photos gave 99.72% correct matches on probes of people in the gallery, while accepting no more than 1% of unknown-person probes. We would not transfer that figure to another gallery without checking it. Five reference photos instead of one (on CFP profiles, using the mean embedding) reduced the share of probes with a face detected but not matched from 5.7% to 2.25% for buffalo_sc. That is an improvement in the input data which a more powerful card cannot replace.
Licences: what you must not overlook for commercial use
A performance test is not permission for commercial use. We measured the pipeline's speed, but you must not infer that all its components can be deployed in a business without additional conditions. Below is the position we checked on 2026-10-31 in the project descriptions:
| Component | What the project states | Commercial use |
|---|---|---|
| InsightFace, buffalo_sc and buffalo_l models | Library code under MIT; pretrained models for non-commercial research only | Requires a separate licence from the project authors, on their terms (the README directs you to contact them about this); use without it is not permitted |
| HSEmotion (emotions) | Code under Apache-2.0; according to the project description, the models were trained on AffectNet | The terms for the weights and training dataset need to be checked separately; we have not established them |
| Qwen3.5 4B and 9B | Model cards: Apache-2.0 | Permitted under the terms of Apache-2.0 |
SigLIP (google/siglip-base-patch16-224) |
Model card: Apache-2.0 | Permitted under the terms of Apache-2.0 |
| llama.cpp | MIT licence | Permitted under the terms of MIT |
The key point: face recognition using pretrained InsightFace models is not suitable for commercial deployment without a licence. That licence may involve costs and conditions set by the model owner, so allow for it in your budget before planning the project. Other models are an alternative, but those we measured (OpenCV SFace, FaceNet, dlib) performed worse on profiles, and the terms for their weights and training data also need to be checked separately. We do not encourage using any component against its licence. Before deployment, read the current terms for the specific weights. This is technical information, not legal advice.
What this changes about hardware sizing
16 GB of VRAM proved to be a limit that depends on the variant:
| Variant on one RTX 5060 Ti 16 GB (Qwen3.5) | Time for 5,000 photos (from throughput) | Peak VRAM |
|---|---|---|
| Qwen 4B, buffalo_sc, LLM image 896 px | 0.87-0.88 h | 10.4 GB |
| Qwen 9B, buffalo_sc, 896 px | 1.27 h | 12.7 GB |
| Qwen 9B, buffalo_l, 896 px | 1.31-1.32 h | 14.5 GB |
| Qwen 9B, buffalo_l, 1,024 px (JPEG q85) | 1.45 h | 14.5 GB |
The rows come from different measurement series, so compare them cautiously. A 1,024 px image instead of 896 px cost about 10% of throughput (the JPEG quality setting also changed from 90 to 85; improvements in descriptions were not assessed). In a separate test with the 9B model, an 896 px image for it, eight slots and the buffalo_l detector with a 1,280 px input, VRAM usage reached 15.5 GB, and recognition required fixed batches of 32 faces. The earlier variant without this ran out of memory. The statement "the model fits in 16 GB" therefore only makes sense when you specify the detector, image size and number of slots. Six slots instead of eight is a possible way to recover headroom, but we did not measure that change for the 1,024 px variant.
The second card. Two independent pipelines (one per card) with the 4B model gave 2.99-3.04 photos/s, or 0.46-0.47 h for 5,000 photos: 1.77-1.81 times the throughput of one card in the same series (1.684 photos/s, or an extrapolated 0.82 h), rather than twice as much. One process serving both servers was about 9% slower. Two surprises: limiting the containers to 8 vCPU on the test Ryzen 9 7950X did not reduce throughput (this is not a measurement of a separate 8-core processor), and the card on PCIe 5.0 x4 was as fast as the one on x8 (we did not test x8/x8). The one-hour continuous test processed 10,940 photos, reusing the same set repeatedly. There was no thermal throttling: 75 °C on the upper card, 70 °C on the lower one. With the 9B model, two cards gave 2.08 photos/s (an extrapolated 0.67 h), but only on 400 photos. A separate 4B run with an enforced JSON schema and changed generation settings gave 100% complete answers at 2.802 photos/s, or 0.50 h for 5,000 photos. The fastest 4B runs did not have those fixes.
Estimate, not measurement: RTX 5070 Ti. It has 896 GB/s of memory bandwidth against 448 GB/s on the RTX 5060 Ti, the same architecture and 16 GB of VRAM. Assuming a speed-up of about 1.7-1.9 times, we estimate 0.76-0.85 h for 5,000 photos with 9B, buffalo_l and 1,024 px images (the earlier 0.68-0.75 h was for the lighter buffalo_sc and 896 px variant). We did not test this card. This is a forecast based on memory bandwidth, rather than measured scaling. It excludes the separately measured reproduction of the image preparation step from a full-size file (the 1,024 px images in the main test were made from 1,600 px files), and the cost of combining two detection scales.
What we would choose from these data
If 4B quality is enough, we would start with one RTX 5060 Ti 16 GB and a well-tuned configuration: in the tested pipeline, the extrapolated time is comfortably within an hour. If you need 9B and more accurate face recognition, the RTX 5070 Ti is a candidate to verify (an estimate, with little VRAM headroom). We would justify a second card by the required deadline, rather than habit. All this hardware sizing assumes that you have the right to use every pipeline component in your application. For face recognition with pretrained InsightFace models in a commercial project, that means obtaining a licence.
The scope of the findings is narrow: one GPU class, the Qwen3.5 family in two sizes, one photo set and Linux. LFW and CFP tests may overstate absolute results because of possible overlap with the models' training data. A human did not assess every description, and we also did not test stability over several days, the noise of the whole workstation or behaviour on Windows. Before choosing hardware, we therefore agree acceptance criteria with the client: batch time in the real application, quality on representative photos, VRAM headroom and acceptable noise.
The whole point of this story fits into one sentence: before buying a more powerful card, measure what your photo is waiting for. If your task does not fit an off-the-shelf setup, describe it: the number of photos, model, operating system, expected quality and acceptable noise. We will reproduce the pipeline and measure it. The answer may also be "a cheaper card is enough" or "fix the configuration first".
Sources
- Agile Store's own measurements, 29-31 October 2026: photo analysis pipeline on one and two RTX 5060 Ti cards, face recognition (buffalo_sc / buffalo_l). Photo set: Wikimedia Commons, files under free licences: https://commons.wikimedia.org
- llama.cpp (
llama-server): https://github.com/ggml-org/llama.cpp - InsightFace, License section in the README (checked on 2026-10-31): https://github.com/deepinsight/insightface#license
- Qwen3.5-9B, model card (Apache-2.0 licence): https://huggingface.co/Qwen/Qwen3.5-9B; Qwen3.5-4B: https://huggingface.co/Qwen/Qwen3.5-4B
- SigLIP
google/siglip-base-patch16-224, model card: https://huggingface.co/google/siglip-base-patch16-224 - HSEmotion, README (code licence): https://github.com/av-savchenko/hsemotion
Disclaimer: We publish this article from a hardware seller's perspective. All measured figures relate to our tests on Linux (Ubuntu 24.04, a virtual machine with GPU passthrough), using a reproduced pipeline rather than the client's program. Results on Windows, other photos or other models may differ. RTX 5070 Ti figures are estimates. Licence information comes from project descriptions dated 2026-10-31 and may change. This is not legal advice.
FAQ
- How long does it take to analyse 5,000 photos on one RTX 5060 Ti?
- In the tested pipeline, Qwen 4B with buffalo_sc and 896 px images: 0.87-0.88 h; Qwen 9B: 1.28-1.29 h. These are extrapolated figures from tests on 1,090 photos on Linux. A different model, material or application needs its own measurement.
- Does a second graphics card double performance?
- Two independent 4B pipelines gave 1.77-1.81 times the throughput of one card in the same test series. One process serving two servers was about 9% slower. Do not treat this multiplier as a constant for every task.
- Does 100% complete JSON mean error-free descriptions?
- No. The schema controls structure. The models still made language and factual errors, and the number of detected faces need not equal the number of people (the detector can miss small faces and people seen from behind).
- Will an RTX 5070 Ti definitely meet the one-hour target?
- We have no measurement confirming this. The 0.76-0.85 h estimate applies to Qwen 9B, buffalo_l and 1,024 px images, and needs to be checked on the target system.
- Can pretrained InsightFace models be deployed commercially?
- Not without a separate licence. According to the project's README, the library code is under MIT, but the pretrained models (including buffalo_sc and buffalo_l) are available only for non-commercial research. You must contact the authors about commercial use. The licence may involve a fee and has conditions set by the model owner. This is not legal advice.
- Can the other pipeline components be used commercially?
- According to their model cards, Qwen3.5 (4B, 9B) and SigLIP are under Apache-2.0, while llama.cpp is under MIT. For HSEmotion weights, the terms for the weights and training dataset need to be checked separately.