Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Opus 5, Max, Fast: Prompts: 8 Input (cache write): 1,181,215 Input (no cache): 227,275 Cache read: 70,291,242 Output: 302,449 Total tokens: 72,002,181 Cost (USD): $117.7400 Most of the money was spent on trying to get the body and the swing not to look insane. I had to link like...

154,705 Aufrufe • vor 2 Monaten •via X (Twitter)

35 Kommentare

Profilbild von ThePrimeagen
ThePrimeagenvor 2 Monaten

also i love that the ball gets relatively bigger to my body the further i hit the ball. Somehow that just makes me so happy

Profilbild von Michael🧙
Michael🧙vor 2 Monaten

Woh, thats crazy. you know back in 2002 this game would have made $5,000,000,000,000 on steam and now you can make it for $117

Profilbild von Zachary Meyer
Zachary Meyervor 2 Monaten

wow dude 5 yrs ago this would have been worth $15m total at least and you did this for only $117???

Profilbild von Barutoi
Barutoivor 2 Monaten

Is this supposed to be good or bad? Looks like wasted time and money to me.

Profilbild von Rovshan
Rovshanvor 2 Monaten

Just don't tell your wife on what you spent this $117

Profilbild von Jason
Jasonvor 2 Monaten

I just one shotted that shit with Gemini 3 flash preview for $0.02. Output Tokens: 5,729 Total Tokens: 19,589 Total Cost (USD): $0.021740

Profilbild von waterfowl
waterfowlvor 2 Monaten

there's something sad about the fact people are spending 72 million tokens on what is essentially a crappy flash game from 2001

Profilbild von Levi
Levivor 2 Monaten

“Vibe coding” prompts? Or were you in the loop?

Profilbild von ThePrimeagen
ThePrimeagenvor 2 Monaten

/loop

Profilbild von Nate Wilson
Nate Wilsonvor 2 Monaten

The future is here! We can finally make 2005 flash games again. Thank you AI overlords!

Profilbild von montano
montanovor 2 Monaten

it’s so over

Profilbild von Steve Brownlie
Steve Brownlievor 2 Monaten

and yet this is what golf games looked like on donkey hardware 36 years before ai...

Profilbild von ink
inkvor 2 Monaten

i can't overstate how bad this looks

Profilbild von Ahmad Awais
Ahmad Awaisvor 2 Monaten

@naymur_dev time to do this with open models using @CommandCodeAI :P

Profilbild von keccak
keccakvor 2 Monaten

You know back in the day you could have made it for free over a period of months and no one would have cared. Now you spent 117 $ over a few hours and no one cares.

Profilbild von Michael Lulev
Michael Lulevvor 2 Monaten

Try creating the same thing using Grok 4.5 high in Grok Build. Compare the time it takes and the cost.

Profilbild von Brandon Falk
Brandon Falkvor 2 Monaten

Please god tell me you're making a golf game but with qwop controls for the golfers arms/legs/swing.

Profilbild von Aman Shaikh 🇮🇳
Aman Shaikh 🇮🇳vor 2 Monaten

Wasted time and money I would prefer Opus 5 and Fable 5 for prototypes not for the final product Also geni 3 is good too

Profilbild von David
Davidvor 2 Monaten

Its only me or is 117$ a lot of money?

Profilbild von Michael Swengel
Michael Swengelvor 2 Monaten

And this seemed like a good use of money?

Profilbild von Chandraprakash Darji
Chandraprakash Darjivor 2 Monaten

$117, is more than my infra bill. See this kind of ui/frontend/design with AI, I feel like AI is very far behind at building frontend.

Profilbild von troneras
tronerasvor 2 Monaten

Can I add your game as an Easter egg in my app website? It’s about golf. I would keep this like an art piece generated by @ThePrimeagen Now that anyone can build, like painting, we may get more people that admires good craftmanship…

Profilbild von Nat Miletic
Nat Mileticvor 2 Monaten

It's these dumb things usually that eat up all of the tokens I swear LOL

Profilbild von Nicholas Gilmet
Nicholas Gilmetvor 2 Monaten

Love all your stuff, Prime. No hate from me here; I default to agreeing with your takes on most things. Just wanna ask: is this you saying “look how good this model is!” Or “look how bad this model did here!” ? I can’t tell. I could just be dumb tho

