News for hackers. Stuff that matters.
Re:It looks like GPT-4-32k is rolling out by YetAnotherNick on Saturday May 06, 2023 @10:28AM (#35841708)
32k context is $1.92 for each request.
Re:It looks like GPT-4-32k is rolling out by achandlerwhite on Saturday May 06, 2023 @10:42AM (#35841828)
Is it prorated for the actual context used for each request?
Re:It looks like GPT-4-32k is rolling out by ZephyrBlu on Saturday May 06, 2023 @10:52AM (#35841921)
Yes, it's not a fixed price: https://openai.com/pricing.
Re:It looks like GPT-4-32k is rolling out by ZiiS on Saturday May 06, 2023 @10:51AM (#35841909)
Yes
Re:It looks like GPT-4-32k is rolling out by nico on Saturday May 06, 2023 @11:03AM (#35842043)
For reference, a dev making USD 100k/year and working about 240 days a year, 8 hours/day = total of 1920 hours, or about USD 52/hour, USD 416/day

52/1.92 = 27 416/1.92 = 217

So using GPT-4 with 32k tokens, 27 times per hour, or 217 times per day, in terms of cost, is approximately the equivalent of another dev

Re:It looks like GPT-4-32k is rolling out by ukuina on Saturday May 06, 2023 @11:23AM (#35842218)
FYI, 27 times per hour is basically nothing. With GPT4 over the API, I make 2-3 completion requests a minute, for 30-60 minutes at a time, when building an LLM app. This happens for 3-4 hours per day.

At the upper bound, this would be $2 * 3 * 60 * 4 = $1440 a day.

Thankfully, I am using retriever-augmentation and context stuffing into the base 4k model, so costs are manageable.

The 32k context model cannot be deployed into a production app at this pricing as a more capable drop-in replacement for shorter-context models.

Re:It looks like GPT-4-32k is rolling out by ZephyrBlu on Saturday May 06, 2023 @11:37AM (#35842393)
Depends heavily on your product. I can imagine there are quite a lot of use cases that have relatively infrequent API usage or highly cacheable responses.
Re:It looks like GPT-4-32k is rolling out by bomewish on Saturday May 06, 2023 @10:58PM (#35847479)
> retriever-augmentation and context stuffing

Care you elaborate? This sounds very interesting & useful. Just anything about the setup and implementation would be super helpful.

Re:It looks like GPT-4-32k is rolling out by ukuina on Monday May 08, 2023 @01:47AM (#35858523)
Re:It looks like GPT-4-32k is rolling out by KeplerBoy on Saturday May 06, 2023 @11:12AM (#35842124)
That's a lot of requests.

Not that it matters for the calculation, but i wonder how long such a request (ingesting 32k tokens and responding with a similar amount) would take.

At the speed of regular ChatGPT take would take a good while.

Re:It looks like GPT-4-32k is rolling out by atq2119 on Saturday May 06, 2023 @01:42PM (#35843595)
Batch processing scales quadratically with the context size (assuming OpenAI is still using standard transformer architecture) but the batch processing of the prompt is also fast compared to generating tokens because it's batched (parallel). So I wouldn't expect effective response times to go up quadratically. At most linearly, depending on the details of how they implement inference.
Re:It looks like GPT-4-32k is rolling out by danjc on Saturday May 06, 2023 @02:56PM (#35844299)
It's exceedingly expensive and must surely come down over time.