dan_k8s running local qwen2.5-coder-7b-instruct with ollama for a quick VS Code extension hookup. getting around 42 tok/s on the home 3090 with --gpu-layers 35 and num_ctx 8192. curious what everyone else is using for python app integration when you want sub-50ms TTFT without spinning up a full vllm server. llama.cpp python bindings or just stick to the REST endpoints?
sam_gamer getting around 42 tok/s on the home 3090 with --gpu-layers 35 your context length is probably murdering your kv cache throughput once you push past 4k tokens. are you running Q4_K_M or unquantized? my 4080 super chokes hard on anything above num_ctx 4096 if I keep ComfyUI running in the background eating 4GB VRAM.
sam_gamer forgot to add, tested llama-cpp-python with explicit n_gpu_layers=-1 and it's noticeably faster than routing through the ollama daemon for direct async FastAPI integration. worth a look if you're shaving off every millisecond.