Thanksgiving DealsAmazon USThanksgiving week: Black Friday picks start earlyAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowThanksgiving DealsAmazon USDo not wait for the rush - compare today's dealsAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog

Gemma Agent Latency vs. Token Count: What the 2B Experiment Actually Found

By Freedom251 Team · · 14 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Short answer: trimming the agent’s prompt from 266 to about 104 input tokens cut the final-step context by 61%, but it did not clearly reduce end-to-end response time. Lesly Zerna’s three-run Gemma 2 2B experiment on Ollama measured roughly 6.2–8.9 seconds per call, with overlapping variability in nearly every step. The result is a useful warning: context size and latency are related, but optimizing one does not guarantee improving the other.

The work is a small, clearly bounded case study—not a benchmark of every Gemma model or a 30-turn production conversation. It measured four short Spanish troubleshooting prompts on an undescribed consumer Apple Mac, using a stateful prompt loop rather than tools, retrieval, or a separate agent framework. Here is what the code did, what the numbers show, what failed, and how to reproduce the comparison.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

At a glance

Name Best for Key spec Platforms Checked
Naive accumulation Keeping the complete conversation history 107 → 266 input tokens over four steps; current chunk is duplicated Ollama with Gemma 2 2B November 2026
Length pruning Bounding prompt growth on constrained hardware 71 → about 104 input tokens; retains first 100 characters of the previous answer Ollama with Gemma 2 2B November 2026
Gemma 2 9B attempt Testing a larger model (comparison not completed) No complete response after more than 30 minutes on the laptop Ollama on a consumer Apple Mac November 2026

Source: Zerna’s repository and experiment files, with the article’s interpretation in her DEV Community report.

What question was the experiment trying to answer?

Zerna started with a common production worry: tutorials often resend the entire conversation on every turn. She calls this pattern linear context stacking. As another troubleshooting chunk arrives, the prompt grows, every call has to process more history, and eventually the application can hit a context limit or become harder for the model to use effectively.

Popular on Amazon
Sale
Silkland 40Gbps USB C 90 Degree Right Angle Adapter 2 Pack, 240W USB4 | Male to Female Extender, 8K@60Hz, Thunderbolt 4/3, Steam Deck, ROG Ally, MacBook, Switch 2, iPhone 18/17/16/15, Quest 3 VR
  • 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
  • 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
  • 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
  • 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
  • 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.

She also connects long histories to the “lost in the middle” phenomenon, in which information in the middle of a long context can receive less attention than information near the beginning or end. The article does not identify a particular paper or quantify that quality effect, so it is best treated as motivation rather than as a measured result here.

The cost has two forms. A closed, pay-per-token service turns unbounded history into a larger bill. A local open model turns it into an infrastructure problem: RAM, compute time, and hardware access. Zerna notes that this matters in universities, research labs, and small teams that may have no dedicated GPU. In that setting, an unbounded context can determine whether an agent runs at all.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Her practical question was therefore narrower than “what is the fastest agent?” She wanted to move an educational prototype toward a system that could keep operating during longer conversations on limited hardware, then check whether reducing the prompt also made each call faster.

What did the code actually run?

The repository is important because the article’s English code sketch is simplified. The numbers came from the Spanish prompts and the exact Python script in run_experiment.py.

  • Model: gemma2:2b, Google Gemma 2 with 2 billion parameters.
  • Runtime: Ollama, called from Python with ollama.generate.
  • Agent structure: one stateful prompt loop. There were no tools, planner, retrieval step, or separate agent framework.
  • Runs: three independent runs for each pipeline, preceded by a discarded warm-up call using the prompt hola.
  • Timing: time.time() around the entire ollama.generate call, rounded to two decimal places.
  • Token counter: Ollama’s prompt_eval_count, rather than an estimate based on words.
  • Hardware: described only as a regular, consumer Apple Mac. The article and README do not state the chip, memory capacity, model year, or macOS version.

The warm-up was intended to keep model loading out of the first measured call. It removed a known cold-start effect from the comparison, but it did not make step 1 fast: step 1 remained the slowest mean for both pipelines in the published table.

What was in the prompts?

Each of the four synthetic Spanish chunks described an authentication microservice. The task instruction was exactly:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Extrae las métricas técnicas, problemas identificados y soluciones aplicadas en el siguiente texto:

The chunks covered an unoptimized SQL query on a users table; a B-tree index on email and a Redis cache with a 300-second TTL; a claimed drop from 1,200 ms to 150 ms while Redis RAM rose by 15%; and Redis 7.2 with the volatile-lru eviction policy. Those values belong to the fictional troubleshooting text. They are not Gemma timings, measurements of the Mac, or results from Zerna’s infrastructure.