Profilbild von Prasenjit Sarkar
Prasenjit Sarkarvor 2 Monaten

Campfire ( ) generates a cost card per session: backend, model, token breakdown, USD total. Shareable with the team. Cost-cascade mode runs the same task across multiple backends in isolated worktrees, so you can see what each one actually costs before committing.

Profilbild von Mefa
Mefavor 2 Monaten

Lmfao what is this slop 😭

Profilbild von Mikhail Rogov
Mikhail Rogovvor 2 Monaten

72M tokens for $118. Cache reads completely change what token count means.

Profilbild von Carlos
Carlosvor 2 Monaten

this is where I am puzzled; I see this slop and I am like well those are similar results to what I get; but then I see in X some people claiming they one shot a Call of Duty with 3d?! someone must be lying 😛

Profilbild von relentless.build
relentless.buildvor 2 Monaten

People: "Look at this absurd golf thing I made for $117!" Also people: "$90 for GTA 6 is too expensive!"

Profilbild von intern
internvor 2 Monaten

$117? That’s wild

Profilbild von Tor Tor
Tor Torvor 2 Monaten

I have a 20 subscription Used cliproxyapi To serve my own agent Did a similar test run yesterday Total token cap set to 10m It works fine, not even trigger the 5h limit. API price is not for individuals...

Profilbild von Jorge
Jorgevor 2 Monaten

I think at this point the best AI workflow pipeline is scaffold stuff → tweak a few things → ce-simplify-code → ask the AI to explain to you the codebase and get back to tweak a few things manually The smallest details you want changed live in a few easily identifiable files, it makes no sense to get an AI to take like 3 minutes for a 20 second surgical change you can Ctrl-F / rg

Profilbild von Tasa - 🇪🇸 🏴‍☠️
Tasa - 🇪🇸 🏴‍☠️vor 2 Monaten

Yeah you'd need some skills you know.

Profilbild von Alexandru Bogdan
Alexandru Bogdanvor 2 Monaten

Are you content with using this AI model?

Profilbild von Amadej Jerlah
Amadej Jerlahvor 2 Monaten

hope there's room for 1 million ads

Ähnliche Videos

How to cut your AI bill by 60% switching to Opus 5.5: Most people will swap the model name, save 24%, and stop there. The other 37% is sitting in your settings. Here's the real before and after on an example agent workload. One month: 100M input tokens (80M cached reads, 5M cache writes, 15M uncached) 10M output tokens BEFORE: Opus 5 Cache reads: 80M × $0.50 = $40 Cache writes: 5M × $6.25 = $31.25 Uncached input: 15M × $5 = $75 Output: 10M × $25 = $250 Total: $396.25 STEP 1. Just switch the model. Same tokens, new prices. Cache reads $0.20. Writes $5. Input $4. Output $20. $16 + $25 + $60 + $200 = $301 24% cheaper. That's what everyone's screenshotting. STEP 2. Let it write less. Box measured Opus 5.5 at 40% less verbose with no drop in accuracy. 10M output tokens becomes 6M. Output drops from $200 to $120. Total: $221. Now you're at 44% off. STEP 3. Stop running every call at max effort. Thinking can't be switched off on 5.5 anymore, so effort is your lever. Classifying, routing, formatting, summarizing? Drop the effort. Save the high settings for the calls that actually reason. Say that trims output another 25%, 6M down to 4.5M. Output: $90. Total: $191. 52% off. STEP 4. Cache the stuff you keep resending. This is the one nobody does. Cache reads went from $0.50 to $0.20. That's 60% off the cheapest line on your bill. Move your system prompt, tool definitions and repo context into the cache. Uncached input drops from 15M to 5M, cache reads go up to 90M. $18 + $25 + $20 + $90 = $153 AFTER: $153 From $396.25. 61% cheaper. Same work. The model gave you 24%. You gave yourself the other 37%. Anthropic's own number is 40% cheaper than Opus 5 on typical workloads. Your number depends on how much of your bill is output and how much of your prompt you're resending uncached every call. So check those two first. Bookmark this for when you migrate. follow CyrilXBT

CyrilXBT

15,803 Aufrufe • vor 25 Tagen

