helloadhavan/github_issues huggingface dataset:
Repository: vuejs/vue
Pull request: Load external assets with https in select2 example

Otherwise it doesn't work if the page is loaded with http.


Changed files:
filename: examples/select2/index.html
patch: @@ -4,9 +4,9 @@
     <meta charset="utf-8">
     <title>Vue.js custom directive integration example (select2)</title>
     <script src="../../dist/vue.js"></script>
-    <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
-    <link href="http://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet">
-    <script src="http://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.min.js"></script>
+    <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
+    <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet">
+    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.min.js"></script>
     <style>
       html, body {
         font: 13px/18px sans-serif;
Repository: huggingface/transformers
Pull request: extend test_beam_search_early_stop_heuristic case to other device

@ydshieh please help review it


Changed files:
filename: tests/generation/test_utils.py
patch: @@ -2718,7 +2718,7 @@ def test_beam_search_early_stop_heuristic(self):
         question = tokenizer.apply_chat_template(
             question, tokenize=False, add_generation_prompt=True, return_tensors="pt"
         )
-        inputs = tokenizer(question, return_tensors="pt", padding=True).to("cuda")
+        inputs = tokenizer(question, return_tensors="pt", padding=True).to(torch_device)
         outputs = model.generate(**inputs, generation_config=generation_config)
         responses = tokenizer.batch_decode(outputs, skip_special_tokens=True)
         self.assertEqual(responses[0], EXPECTED_OUTPUT)
@@ -2737,7 +2737,7 @@ def test_beam_search_early_stop_heuristic(self):
         cot_question = tokenizer.apply_chat_template(
             cot_question, tokenize=False, add_generation_prompt=True, return_tensors="pt"
         )
-        inputs = tokenizer([question, cot_question], return_tensors="pt", padding=True).to("cuda")
+        inputs = tokenizer([question, cot_question], return_tensors="pt", padding=True).to(torch_device)
 
         outputs = model.generate(**inputs, generation_config=generation_config)
         responses = tokenizer.batch_decode(outputs, skip_special_tokens=True)
Repository: ggml-org/llama.cpp
Pull request: ci : run test-jinja -py on high perf

Adds new `ctest` label; `python`.

Create new test; `test-jinja-py`, runs on high perf where Python env is activated and dependencies are installed.

Changed files:
filename: ci/run.sh
patch: @@ -254,7 +254,7 @@ function gg_run_ctest_release {
     (time make -j$(nproc)                                    ) 2>&1 | tee -a $OUT/${ci}-make.log
 
     if [ -z ${GG_BUILD_LOW_PERF} ]; then
-        (time ctest --output-on-failure -L main ) 2>&1 | tee -a $OUT/${ci}-ctest.log
+        (time ctest --output-on-failure -L 'main|python' ) 2>&1 | tee -a $OUT/${ci}-ctest.log
     else
         (time ctest --output-on-failure -L main -E test-opt ) 2>&1 | tee -a $OUT/${ci}-ctest.log
     fi

filename: tests/CMakeLists.txt
patch: @@ -187,6 +187,7 @@ llama_build_and_test(test-chat-parser.cpp)
 llama_build_and_test(test-chat-peg-parser.cpp peg-parser/simple-tokenize.cpp)
 llama_build_and_test(test-chat-template.cpp)
 llama_build_and_test(test-jinja.cpp)
+llama_test(test-jinja NAME test-jinja-py ARGS -py LABEL python)
 llama_build_and_test(test-json-partial.cpp)
 llama_build_and_test(test-log.cpp)
 llama_build_and_test(
Repository: nodejs/node
Pull request: src: add a default branch for module phase

This prevents a compiler warning about a missing switch-case branch when 
a new `ModuleImportPhase` enum value is added.

Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7017517

Changed files:
filename: src/module_wrap.cc
patch: @@ -530,8 +530,9 @@ ModulePhase to_phase_constant(ModuleImportPhase phase) {
       return kEvaluationPhase;
     case ModuleImportPhase::kSource:
       return kSourcePhase;
+    default:
+      UNREACHABLE();
   }
-  UNREACHABLE();
 }
 
 static Local<Object> createImportAttributesContainer(
Repository: electron/electron
Pull request: fix: add missed enum `SaveRequestType` to PdfViewerPrivate function

Backport of #48372

See that PR for details.


Notes: Fix download button does not work in PDF Viewer


Changed files:
filename: shell/common/extensions/api/pdf_viewer_private.idl
patch: @@ -6,6 +6,15 @@
 // functionality that the PDF Viewer needs from outside the PDF plugin. This API
 // is exclusively for the PDF Viewer.
 namespace pdfViewerPrivate {
+  // Must match `SaveRequestType` in `pdf/mojom/pdf.mojom` and
+  // `tools/typescript/definitions/pdf_viewer_private.d.ts`.
+  enum SaveRequestType {
+    ANNOTATION,
+    ORIGINAL,
+    EDITED,
+    SEARCHIFIED
+  };
+
   // Nearly identical to mimeHandlerPrivate.StreamInfo, but without a mime type
   // nor a response header field. Those fields are unused by the PDF viewer.
   dictionary StreamInfo {
@@ -52,6 +61,13 @@ namespace pdfViewerPrivate {
         DOMString url,
         IsAllowedLocalFileAccessCallback callback);
 
+    // Sends a request to save the PDF to Google Drive if `saveRequestType` is
+    // set. Otherwise, if `saveRequestType` is not set, the default action is
+    // to cancel the existing upload.
+    static void saveToDrive(
+        optional SaveRequestType saveRequestType,
+        optional VoidCallback callback);
+
     // Sets the current tab title to `title` for a full-page PDF.
     static void setPdfDocumentTitle(
         DOMString title,
Repository: ollama/ollama
Pull request: server: omit model system prompt if empty

The model's system prompt (defined by the `SYSTEM` Modelfile command) will be templated out even if empty currently. This fixes the issue so that it is only templated if not empty.

Changed files:
filename: server/routes.go
patch: @@ -1310,7 +1310,7 @@ func (s *Server) ChatHandler(c *gin.Context) {
 		return
 	}
 
-	if req.Messages[0].Role != "system" {
+	if req.Messages[0].Role != "system" && m.System != "" {
 		req.Messages = append([]api.Message{{Role: "system", Content: m.System}}, req.Messages...)
 	}
Repository: vuejs/vue
Pull request: fix 'name' option issue

ref: #3039


Changed files:
filename: src/global-api.js
patch: @@ -210,7 +210,9 @@ export default function (Vue) {
           type === 'component' &&
           isPlainObject(definition)
         ) {
-          definition.name = id
+          if (!definition.name) {
+            definition.name = id
+          }
           definition = Vue.extend(definition)
         }
         this.options[type + 's'][id] = definition

filename: test/unit/specs/global_api_spec.js
patch: @@ -112,5 +112,14 @@ describe('Global API', function () {
       // extended registration should not pollute global
       expect(Vue.options.components.test).toBeUndefined()
     })
+
+    // GitHub issue #3039
+    it('component with `name` option', function () {
+      var def = { name: 'Component1' }
+      Test.component('ns-tree', def)
+      var component = Test.options.components['ns-tree']
+      expect(typeof component).toBe('function')
+      expect(component.name).toBe('Component1')
+    })
   })
 })
Repository: huggingface/transformers
Pull request: Fix looping in torch guard decorator

# What does this PR do?

`sys.modules` can end-up being quite large, especially when using `pytest`. This avoids the loop while keeping the benefits

Changed files:
filename: src/transformers/initialization.py
patch: @@ -162,6 +162,25 @@ def copy_(tensor: torch.Tensor, other: torch.Tensor) -> torch.Tensor:
     return tensor
 
 
+# Here, we need to check several modules imported, and hot patch all of them, as sometimes torch does
+# something like `from torch.nn.init import xavier_uniform_` in their internals (e.g in torch.nn.modules.activations,
+# where MultiHeadAttention lives), so the function name is binded at import time and just doing
+# `setattr(torch.nn.init, name, globals()[name])` is thus not enough
+# The following list should be enough for all torch versions we work with
+TORCH_MODULES_TO_PATCH = (
+    "torch.nn.init",
+    "torch.nn.modules.activation",
+    "torch.nn.modules.transformer",
+    "torch.nn.modules.linear",
+    "torch.nn.modules.loss",
+    "torch.nn.modules.batchnorm",
+    "torch.nn.modules.conv",
+    "torch.nn.modules.normalization",
+    "torch.nn.modules.rnn",
+    "torch.nn.modules.sparse",
+)
+
+
 @contextmanager
 def guard_torch_init_functions():
     """
@@ -174,18 +193,16 @@ def guard_torch_init_functions():
     originals = defaultdict(dict)
     try:
         # Replace all torch funcs by the ones in this file
-        for name in TORCH_INIT_FUNCTIONS.keys():
-            # Here, we need to check all modules imported, and hot patch all of them, as usually torch does
-            # something like `from torch.nn.init import xavier_uniform_` in their internals (e.g in torch.nn.modules,
-            # where MultiHeadAttention lives), so the function name is binded at import time and just doing
-            # `setattr(torch.nn.init, name, gloabls()[name])` is thus not enough
-            for module in sys.modules.copy().values():
-                if module and hasattr(module, name):
-                    originals[module][name] = getattr(module, name)
-                    setattr(module, name, globals()[name])
+        for module_name in TORCH_MODULES_TO_PATCH:
+            if module_name in sys.modules:
+                module = sys.modules[module_name]
+                for func_name in TORCH_INIT_FUNCTIONS.keys():
+                    if hasattr(module, func_name):
+                        originals[module][func_name] = getattr(module, func_name)
+                        setattr(module, func_name, globals()[func_name])
         yield
     finally:
         # Set back the original functions on all modules
         for module, functions in originals.items():
-            for name, func in functions.items():
-                setattr(module, name, func)
+            for func_name, func in functions.items():
+                setattr(module, func_name, func)
Repository: vuejs/vue
Pull request: remove a needless if.

Since always remove the old class.


Changed files:
filename: src/directives/internal/transition.js
patch: @@ -13,9 +13,7 @@ export default {
     id = id || 'v'
     oldId = oldId || 'v'
     el.__v_trans = new Transition(el, id, hooks, this.vm)
-    if (oldId) {
-      removeClass(el, oldId + '-transition')
-    }
+    removeClass(el, oldId + '-transition')
     addClass(el, id + '-transition')
   }
 }
Repository: electron/electron
Pull request: fix: disable NSAutoFillHeuristicController on macOS 26

Backport of #48379

See that PR for details.


Notes: fix high CPU usage with `<input>` tag on macOS 26

Changed files:
filename: patches/chromium/.patches
patch: @@ -137,3 +137,4 @@ fix_add_macos_memory_query_fallback_to_avoid_crash.patch
 fix_resolve_dynamic_background_material_update_issue_on_windows_11.patch
 feat_add_support_for_embedder_snapshot_validation.patch
 band-aid_over_an_issue_with_using_deprecated_nsopenpanel_api.patch
+disable_nsautofillheuristiccontroller_on_macos_26.patch

filename: patches/chromium/disable_nsautofillheuristiccontroller_on_macos_26.patch
patch: @@ -0,0 +1,53 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Perry <perryuwang@tencent.com>
+Date: Wed, 24 Sep 2025 09:56:23 -0700
+Subject: Disable NSAutoFillHeuristicController on macOS 26
+
+The reason for this issue is that NSAutoFillHeuristicController is
+enabled by default on macOS 26. In pages with <input> tags, browser
+process sends synchronized IPC messages to renderer process. At this
+point, if the renderer process also sends synchronized IPC messages to
+the browser process, it will cause a deadlock.
+
+This bug can be reproduced on many websites. From the perspective of
+user experience, we should first disable this feature on macOS 26.
+
+Bug: 446070423, 446481994
+Change-Id: I2d3855648980a22678548e373756fc156e28ecd7
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6965487
+Reviewed-by: Mark Mentovai <mark@chromium.org>
+Commit-Queue: Mark Mentovai <mark@chromium.org>
+Cr-Commit-Position: refs/heads/main@{#1520058}
+
+diff --git a/content/app/mac_init.mm b/content/app/mac_init.mm
+index 603c25a1bd4a11b9dbe57ac6add81647302e63be..963f45a8936850b59013390faf7890bc4215f2d9 100644
+--- a/content/app/mac_init.mm
++++ b/content/app/mac_init.mm
+@@ -6,6 +6,7 @@
+ 
+ #import <Cocoa/Cocoa.h>
+ 
++#include "base/mac/mac_util.h"
+ #include "content/common/mac/system_policy.h"
+ 
+ namespace content {
+@@ -29,6 +30,19 @@ void InitializeMac() {
+     @"NSAppSleepDisabled" : @YES,
+   }];
+ 
++  if (base::mac::MacOSVersion() >= 26'00'00) {
++    [NSUserDefaults.standardUserDefaults registerDefaults:@{
++      // Disable NSAutoFillHeuristicController on macOS 26. On macOS 26, the
++      // browser process sends synchronized IPC messages to the renderer process
++      // on pages with <input> tags. At this point, if the renderer process
++      // sends a synchronized IPC message to the browser process, it will cause
++      // a deadlock.
++      // https://crbug.com/446070423
++      // https://crbug.com/446481994
++      @"NSAutoFillHeuristicControllerEnabled" : @NO,
++    }];
++  }
++
+   SetSystemPolicyCrashKeys();
+ }
+
Repository: ggml-org/llama.cpp
Pull request: server: fix memory reservations in populate_token_probs

Fixes the two Vector::reserve calls in the populate_token_probs function.

In case post_sampling is true the code now only reserves as much space in the Vector as is needed for the requested number of logprobs. This prevents reserving large amounts of memory that are not used.

In case post_sampling is false the code now clamps the reserved size to the maximum number of tokens the model supports. This prevents reserving large amounts of unused memory when the client requests more token logprobs than the model supports and, in extreme cases, crashes from invalid memory allocations.

Changed files:
filename: tools/server/server-context.cpp
patch: @@ -1326,11 +1326,12 @@ struct server_context_impl {
     }
 
     void populate_token_probs(const server_slot & slot, completion_token_output & result, bool post_sampling, bool special, int idx) const {
-        const size_t n_probs = slot.task->params.sampling.n_probs;
+        const size_t n_probs_request = slot.task->params.sampling.n_probs;
 
         if (post_sampling) {
             const auto * cur_p = common_sampler_get_candidates(slot.smpl.get(), true);
             const size_t max_probs = cur_p->size;
+            const size_t n_probs = std::min(max_probs, n_probs_request);
 
             // set probability for sampled token
             for (size_t i = 0; i < max_probs; i++) {
@@ -1341,8 +1342,8 @@ struct server_context_impl {
             }
 
             // set probability for top n_probs tokens
-            result.probs.reserve(max_probs);
-            for (size_t i = 0; i < std::min(max_probs, n_probs); i++) {
+            result.probs.reserve(n_probs);
+            for (size_t i = 0; i < n_probs; i++) {
                 result.probs.push_back({
                     cur_p->data[i].id,
                     common_token_to_piece(ctx, cur_p->data[i].id, special),
@@ -1352,9 +1353,11 @@ struct server_context_impl {
         } else {
             // TODO: optimize this with min-p optimization
             std::vector<llama_token_data> cur = get_token_probabilities(ctx, idx);
+            const size_t max_probs = cur.size();
+            const size_t n_probs = std::min(max_probs, n_probs_request);
 
             // set probability for sampled token
-            for (size_t i = 0; i < cur.size(); i++) {
+            for (size_t i = 0; i < max_probs; i++) {
                 // set probability for sampled token
                 if (cur[i].id == result.tok) {
                     result.prob = cur[i].p;
@@ -1364,7 +1367,7 @@ struct server_context_impl {
 
             // set probability for top n_probs tokens
             result.probs.reserve(n_probs);
-            for (size_t i = 0; i < std::min(cur.size(), n_probs); i++) {
+            for (size_t i = 0; i < n_probs; i++) {
                 result.probs.push_back({
                     cur[i].id,
                     common_token_to_piece(ctx, cur[i].id, special),
Repository: huggingface/transformers
Pull request: Cleanup reference to TFBertTokenizer and TFGPT2Tokenizer

A reference to `TFBertTokenizer` was left behind after removing TF/JAX support, which caused some issues. This PR removes it!

Fixes #42175

Changed files:
filename: src/transformers/models/bert/__init__.py
patch: @@ -22,7 +22,6 @@
     from .modeling_bert import *
     from .tokenization_bert import *
     from .tokenization_bert_fast import *
-    from .tokenization_bert_tf import *
 else:
     import sys
 

filename: src/transformers/models/gpt2/__init__.py
patch: @@ -22,7 +22,6 @@
     from .modeling_gpt2 import *
     from .tokenization_gpt2 import *
     from .tokenization_gpt2_fast import *
-    from .tokenization_gpt2_tf import *
 else:
     import sys
 

filename: utils/check_docstrings.py
patch: @@ -109,10 +109,6 @@ class DecoratedItem:
     # Deprecated
     "InputExample",
     "InputFeatures",
-    # Signature is *args/**kwargs
-    "TFSequenceSummary",
-    "TFBertTokenizer",
-    "TFGPT2Tokenizer",
     # Missing arguments in the docstring
     "ASTFeatureExtractor",
     "AlbertModel",
Repository: ollama/ollama
Pull request: Bump linux ROCm to 6.1.2

This might help #5708 

Changed files:
filename: .github/workflows/test.yaml
patch: @@ -126,7 +126,7 @@ jobs:
     strategy:
       matrix:
         rocm-version:
-          - '6.1.1'
+          - '6.1.2'
     runs-on: linux
     container: rocm/dev-ubuntu-20.04:${{ matrix.rocm-version }}
     steps:

filename: Dockerfile
patch: @@ -2,7 +2,7 @@ ARG GOLANG_VERSION=1.22.1
 ARG CMAKE_VERSION=3.22.1
 # this CUDA_VERSION corresponds with the one specified in docs/gpu.md
 ARG CUDA_VERSION=11.3.1
-ARG ROCM_VERSION=6.1.1
+ARG ROCM_VERSION=6.1.2
 
 # Copy the minimal context we need to run the generate scripts
 FROM scratch AS llm-code
Repository: vercel/next.js
Pull request: Fix documentation typo in refresh function


### What?

Fix documentation typo in `refresh` function.

Changed files:
filename: packages/next/src/server/web/spec-extension/revalidate.ts
patch: @@ -55,7 +55,7 @@ export function updateTag(tag: string) {
 /**
  * This function allows you to refresh client cache from server actions.
  * It's useful as dynamic data can be cached on the client which won't
- * be refreshed by expireTag
+ * be refreshed by updateTag
  */
 export function refresh() {
   const workStore = workAsyncStorage.getStore()
Repository: ollama/ollama
Pull request: server: return empty slice on empty `/api/embed` request

Before:

```
curl http://localhost:11434/api/embed \                                 
  -H "Content-Type: application/json" \
  -d '{
    "input": "",
    "model": "all-minilm"
  }'
{"model":"all-minilm"}
```

After:

```
curl http://localhost:11434/api/embed \                                 
  -H "Content-Type: application/json" \
  -d '{
    "input": "",
    "model": "all-minilm"
  }'
{"model":"all-minilm","embeddings":[]}
```

Changed files:
filename: api/types.go
patch: @@ -206,7 +206,7 @@ type EmbedRequest struct {
 // EmbedResponse is the response from [Client.Embed].
 type EmbedResponse struct {
 	Model      string      `json:"model"`
-	Embeddings [][]float32 `json:"embeddings,omitempty"`
+	Embeddings [][]float32 `json:"embeddings"`
 }
 
 // EmbeddingRequest is the request passed to [Client.Embeddings].

filename: server/routes_test.go
patch: @@ -306,8 +306,12 @@ func Test_Routes(t *testing.T) {
 					t.Fatalf("expected model t-bone, got %s", embedResp.Model)
 				}
 
-				if embedResp.Embeddings != nil {
-					t.Fatalf("expected embeddings to be nil, got %v", embedResp.Embeddings)
+				if embedResp.Embeddings == nil {
+					t.Fatalf("expected embeddings to not be nil, got %v", embedResp.Embeddings)
+				}
+
+				if len(embedResp.Embeddings) != 0 {
+					t.Fatalf("expected embeddings to be empty, got %v", embedResp.Embeddings)
 				}
 			},
 		},
Repository: vuejs/vue
Pull request: Fix typo in util/debug


Changed files:
filename: src/core/util/debug.js
patch: @@ -15,7 +15,7 @@ if (process.env.NODE_ENV !== 'production') {
 
   formatComponentName = vm => {
     if (vm.$root === vm) {
-      return ' (found in root instnace)'
+      return ' (found in root instance)'
     }
     const name = vm._isVue
       ? vm.$options.name || vm.$options._componentTag
Repository: electron/electron
Pull request: fix: MacOS 26 Tahoe - stop overriding private cornerMask API to fix WindowServer GPU load

Backport of #48376

See that PR for details.


Notes: Fixed excessive WindowServer GPU usage on macOS Tahoe 26.

Changed files:
filename: shell/browser/native_window_mac.mm
patch: @@ -1353,7 +1353,6 @@ static bool FromV8(v8::Isolate* isolate,
       [maskImage setCapInsets:NSEdgeInsetsMake(radius, radius, radius, radius)];
       [maskImage setResizingMode:NSImageResizingModeStretch];
       [vibrantView setMaskImage:maskImage];
-      [window_ setCornerMask:maskImage];
     }
   }
 }

filename: shell/browser/ui/cocoa/electron_ns_window.h
patch: @@ -40,15 +40,13 @@ class ElectronNativeWindowObserver;
 @property BOOL disableAutoHideCursor;
 @property BOOL disableKeyOrMainWindow;
 @property(nonatomic, retain) NSVisualEffectView* vibrantView;
-@property(nonatomic, retain) NSImage* cornerMask;
 - (id)initWithShell:(electron::NativeWindowMac*)shell
           styleMask:(NSUInteger)styleMask;
 - (void)cleanup;
 - (electron::NativeWindowMac*)shell;
 - (id)accessibilityFocusedUIElement;
 - (NSRect)originalContentRectForFrameRect:(NSRect)frameRect;
 - (BOOL)toggleFullScreenMode:(id)sender;
-- (NSImage*)_cornerMask;
 - (void)disableHeadlessMode;
 @end
 

filename: shell/browser/ui/cocoa/electron_ns_window.mm
patch: @@ -23,7 +23,6 @@
 }  // namespace electron
 
 @interface NSWindow (PrivateAPI)
-- (NSImage*)_cornerMask;
 - (int64_t)_resizeDirectionForMouseLocation:(CGPoint)location;
 @end
 
@@ -121,7 +120,6 @@ @implementation ElectronNSWindow
 @synthesize disableAutoHideCursor;
 @synthesize disableKeyOrMainWindow;
 @synthesize vibrantView;
-@synthesize cornerMask;
 
 - (id)initWithShell:(electron::NativeWindowMac*)shell
           styleMask:(NSUInteger)styleMask {
@@ -311,16 +309,6 @@ - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
   return [super validateUserInterfaceItem:item];
 }
 
-// By overriding this built-in method the corners of the vibrant view (if set)
-// will be smooth.
-- (NSImage*)_cornerMask {
-  if (self.vibrantView != nil) {
-    return [self cornerMask];
-  } else {
-    return [super _cornerMask];
-  }
-}
-
 - (void)disableHeadlessMode {
   if (shell_) {
     // We initialize the window in headless mode to allow painting before it is