The small workload matters. Four short chunks are enough to show prompt assembly and variability, but they do not establish how a 30- or 50-turn production conversation behaves. The long-conversation risk is the reason for the experiment, not a curve that the experiment timed.

Also popular on Amazon
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

How did the naive and pruned pipelines differ?

The naive pipeline accumulated every previous chunk in a history string, then added the task instruction and the current chunk. Because the current chunk was already appended to the history before the call, it appeared twice. That explains why the first naive prompt was already 107 tokens while the first pruned prompt was 71 tokens.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The pruned pipeline built each prompt from a compact previous state, the same task instruction, and the current chunk. After each response, it replaced the state with the first 100 characters of the model’s reply, prefixed as Último estado: .... This is not a semantic summary produced by a second model call. It is a hard character cut of the prior answer.

Pipeline State retained between calls What it controls What it risks
Acumulativo (naive) All previous chunks, plus the current chunk again Preserves the supplied history Prompt growth, duplicated text, context-limit pressure
Pruning (optimized) First 100 characters of the latest model response Keeps prompt size near a plateau Can discard a fact needed by a later turn; answer quality was not scored

Calling the second approach a “summary” can be misleading. The repository implements truncation, not semantic compression. Zerna explicitly warns that trimming by length rather than relevance can lose important historical information.

How many tokens did pruning save?

The token result is the clearest success. The averaged repository CSV reports the following input-token means for gemma2:2b:

Step Naive tokens Pruned tokens Difference
1 107 71.0 36.0 fewer
2 165 106.667 58.333 fewer
3 225 113.333 111.667 fewer
4 266 103.667 162.333 fewer

These are the published means in resultados_gemma_promediado.csv. The naive series grows from 107 to 266 tokens. The pruned series is better described as a plateau than as a perfectly flat 104-token line: its means are about 71, 107, 113, and 104.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

At step 4, the reduction is (266 − 103.667) ÷ 266 = 61.0%. That is the author’s 61% reduction, and it applies to the final step—not to every step or to an average over the whole experiment. The token standard deviation is 0 for every naive step because the prompt assembly is deterministic. The pruned side has small nonzero token deviations because the retained text comes from model output, which varied slightly across runs.

If you calculate an across-step average yourself, the naive means average 190.75 tokens and the pruned means about 98.7, or roughly 48% fewer. That is a derived check, not the headline result. The defensible short version is “61% fewer input tokens at the final step.”

Did fewer tokens make the agent faster?

No clear end-to-end speedup appeared. The timing column covers the full generate call, including whatever input processing and output generation Ollama performed. It does not split prefill, time to first token, or decoding.

Step Naive mean ± standard deviation Pruned mean ± standard deviation Published reading
1 8.497 ± 1.137 s 8.903 ± 2.513 s Wide overlap; pruning is slower on the mean and more variable
2 6.520 ± 0.417 s 7.740 ± 0.471 s Pruned is about 1.2 s slower; the one-standard-deviation bands do not overlap
3 6.987 ± 0.493 s 7.143 ± 0.535 s Means are close and bands overlap
4 6.290 ± 1.627 s 6.207 ± 1.762 s Practical tie; the 0.08-second gap is far inside the spread

The repository README summarizes the central result as about 6–8 seconds of total response time on the 2B model. The full table ranges from 6.207 to 8.903 seconds. With only three runs per condition, the standard deviations are noisy, and no p-value, t-statistic, or confidence interval is published. The overlapping bars support a cautious descriptive statement, not a formal claim that the two methods are statistically equivalent.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Step 2 deserves special attention. It is the one row where the one-standard-deviation intervals do not overlap, and the pruned mean is slower. That single row is why “almost every step” is more accurate than “every step.” Step 4 is the most persuasive practical comparison: it has the largest token gap but almost no latency gap.

Zerna’s explanation is that, for a 2B model and these short prompts, total time was dominated by the number of output tokens generated rather than the number of input tokens read. Her wording is worth preserving: “The intuition says: fewer input tokens, faster response. The real data didn’t back that up — at least not clearly.” She also writes, “Saving tokens doesn’t automatically buy you latency.”

Why can input-token savings fail to reduce total latency?

Autoregressive generation produces output one token at a time. If decoding is the expensive part of a short request, shaving several dozen input tokens may not move the wall-clock total enough to see above run-to-run variation. That is the regime Zerna believes this experiment occupied.

But the published artifact cannot prove the exact input-versus-output split. The CSV has no output-token column and no prefill duration. The script records one elapsed time around ollama.generate; it never records time to first token (TTFT), prompt-processing time, or separate decode time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A commenter, rahulraps, asked whether TTFT and total generation time had been separated, noting that a voice agent can benefit from earlier first audio even when total completion time is unchanged. The visible article thread does not contain a reply or an added measurement. Therefore, the strongest accurate conclusion is narrower: the combined call duration did not clearly improve in this setup. The experiment does not tell us whether the first token arrived sooner.

