7-day edition

Nov 6, 2026 – Nov 12, 2026

The edition exactly as it was published. Nothing here is re-selected on a later reading.

Nov 13, 202612 reads · 889 merged PRs screened

core implementation

NVIDIA-NeMo/Speech · #16069

Files changed →View PR ↗

Improve distributed dataloader handlingPython · 112 + / 27 −

Introduces 4 new declarations in nemo/collections/common/data/lhotse/broadcasting.py.

Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.

nemo/collections/common/data/lhotse/broadcasting.py ↗ · 3 files

@@ -231,5 +254,67 @@ def _resolve_group_and_source(device_mesh, axes: Sequence[str]):      group = sub.get_group()     source_global_rank = int(sub.mesh.flatten()[0].item())-    _GROUP_CACHE[cache_key] = (group, source_global_rank)     return group, source_global_rank+++def _broadcast_packet(packet, group, src: int):+    """Broadcast one pre-serialized protocol packet over ``group``.++    Serializing before the first tensor collective lets the source replace an+    unpicklable data packet with a small error packet while receivers are still+    waiting for the packet size. Failures after a collective begins must be+    handled by the process-group timeout and distributed job teardown.+    """+    is_source = dist.get_rank() == src+    source_error = None+    if is_source:+        try:+            serialized = pickle.dumps(packet, protocol=pickle.HIGHEST_PROTOCOL)+        except Exception as error:+            source_error = error+            packet = _error_packet(error, "batch serialization failed")+            serialized = pickle.dumps(packet, protocol=pickle.HIGHEST_PROTOCOL)+    else:+        serialized = b""++    device = _broadcast_device(group)+    serialized_size = torch.tensor([len(serialized)], dtype=torch.long, device=device)+    dist.broadcast(serialized_size, src=src, group=group)++    if is_source:+        serialized_buffer = bytearray(serialized)

core implementation

huggingface/transformers · #50513

Files changed →View PR ↗

[masking] Fix packed sequences for abitrary mask formsPython · 49 + / 4 −

Introduces 3 new declarations in src/transformers/masking_utils.py.

Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.

src/transformers/masking_utils.py ↗ · 2 files

@@ -186,6 +190,38 @@ def inner_mask(batch_idx: int, head_idx: int, q_idx: int, kv_idx: int) -> bool:     return inner_mask  +def remap_positions_for_packed_sequence(mask_function: Callable, position_ids: torch.Tensor) -> Callable:+    """+    This function remaps the monotonically increasing `q_idx` and `kv_idx` to their actual per-sequence indices when we detect+    packed sequence format, i.e. several sequences inside the same batch dimension.+    Note that it is ensured that `position_ids.shape[1] == q_length == kv_length` here, so we can never have indexing problems here.+    If this was not the case, i.e. q_length < kv_length, we would need to infer the packed kv_position_ids, since the `position_ids`+    in the argument here are the packed query positions. Then we would need to remap q_idx and kv_idx with a different tensor.+    """++    def inner_mask(batch_idx: int, head_idx: int, q_idx: int, kv_idx: int) -> bool:+        return mask_function(batch_idx, head_idx, position_ids[batch_idx, q_idx], position_ids[batch_idx, kv_idx])++    return inner_mask+++def packed_sequence_compatibility_function(+    mask_function: Callable, position_ids: torch.Tensor, packed_sequence_mask: torch.Tensor+) -> Callable:+    """+    This function ensures compatibility of the current `mask_function` with packed sequence format, by making sure each sequence+    stays fully independent of all others, and the `q_idx` and `kv_idx` positions inside each sequence are correctly remapped to+    their actual values.+    Note that it is ensured that `position_ids.shape[1] == packed_sequence_mask.shape[1] == q_length == kv_length`, so we can never+    have indexing problems here.+    """+    # For packed sequences, we need to make sure each sequence are independent, as well as remapping the indices+    return and_masks(+        packed_sequence_mask_function(packed_sequence_mask),+        remap_positions_for_packed_sequence(mask_function, position_ids),+    )

systems design

kubernetes/kubernetes · #143980

Files changed →View PR ↗

Extract indexedWatchers.allMatchingWatchers iteratorGo · 33 + / 15 −

Introduces 4 new declarations in staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go.

Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.

staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go ↗ · 2 files

