Selected changesmerged Nov 12, 2026
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;+ }+
Expert-parallel implementations for `ep_dispatch_experts`: all-reduce at inference, all-to-all in trainingPython · 233 + / 128 −
Introduces 20 new declarations in src/transformers/distributed/expert_parallel.py.
Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.
src/transformers/distributed/expert_parallel.py ↗ · 7 files
@@ -247,109 +300,134 @@ def _dispatch_tokens( expert_ids = top_k_index.reshape(-1) order = torch.argsort(expert_ids) send_tokens = hidden_states[order // num_top_k]- send_counts = torch.zeros(num_local_experts * ep_size, dtype=torch.long, device=hidden_states.device)- send_counts = send_counts.scatter_add_(0, expert_ids, torch.ones_like(expert_ids)).view(- ep_size, num_local_experts- )+ send_counts = torch.zeros(self.num_local_experts * ep_size, dtype=torch.long, device=hidden_states.device)+ send_counts = send_counts.scatter_add_(0, expert_ids, torch.ones_like(expert_ids))+ send_counts = send_counts.view(ep_size, self.num_local_experts) recv_counts = torch.empty_like(send_counts)- torch.distributed.all_to_all_single(recv_counts, send_counts, group=ep_group)+ all_to_all_single(recv_counts, send_counts, group=ep_group) send_sizes, recv_sizes = torch.stack([send_counts.sum(dim=1), recv_counts.sum(dim=1)]).tolist() recv_tokens = all_to_all_single_autograd(send_tokens, recv_sizes, send_sizes, ep_group)- recv_expert_ids = torch.arange(num_local_experts, device=hidden_states.device).repeat(ep_size)+ # hand the experts the received rows, not the all-to-all's pending result (whose pointer is null until+ # waited on): https://github.com/huggingface/transformers/pull/49421+ recv_tokens = _WaitTensor.apply(recv_tokens)+ recv_expert_ids = torch.arange(self.num_local_experts, device=hidden_states.device).repeat(ep_size) recv_expert_ids = recv_expert_ids.repeat_interleave(recv_counts.reshape(-1), output_size=sum(recv_sizes))- return recv_tokens, recv_expert_ids, order, send_sizes, recv_sizes-- def _run_local_experts(- self,- experts_forward: Callable,- tokens: torch.Tensor,- expert_ids: torch.Tensor,- ) -> torch.Tensor:- """Run local experts with top-1 routing and unit weights; apply routing weights after combine."""- num_tokens = tokens.shape[0]- if num_tokens == 0:- # Keep the empty tokens connected to backward so the reverse all-to-all and FSDP reduction still run.
ui: add search_chats toolTypeScript · 1001 + / 20 −
Introduces 54 new declarations in tools/ui/src/lib/utils/search-chats.ts.
Adds new framework internals rather than adjusting what was there. Tests changed with it, with code of their own.
tools/ui/src/lib/utils/search-chats.ts ↗ · 20 files
@@ -0,0 +1,665 @@+/**+ * search_chats core: parameter parsing, matching and formatting. Data comes through a loader, so this has no IndexedDB access.+ * Only user and assistant text on the visible branch is searched and shown, so tool output (e.g. older search results) cannot match.+ */++import { filterByLeafNodeId } from './branching';+import { formatLocalIso } from './formatters';+import {+ SEARCH_CHATS_CUT_NOTICE,+ SEARCH_CHATS_DATE_REGEX,+ SEARCH_CHATS_DATE_TIME_REGEX,+ SEARCH_CHATS_ELLIPSIS,+ SEARCH_CHATS_EXCERPT_LEAD_RATIO,+ SEARCH_CHATS_EXCERPT_RECENTER_RATIO,+ SEARCH_CHATS_FIELD_SEPARATOR,+ SEARCH_CHATS_ID_MAX_CHARS,+ SEARCH_CHATS_LIMIT_CHATS_DEFAULT,+ SEARCH_CHATS_LIMIT_CHATS_MAX,+ SEARCH_CHATS_LIMIT_MESSAGES_DEFAULT,+ SEARCH_CHATS_LIMIT_MESSAGES_MAX,+ SEARCH_CHATS_MAX_IDS,+ SEARCH_CHATS_MAX_PATTERNS,+ SEARCH_CHATS_MESSAGE_CHARS_DEFAULT,+ SEARCH_CHATS_MESSAGE_CHARS_MAX,+ SEARCH_CHATS_MESSAGE_CHARS_MIN,+ SEARCH_CHATS_OUTPUT_MAX_CHARS,+ SEARCH_CHATS_PATTERN_MAX_CHARS,+ SEARCH_CHATS_TOOL_KEY+} from '$lib/constants';+import { MessageRole, SearchChatsMessageSelection, SearchChatsOrder } from '$lib/enums';+import type { DatabaseConversation, DatabaseMessage } from '$lib/types/database';++export class SearchChatsError extends Error {
Write DrainInProgress and Drained Node Conditions as part of kubectl drain and kubectl uncordonGo · 260 + / 10 −
Introduces 16 new declarations in staging/src/k8s.io/kubectl/pkg/drain/conditions.go.
Adds new systems design rather than adjusting what was there. Tests changed with it, with code of their own.
staging/src/k8s.io/kubectl/pkg/drain/conditions.go ↗ · 8 files
@@ -0,0 +1,187 @@+/*+Copyright The Kubernetes Authors.++Licensed under the Apache License, Version 2.0 (the "License");+you may not use this file except in compliance with the License.+You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++Unless required by applicable law or agreed to in writing, software+distributed under the License is distributed on an "AS IS" BASIS,+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+See the License for the specific language governing permissions and+limitations under the License.+*/++package drain++import (+ "context"+ "encoding/json"+ "fmt"+ "time"++ corev1 "k8s.io/api/core/v1"+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"+ "k8s.io/apimachinery/pkg/types"+ "k8s.io/apimachinery/pkg/util/wait"+ "k8s.io/client-go/kubernetes"+ "k8s.io/client-go/util/retry"+ cmdutil "k8s.io/kubectl/pkg/cmd/util"+)+
ENH: add numeric_only to GroupBy.ohlc and Resampler.ohlc (GH#56946)Python · 30 + / 5 −
Introduces 3 new declarations in pandas/core/groupby/groupby.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
pandas/core/groupby/groupby.py ↗ · 6 files
@@ -3397,12 +3397,19 @@ def last(x: Series): ) @final- def ohlc(self) -> DataFrame:+ def ohlc(self, numeric_only: bool = False) -> DataFrame: """ Compute open, high, low and close values of a group, excluding missing values. For multiple groupings, the result index will be a MultiIndex + Parameters+ ----------+ numeric_only : bool, default False+ Include only float, int, boolean columns.++ .. versionadded:: 3.2.0+ Returns ------- DataFrame