This distinction matters operationally. A batch extraction job may care about total completion time. A chat or voice interface may care more about TTFT and then about the ongoing token rate. Instrument those phases separately before deciding which optimization matters.

What did not work in the case study?

  1. The latency hypothesis failed to confirm itself. The 61% final-step input reduction did not produce a clear end-to-end win on Gemma 2 2B for four short steps.
  2. The Gemma 2 9B comparison never completed. Zerna reports more than 30 minutes on the consumer Mac without one complete response, after which she cancelled it. The script leaves gemma2:9b commented out. There is no 9B latency table.
  3. Word-count token estimates were abandoned. The first approach estimated tokens from word counts. The final script uses Ollama’s prompt_eval_count, which is the relevant runtime measurement.
  4. A single run was not dependable. The cleaner-looking first pass did not survive the three-run view. The protocol she settled on—warm-up, three runs, and real token counts—makes variability visible.
  5. Length pruning is not semantic memory. Keeping 100 characters can remove a constraint, identifier, or earlier decision that a later answer needs. The article treats semantic summarization as future work, not as part of the measured pipeline.
  6. The instrumentation cannot answer the TTFT question. One elapsed duration per call is insufficient for interactive-latency diagnosis.

Zerna calls the negative latency result “honestly the most valuable finding of the whole experiment.” It prevents a common optimization shortcut: assuming that a smaller prompt automatically means a faster user-visible response.

What happened with Gemma 2 9B?

The larger-model trial is a hardware result, not a performance comparison. Zerna writes, “I never got that data. Over 30 minutes running on my laptop, without a single complete response. I had to cancel it.” The README gives the same outcome: no complete response after more than 30 minutes on a consumer Apple Mac.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That failed run means there is no evidence here about whether pruning would help Gemma 2 9B more than Gemma 2 2B. The planned question—whether a larger model would make long prompts more expensive to process—remains unanswered. Zerna’s stated next step is to repeat the comparison on infrastructure with a dedicated GPU. No GPU model, cloud instance, or expected speed is specified.

Also popular on Amazon
Sale
BENFEI USB C Hub 5-in-1 with 4K HDMI(Certified), 100W Power Delivery, 3 USB-A, Silicone Cable, Aluminum Case Compatible with MacBook Pro/Air, iPad Pro, iMac, iPhone 15 Pro/Pro Max, XPS, Thinkpad
  • Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
  • Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
  • 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
  • 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
  • Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.

The broader lesson is access. “The barrier to experimenting with larger models isn’t just a software optimization problem, it’s a hardware access problem.” A design that is theoretically elegant but cannot produce a complete response on the available machine is not a practical local deployment.

Does another Gemma measurement show the opposite latency regime?

Yes, but it is a different model, runtime, prompt length, and machine, so it should not be merged with Zerna’s CSV. In an October 2026 Towards AI measurement, Marko Mihajlovic used Gemma 4 E2B through llama.cpp on a laptop GPU with 4 GB of VRAM.

Generation stayed near 32–33 tokens per second, while prompt size strongly affected the time before visible output. Across three repetitions, the reported median TTFC was about 0.50 seconds for a 128-token prompt and 8.03 seconds for a 2,045-token prompt. Total latency rose from 2.49 to 9.88 seconds, and the server reported about 8.02 seconds of prompt processing for the largest input.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That is a prefill-dominated regime: a prompt almost eight times longer than Zerna’s largest naive prompt can delay the first response substantially. It does not contradict her result. It shows why “token reduction” has to be tied to model size, runtime, prompt length, hardware, and the latency phase being measured. Zerna’s claim is not that token cuts never help; it is that they did not clearly reduce end-to-end time for this short-context Gemma 2 2B setup.

How can you reproduce the experiment?

The repository provides a free reproduction path. A local run will not reproduce the same seconds unless the hardware and software environment match, and the hardware details of the original Mac are not published.

  1. Install Ollama. Use the installer at ollama.com/download.
  2. Pull the model.
    ollama pull gemma2:2b
  3. Clone the repository. Use Zerna’s GitHub project.
  4. Install Python requirements.
    pip install -r requirements.txt
  5. Run the script.
    python run_experiment.py
  6. Inspect the outputs. The script writes per-run data, an averaged CSV, and a figure. The repository already includes data/resultados_gemma_promediado.csv and a figure for reference.

The script imports time, pandas, ollama, and matplotlib. The available data does not specify dependency versions, so do not assume that a future environment will produce byte-for-byte identical output. Keep the warm-up, run each pipeline three times, and preserve the raw per-run values so standard deviations can be checked.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How should you apply the result to a real agent?