@@ -1257,24 +1258,41 @@ func (c *Cacher) startDispatching(event *watchCacheEvent) {  	namespace := event.ObjFields["metadata.namespace"] 	name := event.ObjFields["metadata.name"]-	forEachSelectionKey(namespace, name, triggerValues, supported,-		func(scope namespacedName) {-			for _, watcher := range c.watchers.scopeWatchers[scope] {-				c.watchersBuffer = append(c.watchersBuffer, watcher)-			}-		},-		func(indexValue string) {-			for _, watcher := range c.watchers.indexWatchers[indexValue] {-				c.watchersBuffer = append(c.watchersBuffer, watcher)+	for watcher := range c.watchers.allMatchingWatchers(namespace, name, triggerValues, supported) {+		c.watchersBuffer = append(c.watchersBuffer, watcher)+	}+}++func (i *indexedWatchers) allMatchingWatchers(namespace, name string, triggerValues []string, triggerSupported bool) iter.Seq[*cacheWatcher] {+	return func(yield func(*cacheWatcher) bool) {+		stopped := false+		yieldWatchers := func(watchers watchersMap) {+			if stopped {+				return 			}-		},-		func() {-			for _, watchers := range c.watchers.indexWatchers {-				for _, watcher := range watchers {-					c.watchersBuffer = append(c.watchersBuffer, watcher)+			for _, watcher := range watchers {+				if !yield(watcher) {+					stopped = true+					return

language design

rust-lang/rust · #165047

Files changed →View PR ↗

Change the span building of paths from first-to-last to chainedRust · 43 + / 4 −

Introduces 3 new declarations in compiler/rustc_parse/src/parser/path.rs.

Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.

compiler/rustc_parse/src/parser/path.rs ↗ · 4 files

@@ -208,23 +208,35 @@ impl<'a> Parser<'a> {         }          let lo = self.token.span;+        let mut path_span = None;         let mut segments = ThinVec::new();         let mod_sep_ctxt = self.token.span.ctxt();         if self.eat_path_sep() {+            chain_span(&mut path_span, self.prev_token.span);             segments.push(PathSegment::path_root(lo.shrink_to_lo().with_ctxt(mod_sep_ctxt)));         }-        self.parse_path_segments(&mut segments, style, ty_generics)?;-        Ok(Path { segments, span: lo.to(self.prev_token.span) })+        self.parse_path_segments_with_path_span(&mut segments, style, ty_generics, &mut path_span)?;+        Ok(Path { segments, span: path_span.unwrap() })     }      pub(super) fn parse_path_segments(         &mut self,         segments: &mut ThinVec<PathSegment>,         style: PathStyle,         ty_generics: Option<&Generics>,+    ) -> PResult<'a, ()> {+        self.parse_path_segments_with_path_span(segments, style, ty_generics, &mut None)+    }++    fn parse_path_segments_with_path_span(+        &mut self,+        segments: &mut ThinVec<PathSegment>,+        style: PathStyle,+        ty_generics: Option<&Generics>,+        path_span: &mut Option<Span>,     ) -> PResult<'a, ()> {         loop {

runtime

ggml-org/llama.cpp · #32053

Files changed →View PR ↗

chat: allow TTS model to provide custom text normalizer via jinjaC++ · 929 + / 0 −

Introduces 15 new declarations in common/chat-tts-norm.cpp.

Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.

common/chat-tts-norm.cpp ↗ · 7 files

@@ -0,0 +1,864 @@+#include "chat-tts-norm.h"++#include "jinja/runtime.h"+#include "jinja/value.h"++#include <algorithm>+#include <climits>+#include <stdexcept>+#include <string>+#include <vector>++// TTS normalization patterns, see docs/tts-norm-patterns.md for the specification+// keep this file in sync with the python reference: scripts/chat_tts_norm.py++using namespace jinja;++//+// character classes+// they are defined with explicit codepoint ranges, independent of any unicode database version,+// so that the C++ and python implementations agree on every codepoint+//++struct tts_norm_range {+    uint32_t lo;+    uint32_t hi;+};++static const tts_norm_range TTS_NORM_SPACE[] = {+    {0x0009, 0x000D}, {0x0020, 0x0020}, {0x0085, 0x0085}, {0x00A0, 0x00A0}, {0x1680, 0x1680},+    {0x2000, 0x200A}, {0x2028, 0x2029}, {0x202F, 0x202F}, {0x205F, 0x205F}, {0x3000, 0x3000},+};++static const tts_norm_range TTS_NORM_PUNCT[] = {

language design

rust-lang/rust · #165305

Files changed →View PR ↗

hexagon: pass small aggregates on the stack when registers run outRust · 70 + / 19 −

Introduces 3 new declarations in compiler/rustc_target/src/callconv/hexagon.rs.

Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.

compiler/rustc_target/src/callconv/hexagon.rs ↗ · 3 files

@@ -41,29 +68,50 @@ where     }     if arg.layout.pass_indirectly_in_non_rustic_abis(cx) {         arg.make_indirect();+        // The pointer to the indirectly passed value takes up a register.+        adjust_regs_left(Size::from_bytes(4), regs_left);         return;     } +    let size = arg.layout.size;+     if !arg.layout.is_aggregate() {+        if size.bytes() <= 8 {+            adjust_regs_left(size, regs_left);+        }         arg.extend_integer_width_to(32);         return;     } -    // Per the Hexagon ABI:-    // - Aggregates up to 32 bits are passed in a single register-    // - Aggregates 33-64 bits are passed in a register pair-    // - Aggregates > 64 bits are passed on the stack-    let size = arg.layout.size;-    let bits = size.bits();-    if bits <= 32 {-        arg.cast_to(Uniform::new(Reg::i32(), size));-    } else if bits <= 64 {-        arg.cast_to(Uniform::new(Reg::i64(), size));+    if size.bytes() > 8 {+        arg.pass_by_stack_offset(None);+        return;+    }+

framework internals

vercel/next.js · #97796

Files changed →View PR ↗

Improve Request Insights context menus and trace interactionsTypeScript · 356 + / 80 −

Introduces 8 new declarations in packages/next/src/next-devtools/dev-overlay/components/request-insights/request-insights-panel.tsx.

Adds new framework internals rather than adjusting what was there. Tests changed with it, with code of their own.

packages/next/src/next-devtools/dev-overlay/components/request-insights/request-insights-panel.tsx ↗ · 5 files

@@ -696,53 +743,165 @@ function RequestRow({     requestType.type === 'rsc'   )   const clockTime = formatClockTime(request.startTime)-  const bypassesProxy = request.proxyStatus === 'bypassed'    return (-    <button-      aria-label={`${isInstantInsights ? `Instant Insights for ${requestUrl}` : requestUrl}, ${requestType.accessibleLabel}, ${bypassesProxy ? 'Did not match the configured proxy, ' : ''}${formatDuration(request.durationMs)}, ${clockTime}`}-      className="request-insights-row"-      data-internal={isInstantInsights || undefined}-      data-nested={nested || undefined}-      data-page-load={pageLoad}-      data-selected={selected}-      onClick={onSelect}-      type="button"+    <ContextMenu.Root+      onOpenChange={onContextMenuOpenChange}+      open={contextMenuOpen}     >-      <span className="request-insights-status" data-status={request.status} />-      <span className="request-insights-route">-        {nested ? <NestedArrowIcon /> : null}-        <span className="request-insights-route-label">-          {isInstantInsights ? 'Instant Insights' : requestUrl}-        </span>-      </span>-      <span className="request-insights-duration">-        {formatDuration(request.durationMs)}-      </span>-      <span className="request-insights-meta request-insights-row-metadata">+      <ContextMenu.Trigger+        render={+          <button

runtime

ggml-org/llama.cpp · #26014

Files changed →View PR ↗

Windows unbuffered model loadC++ · 265 + / 35 −

Introduces 3 new declarations in src/llama-mmap.cpp.

Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.

src/llama-mmap.cpp ↗ · 3 files

@@ -123,24 +207,159 @@ struct llama_file::impl {         li.QuadPart = offset;         BOOL ret = SetFilePointerEx(fp_win32, li, NULL, whence);         if (!ret) {-            throw std::runtime_error(format("read error: %s", GetErrorMessageWin32(GetLastError()).c_str()));+            throw std::runtime_error(format("seek error: %s", GetErrorMessageWin32(GetLastError()).c_str()));         }     } -    void read_raw(void * ptr, size_t len) {+    void read_raw_unsafe(void * ptr, size_t len) {+        if (len == 0) {+            return;+        }++        const size_t read_offset = tell();+        if (read_offset > size) {+            throw std::runtime_error("unexpectedly reached end of file");+        }++        if (!has_direct_io()) {+            const size_t read_size = std::min(len, size - read_offset);+            size_t bytes_read = 0;+            while (bytes_read < read_size) {+                const DWORD to_read = (DWORD) std::min<size_t>(read_size - bytes_read, MAXDWORD);+                DWORD chunk_read = 0;+                BOOL result = ReadFile(fp_win32, reinterpret_cast<char *>(ptr) + bytes_read,+                                       to_read, &chunk_read, NULL);+                if (!result) {+                    throw std::runtime_error(format("read error: %s", GetErrorMessageWin32(GetLastError()).c_str()));+                }+                if (chunk_read < to_read) {+                    throw std::runtime_error("unexpectedly reached end of file");+                }

core implementation

huggingface/transformers · #50431

Files changed →View PR ↗

Harden our Jinja sandboxingPython · 87 + / 6 −

Introduces 8 new declarations in src/transformers/utils/chat_template_utils.py.

Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.

src/transformers/utils/chat_template_utils.py ↗ · 4 files

@@ -620,6 +656,42 @@ def _alias_reasoning_fields(chat: ChatType) -> ChatType:     return aliased_chat  +def _plain_template_data(value: Any) -> Any:+    # Chat templates come from the Hub, but callers often put rich objects in their inputs, like the decoded images,+    # arrays and tensors in multimodal content blocks. Those objects have methods that the sandbox doesn't know are+    # dangerous (some of them write files!), so we rebuild everything the template sees out of plain JSON types,+    # and replace anything else with an inert placeholder. Templates only check whether media keys are present,+    # and never read their values, so this doesn't change what they render.+    if value is None or type(value) in (str, int, float, bool):+        # Exact JSON scalars are safe as-is+        return value+    elif isinstance(value, str):+        # Subclasses (enums, numpy scalars, ...) can carry extra methods, so we strip them back to the base type+        return str.__str__(value)+    elif isinstance(value, int):+        return int.__int__(value)+    elif isinstance(value, float):+        return float.__float__(value)+    elif isinstance(value, Mapping):+        return {_plain_template_data(key): _plain_template_data(item) for key, item in value.items()}+    elif isinstance(value, list):+        return [_plain_template_data(item) for item in value]+    elif isinstance(value, tuple):+        return tuple(_plain_template_data(item) for item in value)+    elif isinstance(value, np.generic):+        # `np.bool_(False)` would otherwise become a truthy placeholder string+        return _plain_template_data(value.item())+    elif dataclasses.is_dataclass(value) and not isinstance(value, type):+        # Fields are read one level at a time, so arrays and images inside are not deep-copied+        return {field.name: _plain_template_data(getattr(value, field.name)) for field in dataclasses.fields(value)}+    elif callable(getattr(value, "model_dump", None)):+        # Pydantic models

framework internals

huggingface/transformers · #50311

Files changed →View PR ↗

OpenVINO exporter: let OpenVINO fuse attention, RoPE, the KV cache and compressed matmulsPython · 332 + / 80 −

Introduces 19 new declarations in src/transformers/exporters/exporter_openvino.py.

Adds new framework internals rather than adjusting what was there. Tests changed with it, with code of their own.

src/transformers/exporters/exporter_openvino.py ↗ · 6 files

@@ -1162,6 +1299,123 @@ def _fix_index_put_bool_mask(gm, node): # To add a new patch: define a `_patch_*` factory and decorate it.  +@register_patch("openvino", "torch.Tensor.__neg__", "torch.neg", "torch.Tensor.neg")+def _patch_neg(original):+    """Negate as a multiply by ``-1``, the form OV's CPU plugin fuses ``rotate_half`` (so RoPE) from.++    The frontend lowers ``aten.neg`` to a multiply by a ``Convert``ed ``-1`` that it marks+    ``DisableConstantFolding``, which keeps the plugin's RoPE fusion from matching until the IR is+    serialized and read back: the model this exporter returns would run RoPE decomposed.+    """++    def patch(input):+        return input * -1++    return patch+++@register_patch("openvino", "torch.nn.Linear.forward")+def _patch_linear_forward(original):+    """Cast the 16-bit weight [`patch_16bit_model`] set aside to the f32 activations, inside the graph."""++    def patch(self, input):+        if "_16bit_weight" not in self._parameters:+            return original(self, input)+        weight = self._16bit_weight.to(input.dtype)+        bias = _16bit_parameter(self, "bias")+        if bias is not None:+            bias = bias.to(input.dtype)+        return torch.nn.functional.linear(input, weight, bias)++    return patch+

systems design

kubernetes/kubernetes · #143979

Files changed →View PR ↗

Extract eventsAfterLocked and checkResourceVersionLocked methodsGo · 40 + / 13 −

Introduces 3 new declarations in staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_history.go.

Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.

staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_history.go ↗ · 2 files

@@ -219,26 +220,52 @@ func (w *watchCacheHistory) suggestedWatchChannelSize(indexExists, triggerUsed b // retrieve events since a certain resourceVersion. This function assumes to // be called under the lock. func (w *watchCacheHistory) GetIntervalLocked(resourceVersion uint64, locker sync.Locker) (*watchCacheInterval, error) {-	size := w.endIndex - w.startIndex+	if err := w.checkResourceVersionLocked(resourceVersion); err != nil {+		return nil, err+	}+	first := w.firstIndexAfterLocked(resourceVersion)+	indexerFunc := func(i int) *watchCacheEvent {+		return w.cache[i%w.capacity]+	}+	ci := newCacheInterval(first, w.endIndex, indexerFunc, w.config.indexValidator, resourceVersion, locker)+	return ci, nil+}++// eventsAfterLocked yields buffered events with ResourceVersion > resourceVersion+// in ascending ResourceVersion order. This function assumes to be called under+// the lock.+func (w *watchCacheHistory) eventsAfterLocked(resourceVersion uint64) iter.Seq[*watchCacheEvent] {+	return func(yield func(*watchCacheEvent) bool) {+		for i := w.firstIndexAfterLocked(resourceVersion); i < w.endIndex; i++ {+			if !yield(w.cache[i%w.capacity]) {+				return+			}+		}+	}+}++// checkResourceVersionLocked verifies that history is initialized and can+// still serve events strictly after resourceVersion. This function assumes to+// be called under the lock.+func (w *watchCacheHistory) checkResourceVersionLocked(resourceVersion uint64) error { 	oldest, ok := w.oldestServableLocked()

runtime

ggml-org/llama.cpp · #31779

Files changed →View PR ↗

model: add Kimi-K3.1-Pro text modelC++ · 820 + / 33 −

Introduces 3 new declarations in src/models/kimi-k31.cpp.

Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.

src/models/kimi-k31.cpp ↗ · 15 files

@@ -0,0 +1,701 @@+#include "models.h"++#include <algorithm>+#include "llama-memory-recurrent.h"+#include "llama-memory-hybrid-idx.h"++//+// Kimi-K3.1 text model: Kimi-K3 with DSA (indexer + top-k) on the full-attention layers.+// KDA layers, cross-layer residuals, latent MoE, situ and the MLA shapes are unchanged.+//   1. full-attention layers run a lightning indexer over the cached latent, keep the+//      top-k cells and attend only to those (the "Gated DSA" of the model card)+//   2. the indexer keeps its own per-token key cache, one cell per attention cell+//++void llama_model_kimi_k31::load_arch_hparams(llama_model_loader & ml) {+    ml.get_key(LLM_KV_ATTENTION_LAYERNORM_RMS_EPS, hparams.f_norm_rms_eps);+    ml.get_key(LLM_KV_ATTENTION_KEY_LENGTH_MLA,    hparams.n_embd_head_k_mla_impl);+    ml.get_key(LLM_KV_ATTENTION_VALUE_LENGTH_MLA,  hparams.n_embd_head_v_mla_impl);+    ml.get_key(LLM_KV_ATTENTION_Q_LORA_RANK,       hparams.n_lora_q, false);+    ml.get_key(LLM_KV_ATTENTION_KV_LORA_RANK,      hparams.n_lora_kv);+    ml.get_key(LLM_KV_SSM_CONV_KERNEL,             hparams.ssm_d_conv);+    ml.get_key(LLM_KV_KDA_HEAD_DIM,                hparams.n_embd_head_kda);+    ml.get_key(LLM_KV_KDA_GATE_LOWER_BOUND,        hparams.kda_gate_lower_bound, false);++    // the MLA cache holds the compressed latent+    // set it here too, as older GGUFs have no value_length key+    hparams.n_embd_head_v_full = hparams.n_lora_kv;++    // n_head_kv == 0 marks a KDA (recurrent) layer, as in kimi-linear+    for (uint32_t i = 0; i < hparams.n_layer(); ++i) {+        hparams.is_recr_impl[i] = hparams.n_head_kv(i) == 0;+    }+

Read today’s edition →