Jev + Opus 5.5: Anthropic's new model beats GPT-6 Astra for 1/5 the cost, and 4 API changes will 400 your agent before it writes a single line I pulled these 10 steps from the migration docs so you don't learn them in production step 1 → $4 / $20 per 1M. Opus 5 was $5 / $25. cache reads dropped from $0.50 to $0.20 step 2 → 66.4% on Terminal-Bench 4.0 vs GPT-6 Astra 57.9% and Opus 5 52.3%. +14.1 points in one release, and on FrontierCode it beats Astra at default effort for 1/5 the cost step 3 → thinking can't be turned off anymore. send thinking: disabled and you get a 400. drop the field, set effort step 4 → tool_choice any and tool are gone. 400. switch to auto + strict step 5 → edit anything above a thinking block and the request dies. append only, or opt into drop_block step 6 → computer_20251124 is dead on the API. 400. move to computer_toolset_20260801 step 7 → the quiet one: default effort fell from high to medium. your agent thinks less than you set it up to and nothing tells you step 8 → hop Opus 5.5 → Sonnet 5 → Opus 5.5 and you pay 4.36 instead of 3.32. +31%, the cache dies and Sonnet can't read Opus's reasoning step 9 → change effort at the top of the request and the cache is gone. Jev sets it per message and the cache stays step 10 → switch fast - standard mid-session and it's a full cache miss. Jev picks speed once, on turn one one model, three knobs, zero 400s. that is Jev + Opus 5.5 send this to your Claude Code before you touch the model ID, then read my full Jev deep dive in the article below ↓

Carnage

16,674 Aufrufe • vor 26 Tagen

Redis built a cache that cuts LLM costs by 90%! Production LLM apps do not receive completely new questions every time. A customer-support assistant might receive all three of these: - "Can I get a refund after buying the monthly plan?" - "Is the monthly subscription refundable?" - "Can I cancel the plan and get my money back?" The wording is different, but the underlying question and its answer remain the same. Yet LLM apps process every version as a new request. They assemble the prompt, send it to the model, and generate an answer that may have already been generated. Prefix caching reduces part of these repeated calls. When requests begin with the same system prompt or context, the model can reuse the KV states already computed for that shared prefix. But the request still hits the LLM. The new tokens must be processed, and the complete answer must still be decoded. So even with a prefix-cache hit, there's another generation call involved. To solve this, instead of only caching computation inside the model, the application can cache the generated response outside it. When another question arrives, the system embeds it and compares it with previously answered questions. If it finds a sufficiently close match, it returns the stored response without invoking the LLM again. A cache hit removes the input tokens, output tokens, and decoding time associated with another LLM call. In practice, it is important to decide which questions can safely share an answer since a production setup needs well-tuned similarity thresholds, expiration policies, data isolation, and monitoring for incorrect matches. If you want to use this in practice, Redis already implements it as a managed service called Redis LangCache. Under the hood, it generates embeddings, searches previous responses, and returns a matching answer before another model call occurs. Redis also handles access scopes, custom filtering, TTL and eviction controls, and cache monitoring through Redis Cloud. I built an interface to compare it against direct LLM inference. The video below shows this in action, and I worked with Redis on this post to put this together. For the paraphrased question in my run, direct inference took 2.232 seconds and consumed 514 input tokens plus 250 output tokens. Redis returned the earlier response in 0.37 seconds with zero LLM input or output tokens. That was roughly 6x faster in this run. Redis reports API cost savings of up to 90% and cache-hit responses up to 15x faster. The actual result depends on how much safe repetition exists in the workload. You can try Redis LangCache here: If you want to dive deeper, I have already written a detailed breakdown of KV, prefix, prompt, and semantic caching in the article quoted below. This demo builds on the final technique and shows it running in practice. Read it below.

Avi Chawla

166,230 Aufrufe • vor 1 Monat