Use context management and latency instrumentation as separate workstreams.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

1. Measure the phases that users experience

Record prompt-token count, output-token count, TTFT, prompt-processing time if the runtime exposes it, decode time, total duration, and peak memory. A single wall-clock value cannot tell you whether pruning helped prefill, decoding, or neither.

2. Establish a quality guardrail

For an extraction task, compare structured fields against a reference set or have reviewers score whether required facts survive. Zerna’s CSV contains no exact-match or human quality score, so her experiment cannot show that the 100-character state preserved answer quality.

Also popular on Amazon
𝟒𝐏𝐚𝐜𝐤 𝐔𝐩𝐠𝐫𝐚𝐝𝐞𝐝 USB to USB C Adapter,Type-C Female to A Male Charger Converter for iPhone 18 Charger,iWatch Ultra SE 9 10,iPhone 17 Pro Max 16 15 14,Samsung S25,AirPods,iPad,Car,Xbox
  • 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
  • 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
  • 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
  • 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
  • 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.

3. Choose memory by information value, not character count alone

Hard truncation is a useful baseline because it is simple and cheap. For production, consider retaining explicit entities, constraints, decisions, and unresolved issues, while keeping a recent-turn window. A semantic-summary layer was proposed as future work in the repository, but it was not implemented or measured in this case.

4. Test the conversation length you actually need

Four steps demonstrate the mechanics, not long-horizon behavior. Extend the workload to the expected turn count and include the failure cases that matter: a fact introduced early, a correction several turns later, and a request that depends on both.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

5. Match the optimization to the bottleneck

If TTFT rises with long prompts, input reduction may improve responsiveness. If output decoding dominates, shortening history may stabilize memory and context limits without materially changing total time. If the model cannot complete at all, hardware or model selection is the immediate constraint.

What can readers conclude—and what can’t they?

The evidence supports five concrete conclusions:

  • Naive accumulation grew from 107 to 266 input tokens in four measured steps.
  • The length-pruned prompt ended at about 104 tokens, a 61% reduction versus the naive final step.
  • Published end-to-end means stayed in roughly the 6.2–8.9-second range, with no clear pruning advantage.
  • The workload was four short troubleshooting chunks on Gemma 2 2B through Ollama, not a long production transcript.
  • Gemma 2 9B produced no complete response in more than 30 minutes on the consumer Mac, so there is no 9B comparison.

It does not show that token reduction never improves latency, that pruning preserves answer quality, that Gemma 2 9B is unusable on all hardware, or that the exact result will transfer to another runtime. No independent laboratory replication is identified in the supplied sources. The right summary is Zerna’s own: “context management and latency are related problems, but they’re not the same problem, and optimizing one doesn’t guarantee improving the other.”

Where was the work presented?

Zerna’s article and README say the work was also presented as a poster at the Second South American NLP School in Buenos Aires on 3–4 August 2026. The school site confirms the two-day event at Ciudad Universitaria, Pabellones 0 and I, in the Department of Computer Science at the Universidad de Buenos Aires, with poster sessions on both mornings and into lunch.

The event page lists organizers from ICC (CONICET–Universidad de Buenos Aires), the NLP group at Universidad de la República, and the NLP group at Universidad Nacional de Córdoba. It also lists poster-award winners; Zerna’s poster is not in that winners list, so it should not be described as award-winning. The event context adds provenance, not another benchmark.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Bottom line: optimize the bottleneck you measured

Zerna’s experiment delivered a real context-size win and a negative latency result. A simple 100-character state kept Gemma 2 2B’s final prompt near 104 tokens instead of 266, but the complete call still took about as long. The practical next step is not to abandon pruning; it is to instrument TTFT, output length, and memory, then test a longer and quality-scored workload on the hardware you actually have.

Frequently Asked Questions

Does reducing prompt tokens always reduce LLM latency?

No. The effect depends on whether prompt processing or output decoding dominates, as well as on model size, runtime, hardware, and prompt length. A short request can save input tokens without moving the total enough to notice.

What is the difference between TTFT and total generation time?

Time to first token measures how long the user waits before any output appears. Total generation time includes producing the complete response, so an optimization can improve perceived responsiveness without shortening the full completion.

Is keeping the first 100 characters of an answer a safe memory strategy?

It is a simple bounded-state baseline, not a reliable semantic memory. It can cut off names, requirements, or decisions that a later turn needs, so production systems should add relevance or quality checks.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why was Gemma 2 9B not compared with the 2B model?

On the reported consumer Mac, the 9B attempt ran for more than 30 minutes without one complete response and was cancelled. Without a completed run, there are no valid 9B token or latency numbers to compare.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of November 23, 2026 11:29 am GMT+0530.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.