Same impression here. If this is Google's strategy we'll have to migrate to Luna, because costs are already high for our workload on 3.8 Flash (which in itself was already a 40% increase compared to 3.7 flash due to being more verbose and thinking more) and this now doubles cost once again.
Depends on your needs. Gemini Flash has best bang for your buck on visual tasks and best multilingual support/intelligence for non-Western/non-East-Asian languages; better than paid or OSS alternatives.
Yes I gave for granted textual tasks but they're not the only ones. If I remember correctly, mistral large should be good as well on image tasks while being cheap(er). I never had to do anything with less common languages tho
Sorry, i should have been clearer: bare metal here meaning any other provider like, for instance, Hetzner. We use a local provider. 10x savings when compared to AWS.
Carmine is cooking. His work on RubyLLM has been incredible, even going as far as upstreaming important work about fiber usage into Rails Solid Queue so that we reap the Async benefits, which are essential in this LLM age.
Fiber mode isn’t universally better. CPU-bound jobs get nothing from it, and blocking libraries or C extensions that do not cooperate with Ruby’s fiber scheduler stall the reactor. And that’s fine – you don’t have to pick one.
As Trevor Turk pointed out in the PR discussion, that’s the whole point: separately configured worker pools. Here’s what Chat with Work actually runs in production:
Carmine (which coded this Fibers update) wrote about this in his blog. See the section 'The database connection math'. And no, you won't have one connection per fiber.
The difference is staggering when you compare to threaded mode: it requires 1,320 database connections to run the same benchmark that the fiber mode runs with 60.
Pretty sure that is entirely an unfair comparison. You don't need a connection per thread either. It is common to have web servers handles thousands of requests per second with a connection pool size of 20. As long as the handler threads borrow a connection for only a little time and block waiting for a connection while other threads are doing their thing, it works out fine.
There is absolutely no logical reason why database pool sizing could be a reason for preferring fibers over threads.
reply