b12902
A performance optimization has been implemented in the CUDA backend to improve half-precision (f16) conversion efficiency when utilizing kv_rows, enhancing inference speed for models using this feature.
Search headlines, summaries and articles to connect the dots.
A performance optimization has been implemented in the CUDA backend to improve half-precision (f16) conversion efficiency when utilizing kv_rows, enhancing inference speed for models using this feature.
The update introduces several Vulkan optimizations for convolution operations, including a new 'halo' shader that reduces redundant memory accesses, split_k support for both 2D and 3D convolutions, improved tile selection, and better workgroup traversal. These changes enhance performance on RTX 5090, with up to 2.71x speedup in some cases, and improve efficiency by eliminating wasted accumulator space and optimizing memory layout.
bg-be-gone is an app I built initially with the goal of removing the background from my spouse's pictures in FFXIV, but then I really got interested in the ML side of this!That led me down the rabbit-hole of learning about BiRefNet and alternatives, and eventually I also stumbled into Facebook (now Meta's) segment-anything (SAM).I've been using this pretty heavily for background removal, but one thing that most freemium BG removal tools (or bucket-fill magic wand without some feathering/etc) is getting nice outlines of cartoons/anime.Using BiRefNet general, there's not really this issue!I then had to deal with the fact that BiRefNet tries to infer a subject in images. Normally. But there could be multiple.Well, they handle that, but they don't handle if you wanna crop out just one, or focus on something non-obvious.Then I remembered that my iPhone used to allow me to hold on an object in an image and it'd get a segment. Found out that uses their version of SAM. Implemented it myself.This thing's so awesome! There's so many things I built on top of it with Claude which allow me to give the model a hand! We ended up with a very nice experience where we can fix the model's mistakes and do some pretty amazing crops of subjects on very convoluted images.The thing is, this is not like touching up with the wand in PhotoShop. I use a brush, but it snaps to edges based on what the model infers, so the outlines DON'T LOOK LIKE SHIT!! It's amazing!Anyway. It also supports GIFs, WebP, batches, etc! I think it's pretty awesome and I'm happy and proud with it! I'd love if it helped anybody! Comments URL: https://news.ycombinator.com/item?id=50711166 Points: 1 # Comments: 0
The ggml library has been updated to clean up the Flash Attention (FA) bias API by renaming functions, removing redundant checks, and generalizing the bias handling. The changes include renaming indexed-bias functions to use 'bias_indexed', introducing a unified 'ggml_flash_attn_ext_add_bias' function that handles both dense and indexed biases, marking old wrappers as deprecated, and ensuring consistent behavior across CPU, CUDA, Vulkan, and other backends. Additional improvements include fixing template names, improving validation order, and clarifying documentation on bias scaling.
The release includes porting indexed bias Flash Attention to refactored loaders for CUDA, ensuring F32 bias support matches CPU reference and routing rows via KV_indirection. It also fixes NaN issues by returning zeros for fully masked FA query rows, aligning behavior with ggml-cpu. Code review was conducted by Fable.
The update addresses several issues in the ggml-openvino backend, including fixing write-back for in-place nodes in op-test graphs, improving partial in-place FILL buffer handling, enhancing softplus precision for large negative inputs, refining GPU KV rounding for decode batches to reduce performance loss, maintaining a static head axis in 4-D KV cache, and adjusting code formatting for consistency.
The latest update to llama.cpp adds support for the Tencent Hy4 flash model, including integration with the DSA iSWA cache, optimized KV caching, and improvements for long contexts. The update includes changes to handle sparse and sliding-window layers, Engram tables, and indexer operations, along with optimizations for CUDA, Metal, and CPU backends. Vision tower support and unified KV cache usage are also implemented, while redundant code was removed and comments cleaned up.
A CUDA kernel issue where non-contiguous concatenation mapped dst ne[2] and ne[3] directly to gridDim.y and gridDim.z, which are capped at 65535, has been resolved by capping the grid and looping over remaining rows in the kernel to handle larger tensors without triggering "invalid configuration argument" errors. Fixes #32956.
The update includes multiple fixes and enhancements for the ggml-openvino backend, such as improved handling of dynamic dimensions, corrected buffer management, optimized graph translation, and better support for models like Qwen3.5, Qwen3.6, and Ling-3.0-tiny. It also addresses issues with zero points in quantized weights, memory leaks, and incorrect behavior in GATED_DELTA_NET and attention operations. New diagnostic features and environment variables are added, along with updated documentation and release binaries for various platforms including Linux, Windows, macOS, Android, and others.
The Metal concat kernel was optimized by batching rows per threadgroup and copying contiguous elements in 4-element chunks, improving memory bandwidth utilization. However, further optimizations including function constant specialization and row-batch dispatch were reverted due to performance regressions on certain shapes, particularly when already at memory bandwidth limits. The final change retains only the vectorized copy and returns to the original dispatch for better overall performance across diverse hardware configurations.
The llama.cpp v1.2590 release introduces integration of the Drama3 voice cloning model with the Fish S2 codec encoder, enabling shared use of codec and audio encoder key-value pairs. The fish_s2_spkenc function now outputs clip codes and constructs Drama3 backbone rows, while the Drama3 pipeline uses reference frames through a backbone and tower with teacher forcing. Additional updates include correctness fixes, code cleanup, and removal of redundant code.
Hugging Face Transformers v5.24.0 introduces several new models including Inkling 2 Mini, Apertus 1.5, WavTokenizer, Dory, HY4-VL, Omnilingual ASR, Lara Mini, SarvamMLA, SarvamMoE, and EXAONE. The release features a major breaking change renaming `past_key_values` and `cache_params` to `cache` across the library, standardizing cache handling. Multimodal models now return shared output classes instead of model-specific ones. Additional updates include improvements to generation, continuous batching, chat templates, pipelines, vision and audio processing, quantization, parallelization, exporters, and numerous bug fixes.
The update introduces a new tensor API conv_2d kernel for Metal, enabling split-K optimizations across all chips, including M5. It improves efficiency by utilizing tensor cores, reducing idle GPU time during long reductions. The kernel now splits reductions into partial sums stored in buffers, with a follow-up kernel summing them deterministically. Address math is optimized using 32-bit byte offsets, reducing computational overhead. A fallback to the generic kernel is implemented for images exceeding 4 GiB. Performance benchmarks show significant speed improvements on M5 Max devices, with reduced execution times across various convolution configurations.
The llama.cpp v1.25.49 release includes fixes for Inkling 2 attention mask handling, making the relative-position input a hybrid iswa input, enabling optional expert weight scale and final logit softcap, and improving KV rows mask generation for hybrid iswa memory. The update also standardizes code formatting in inkling2.cpp and ensures compatibility across multiple platforms including macOS, Linux, Windows, Android, and openEuler.
The update includes fixes for OpenVINO CI, optimizations for model recompiles in the prefill stage, improvements to output handling during model reuse, and support for f16 SCALE and f16/bf16 TRI operations. It also addresses issues with static-shape views in MoE layers, enhances SSM_SCAN build checks, and adds Falcon-H1 to the list of validated OpenVINO models with noted limitations.
Dify 1.20.0 introduces support for exporting traces to any OpenTelemetry collector, enables malware scanning of uploaded knowledge files, adds real-time Agent tool activity visibility in Chatflows, and allows automation via personal access tokens. New Human-in-the-Loop (HITL) features integrate approvals into messaging tools like Slack and Teams, while configuration changes include updated defaults for security and integration settings. The release also includes database migrations, improved performance, and bug fixes related to file handling, authentication, and worker stability.
The Llama Chat UI has been upgraded to SvelteKit 3, integrating its built-in service worker for improved update detection and offline functionality. The migration includes updates to Vite 8, TypeScript 6, Storybook 10, and ESLint 10, along with the replacement of deprecated packages and resolution of npm audit issues through dependency overrides, including pinning minimatch to version 11.0.5 to address a security vulnerability. Changes also align with current Svelte patterns, such as using $state instead of stores and adopting new syntax for actions and class bindings.
The latest release of llama.cpp introduces support for Inkling 2, including text and vision capabilities. This update includes text inference implementation, GGUF conversion for text models, vision multimodal projection support, still-image encoding, flash attention with folded bias and sinks, and improvements to tensor mapping and testing. The changes also address model conversion, checkpoint handling, and compatibility across multiple platforms, with support for CPU, GPU (CUDA, ROCm, Vulkan), and specialized hardware like Snapdragon and OpenVINO.
The update refactors DFlash-based speculative decoding methods in llama.cpp by restructuring code organization, sharing components across models, splitting decoder graphs per head, and introducing dedicated classes for DFlash2 and LiliCorr drafts. It also adds support for new draft types, improves documentation, and removes unused code.
The llama.cpp project has released version 1.0.0, marking a significant milestone with numerous improvements across multiple platforms including CUDA, Vulkan, Metal, SYCL, OpenCL, and WebGPU. Key updates include enhanced support for quantized models (Q5_0, Q5_1, FP8), optimizations for flash attention and MoE caching, improved server security features like CORS protection and SSRF mitigation, UI enhancements such as sidebar reorganization and live-preview markdown editing, and better cross-platform compatibility. The release also includes bug fixes, CI/CD improvements, and updated dependencies.