A tricky LLM interview question: You're serving a reasoning model on vLLM, and it keeps running out of GPU memory on long traces. So you add KV cache compression and evict 90% of the cached tokens. VRAM usage stays as is and GPU still runs out of memory. Why? (answer below) Evicting 90% of the KV cache can free almost none of the memory it was using. This sounds counterintuitive, but it follows directly from how production servers store the cache today. The KV cache grows with every token a model generates. Each token appends its key and value vectors across every layer, and nothing is freed while generation continues. This is the dominant memory cost for reasoning models. If a 32K-token CoT caches ~32K tokens of KV vectors, a Qwen3-32B with 4-bit weights will run out-of-memory around 24K tokens on a 24GB GPU. One obvious solution is to keep the important tokens and drop the rest, since attention is sparse enough to allow it. But this does not solve the memory problem yet. The reason is paged attention, which is the memory manager behind vLLM and most production servers. Under the hood, it splits GPU memory into fixed physical blocks, each one holds the KV for about 16 tokens. This block returns to the allocator only when every slot inside it is empty. Since the eviction logic selects tokens by importance, and such tokens are scattered across blocks... ...so despite eviction, almost every block is left with at least some survivor tokens. For instance, if the logic evicts 14k of 16k tokens across 1,000 blocks, most likely every block will still have a token. This means the allocator frees almost nothing. Placing the new tokens into those freed slots is not ideal because it breaks the cache's layout. Say token 16,001 arrives, and it's placed in the slot the 40th token used to hold. The cache now reads position 38, then 16,001, then 41, so the cache is no longer in token order. Attention can still compute the right answer from that, but only if every slot now carries a separate note recording which position it actually holds. This introduces another bookkeeping cost that an in-order layout inherently avoids. So the cache is logically 90% smaller and still physically the same size. Many compression results miss this because they measure on pre-allocated contiguous tensors rather than a paged server. There's another problem. Eviction methods pick which tokens to keep by looking at the attention scores themselves (as expected). But fast attention kernels used in production, like FlashAttention, never save those scores. They compute attention in small pieces and throw the full score grid away as they go, which is also why they're fast. So the exact signal eviction methods need isn't available in memory. The workaround is to fall back to eager attention and build the full matrix, which gives up the speed FlashAttention was there to provide. NVIDIA published a method called TriAttention to solve both these problems. It never needs attention scores. Instead, it scores tokens from the geometry of the model's key and query vectors before RoPE is applied, where those vectors sit in stable clusters. For the memory problem, it runs a compaction pass every 128 decoded tokens. The surviving tokens slide forward to close the holes eviction creates, so whole blocks empty out and return to the allocator while the cache stays in token order. On long reasoning traces, the approach matches full-attention accuracy while decoding 2.5x faster and using 10.7x less KV memory. KV cache compression is a big infrastructure problem. The number that decides whether it works is the count of freed blocks, not the count of evicted tokens. You can find the NVIDIA write-up here: I wrote a first-principles breakdown of how the KV cache works. It walks through why the model stores keys and values at all, why the cache grows with every token, and a comparison of LLM generation speed with and without KV caching. Read it below.

Avi Chawla

273,779 Aufrufe • vor 3 Monaten

i spent 3 hours finding the sweet spot for hermes 4.3 36B on a single RTX 3090. saving you the trouble, anon. the model is 21.8GB at Q4_K_M. that leaves 2.2GB free on 24GB VRAM. not much room for KV cache. here's what actually happened: 4K: 35.3 tok/s 8K: 35.2 tok/s 16K: 34.8 tok/s 32K: 34.6 tok/s 64K: 6.4 tok/s 128K: 1.9 tok/s flat from 4K to 32K. then it falls off a cliff at 64K. the trick is quantized KV cache. without it you OOM at 16K. with quantized KV cache you get 32K at full speed. all 64 layers on GPU. at 64K something weird happens. ngl 99 (all layers on GPU) = 3.96 tok/s. the KV cache silently spills to CPU. drop to ngl 55 and speed jumps to 6.37. drop to ngl 48 and it gets worse again (3.46). there's an offload sweet spot where you free just enough VRAM for the cache without losing too much compute to PCIe transfers. 128K works at ngl 32 but you're at 1.95 tok/s. half the model on CPU. usable for batch work, not for interactive. the sweet spot command: llama-server -m hermes-4.3-36b-Q4_K_M.gguf -ngl 99 -c 32768 --cache-type-k q4_0 --cache-type-v q4_0 32K context. 34.6 tok/s. all on GPU. this is where dense 36B lives on 24GB. for comparison, qwen 3.5 (35B MoE, 3B active) holds 112 tok/s from 4K all the way to 262K on the same GPU. no speed drop. same total params, completely different architecture. hybrid linear attention means flat context scaling. dense pays for every token in the KV cache. code and quality comparison coming next. fast vs slow generation side by side in the videos below.

Sudo su

52,268 Aufrufe • vor 7 Monaten