Ollama and AMD 780m GPU

Ollama is a cool tool for running LLMs locally. However, it requires significant computational resources to function properly. I’ve had some issues when configuring it to run over GPU for my AMD 780M graphics card.

PHP Generator

Just a regular function, which yields things (but can return them sometimes as well).

Stream large video file in Symfony

Streaming a large video file from your Symfony application is an interesting problem. We need to be able to serve data to the client continuously, as well as make sure memory footprint on server is not causing issues. Let’s take a look at a simple approach to solving this.

Output buffering

One of those weird function calls we see when reading internal code for majority of frameworks. ob_start() and ob_end_flush() may have caused some confusion, but no more. The thing is fairly straightforward.