helloadhavan/github_issues huggingface dataset:
Repository: facebook/react
Pull request: [DevTools] Double clicking the root should jump to the beginning of the timeline

Unlike the rects, this never toggles. It just jumps.



Changed files:
filename: packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseRects.js
patch: @@ -330,12 +330,25 @@ function SuspenseRectsContainer(): React$Node {
     });
   }
 
+  function handleDoubleClick(event: SyntheticMouseEvent) {
+    if (event.defaultPrevented) {
+      // Already clicked on an inner rect
+      return;
+    }
+    event.preventDefault();
+    suspenseTreeDispatch({
+      type: 'SUSPENSE_SET_TIMELINE_INDEX',
+      payload: 0,
+    });
+  }
+
   const isRootSelected = roots.includes(inspectedElementID);
 
   return (
     <div
       className={styles.SuspenseRectsContainer}
       onClick={handleClick}
+      onDoubleClick={handleDoubleClick}
       data-highlighted={isRootSelected}>
       <ViewBox.Provider value={boundingBox}>
         <div
Repository: vercel/next.js
Pull request: [test] Deflake `typed-routes-validator` using `tsc`

We need to wait for `next-env.d.ts` to be written. Creation of that file is not blocking dev-server startup.

Fixes 
```
FAIL webpack test/e2e/app-dir/typed-routes-validator/typed-routes-validator.test.ts (11.107 s)
  typed-routes-validator
    ✓ should generate route validation correctly (5878 ms)
    ✕ should have passing tsc after the server generated types (2379 ms)

  ● typed-routes-validator › should have passing tsc after the server generated types

    expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 2

      Object {
        "stderr": "",
    -   "stdout": "",
    +   "stdout": "app/layout.tsx(1,37): error TS2304: Cannot find name 'LayoutProps'.
    + app/page.tsx(1,37): error TS2304: Cannot find name 'PageProps'.",
      }

      48 |       })
      49 |
    > 50 |       expect({ stdout, stderr }).toEqual({
         |                                  ^
      51 |         stdout: '',
      52 |         stderr: '',
      53 |       })

      at Object.toEqual (e2e/app-dir/typed-routes-validator/typed-routes-validator.test.ts:50:34)
```
-- https://github.com/vercel/next.js/actions/runs/22358627319/job/64710613953

Changed files:
filename: test/e2e/app-dir/typed-routes-validator/typed-routes-validator.test.ts
patch: @@ -1,6 +1,6 @@
 import execa from 'execa'
 import { nextTestSetup } from 'e2e-utils'
-import { getDistDir } from 'next-test-utils'
+import { getDistDir, retry } from 'next-test-utils'
 
 const strictRouteTypes =
   process.env.__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES === 'true'
@@ -42,6 +42,21 @@ describe('typed-routes-validator', () => {
       await next.build()
     }
     try {
+      if (isNextDev) {
+        // In dev mode, next-env.d.ts and the route type definitions it
+        // references (.next/types/routes.d.ts) are generated asynchronously
+        // after the server starts. Wait for both files to be ready with
+        // actual route data before running tsc.
+        await retry(async () => {
+          const envDts = await next.readFile('next-env.d.ts')
+          expect(envDts).toContain('reference types="next"')
+          const routesDts = await next.readFile(
+            `${getDistDir()}/types/routes.d.ts`
+          )
+          expect(routesDts).toContain('AppRoutes = "/"')
+        })
+      }
+
       const { stdout, stderr } = await execa('pnpm', ['tsc', '--noEmit'], {
         cwd: next.testDir,
         reject: false,
Repository: facebook/react
Pull request: Add getClientRects to fabric fragment instance

Stacked on #34544 

We only have getBoundingClientRect available from RN currently. This should work as a substitute for this case because the equivalent of multi-rect elements in RN is a nested Text component. We only include the rects of top-level host components here so we can assume that calling getBoundingClientRect on each child is the same result.

Tested in react-native with Fantom.

Changed files:
filename: packages/react-native-renderer/src/ReactFiberConfigFabric.js
patch: @@ -648,6 +648,7 @@ export type FragmentInstanceType = {
   getRootNode(getRootNodeOptions?: {
     composed: boolean,
   }): Node | FragmentInstanceType,
+  getClientRects: () => Array<DOMRect>,
 };
 
 function FragmentInstance(this: FragmentInstanceType, fragmentFiber: Fiber) {
@@ -772,6 +773,27 @@ FragmentInstance.prototype.getRootNode = function (
   return rootNode;
 };
 
+// $FlowFixMe[prop-missing]
+FragmentInstance.prototype.getClientRects = function (
+  this: FragmentInstanceType,
+): Array<DOMRect> {
+  const rects: Array<DOMRect> = [];
+  traverseFragmentInstance(this._fragmentFiber, collectClientRects, rects);
+  return rects;
+};
+function collectClientRects(child: Fiber, rects: Array<DOMRect>): boolean {
+  const instance = getPublicInstanceFromHostFiber(child);
+
+  // getBoundingClientRect is available on Fabric instances while getClientRects is not.
+  // This should work as a substitute in this case because the only equivalent of a multi-rect
+  // element in RN would be a nested Text component.
+  // Since we only use top-level nodes here, we can assume that getBoundingClientRect is sufficient.
+  // $FlowFixMe[method-unbinding]
+  // $FlowFixMe[incompatible-use] Fabric PublicInstance is opaque
+  rects.push(instance.getBoundingClientRect());
+  return false;
+}
+
 export function createFragmentInstance(
   fragmentFiber: Fiber,
 ): FragmentInstanceType {
Repository: huggingface/transformers
Pull request: [`Modular`] Fix file type regression

Accidentally caused by #43325, wrong naming --> modular doesn't properly convert some files (e.g. kyutai)

Also fixes red CI on main

Changed files:
filename: utils/modular_model_converter.py
patch: @@ -522,7 +522,7 @@ def augmented_dependencies_for_class_node(
     "image_processing.*_fast",
     "image_processing",
     "video_processing",
-    "feature-extraction",
+    "feature_extraction",
 )
Repository: vercel/next.js
Pull request: [test] Deflake `typed-routes-validator`

Follow-up to https://github.com/vercel/next.js/pull/90451

What specific file needs to exist is just a moving target the breaks under implementation detail changes. Let's just retry `tsc` entirely.

Changed files:
filename: test/e2e/app-dir/typed-routes-validator/typed-routes-validator.test.ts
patch: @@ -43,29 +43,30 @@ describe('typed-routes-validator', () => {
     }
     try {
       if (isNextDev) {
-        // In dev mode, next-env.d.ts and the route type definitions it
-        // references (.next/types/routes.d.ts) are generated asynchronously
-        // after the server starts. Wait for both files to be ready with
-        // actual route data before running tsc.
+        // In dev mode, route types are generated asynchronously after the server starts.
+        // Might take a few tries before all the relevant types exist.
         await retry(async () => {
-          const envDts = await next.readFile('next-env.d.ts')
-          expect(envDts).toContain('reference types="next"')
-          const routesDts = await next.readFile(
-            `${getDistDir()}/types/routes.d.ts`
-          )
-          expect(routesDts).toContain('AppRoutes = "/"')
+          const { stdout, stderr } = await execa('pnpm', ['tsc', '--noEmit'], {
+            cwd: next.testDir,
+            reject: false,
+          })
+
+          expect({ stdout, stderr }).toEqual({
+            stdout: '',
+            stderr: '',
+          })
+        })
+      } else {
+        const { stdout, stderr } = await execa('pnpm', ['tsc', '--noEmit'], {
+          cwd: next.testDir,
+          reject: false,
         })
-      }
-
-      const { stdout, stderr } = await execa('pnpm', ['tsc', '--noEmit'], {
-        cwd: next.testDir,
-        reject: false,
-      })
 
-      expect({ stdout, stderr }).toEqual({
-        stdout: '',
-        stderr: '',
-      })
+        expect({ stdout, stderr }).toEqual({
+          stdout: '',
+          stderr: '',
+        })
+      }
     } finally {
       if (isNextDev) {
         await next.stop()
Repository: ollama/ollama
Pull request: cuda: bring back CC 5.2

Forward compat on the newer driver doesn't seem to be working. This should get 5.2 working on newer drivers again.

User reported issue:
```
Thu Oct 16 14:21:17 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.95.05              Driver Version: 580.95.05      CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 960         Off |   00000000:05:00.0  On |                  N/A |
| 36%   37C    P0             30W /  208W |     809MiB /   4096MiB |      5%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
```

```
time=2025-10-16T13:47:36.676-05:00 level=DEBUG source=ggml.go:94 msg="ggml backend load all from path" path=/usr/local/lib/ollama/cuda_v12
ggml_cuda_init: failed to initialize CUDA: forward compatibility was attempted on non supported HW
load_backend: loaded CUDA backend from /usr/local/lib/ollama/cuda_v12/libggml-cuda.so
```

Changed files:
filename: CMakePresets.json
patch: @@ -30,7 +30,7 @@
       "name": "CUDA 12",
       "inherits": [ "CUDA" ],
       "cacheVariables": {
-        "CMAKE_CUDA_ARCHITECTURES": "50;60;61;70;75;80;86;87;89;90;90a;120",
+        "CMAKE_CUDA_ARCHITECTURES": "50;52;60;61;70;75;80;86;87;89;90;90a;120",
         "CMAKE_CUDA_FLAGS": "-Wno-deprecated-gpu-targets -t 2"
       }
     },
Repository: rust-lang/rust
Pull request: Unknown -> Unsupported compression algorithm

Both zstd and zlib are *known* compression algorithms, they just may not be supported by the backend. We shouldn't mislead users into e.g. thinking they made a typo.

cc https://github.com/rust-lang/rust/issues/120953

Changed files:
filename: compiler/rustc_codegen_llvm/src/back/write.rs
patch: @@ -36,7 +36,7 @@ use crate::builder::gpu_offload::scalar_width;
 use crate::common::AsCCharPtr;
 use crate::errors::{
     CopyBitcode, FromLlvmDiag, FromLlvmOptimizationDiag, LlvmError, ParseTargetMachineConfig,
-    UnknownCompression, WithLlvmError, WriteBytecode,
+    UnsupportedCompression, WithLlvmError, WriteBytecode,
 };
 use crate::llvm::diagnostic::OptimizationDiagnosticKind::*;
 use crate::llvm::{self, DiagnosticInfo};
@@ -248,15 +248,15 @@ pub(crate) fn target_machine_factory(
             if llvm::LLVMRustLLVMHasZlibCompression() {
                 llvm::CompressionKind::Zlib
             } else {
-                sess.dcx().emit_warn(UnknownCompression { algorithm: "zlib" });
+                sess.dcx().emit_warn(UnsupportedCompression { algorithm: "zlib" });
                 llvm::CompressionKind::None
             }
         }
         config::DebugInfoCompression::Zstd => {
             if llvm::LLVMRustLLVMHasZstdCompression() {
                 llvm::CompressionKind::Zstd
             } else {
-                sess.dcx().emit_warn(UnknownCompression { algorithm: "zstd" });
+                sess.dcx().emit_warn(UnsupportedCompression { algorithm: "zstd" });
                 llvm::CompressionKind::None
             }
         }

filename: compiler/rustc_codegen_llvm/src/errors.rs
patch: @@ -182,9 +182,9 @@ pub(crate) struct CopyBitcode {
 
 #[derive(Diagnostic)]
 #[diag(
-    "unknown debuginfo compression algorithm {$algorithm} - will fall back to uncompressed debuginfo"
+    "unsupported debuginfo compression algorithm {$algorithm} - will fall back to uncompressed debuginfo"
 )]
-pub(crate) struct UnknownCompression {
+pub(crate) struct UnsupportedCompression {
     pub algorithm: &'static str,
 }
 

filename: tests/run-make/compressed-debuginfo/rmake.rs
patch: @@ -23,7 +23,7 @@ fn check_compression(compression: &str, to_find: &str) {
         } else {
             assert_contains(
                 stderr,
-                format!("unknown debuginfo compression algorithm {compression}"),
+                format!("unsupported debuginfo compression algorithm {compression}"),
             );
         }
     });
Repository: facebook/react
Pull request: Add getRootNode to fabric fragment instance

Stacked on #34533 for root fragment handling

 This is the same approach as DOM, where we call getRootNode on the parent.
    
Tests are in react-native using Fantom.

Changed files:
filename: packages/react-native-renderer/src/ReactFiberConfigFabric.js
patch: @@ -645,6 +645,9 @@ export type FragmentInstanceType = {
   observeUsing: (observer: IntersectionObserver) => void,
   unobserveUsing: (observer: IntersectionObserver) => void,
   compareDocumentPosition: (otherNode: PublicInstance) => number,
+  getRootNode(getRootNodeOptions?: {
+    composed: boolean,
+  }): Node | FragmentInstanceType,
 };
 
 function FragmentInstance(this: FragmentInstanceType, fragmentFiber: Fiber) {
@@ -754,6 +757,21 @@ function collectChildren(child: Fiber, collection: Array<Fiber>): boolean {
   return false;
 }
 
+// $FlowFixMe[prop-missing]
+FragmentInstance.prototype.getRootNode = function (
+  this: FragmentInstanceType,
+  getRootNodeOptions?: {composed: boolean},
+): Node | FragmentInstanceType {
+  const parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
+  if (parentHostFiber === null) {
+    return this;
+  }
+  const parentHostInstance = getPublicInstanceFromHostFiber(parentHostFiber);
+  // $FlowFixMe[incompatible-use] Fabric PublicInstance is opaque
+  const rootNode = (parentHostInstance.getRootNode(getRootNodeOptions): Node);
+  return rootNode;
+};
+
 export function createFragmentInstance(
   fragmentFiber: Fiber,
 ): FragmentInstanceType {
Repository: huggingface/transformers
Pull request: Restore response_schema saving-loading

Response schema save-loading was broken in #40936, this PR restores it! I did most of this in #42300 but missed an issue with loading/saving.

Changed files:
filename: src/transformers/tokenization_utils_base.py
patch: @@ -1075,6 +1075,8 @@ def __init__(self, **kwargs):
             # we reconstruct that into a single dict while loading them.
             self.chat_template = {template["name"]: template["template"] for template in self.chat_template}
 
+        self.response_schema = kwargs.pop("response_schema", None)
+
         model_specific_tokens = {**auto_model_specific_tokens, **explicit_model_specific_tokens}
         if model_specific_tokens:
             self._set_model_specific_special_tokens(special_tokens=model_specific_tokens)
@@ -2029,6 +2031,9 @@ def save_pretrained(
             save_directory, tokenizer_config, filename_prefix, save_jinja_files
         )
 
+        if getattr(self, "response_schema", None) is not None:
+            tokenizer_config["response_schema"] = self.response_schema
+
         if len(self.init_inputs) > 0:
             tokenizer_config["init_inputs"] = copy.deepcopy(self.init_inputs)
         for file_id in self.vocab_files_names:
Repository: nodejs/node
Pull request: doc: rename invalid `function` parameter

`function` is an invalid JS function parameter name, which can cause problems for downstream tooling. Change to the more or less canonical `fn`.

Changed files:
filename: doc/api/sqlite.md
patch: @@ -325,7 +325,7 @@ This method allows one or more SQL statements to be executed without returning
 any results. This method is useful when executing SQL statements read from a
 file. This method is a wrapper around [`sqlite3_exec()`][].
 
-### `database.function(name[, options], function)`
+### `database.function(name[, options], fn)`
 
 <!-- YAML
 added:
@@ -347,10 +347,10 @@ added:
     arguments (between zero and [`SQLITE_MAX_FUNCTION_ARG`][]). If `false`,
     `function` must be invoked with exactly `function.length` arguments.
     **Default:** `false`.
-* `function` {Function} The JavaScript function to call when the SQLite
-  function is invoked. The return value of this function should be a valid
-  SQLite data type: see [Type conversion between JavaScript and SQLite][].
-  The result defaults to `NULL` if the return value is `undefined`.
+* `fn` {Function} The JavaScript function to call when the SQLite function is
+  invoked. The return value of this function should be a valid SQLite data type:
+  see [Type conversion between JavaScript and SQLite][]. The result defaults to
+  `NULL` if the return value is `undefined`.
 
 This method is used to create SQLite user-defined functions. This method is a
 wrapper around [`sqlite3_create_function_v2()`][].
Repository: ollama/ollama
Pull request: Revert "Workaround broken NVIDIA iGPU free VRAM data (#12490)"

The workaround has been moved into the underlying C++ code.

This reverts commit e4340667e33e0efa5dee471917d71ad6011e59ba.

Changed files:
filename: discover/runner.go
patch: @@ -349,9 +349,6 @@ func GPUDevices(ctx context.Context, runners []FilteredRunnerDiscovery) []ml.Dev
 		}
 	}
 
-	// Apply any iGPU workarounds
-	iGPUWorkarounds(devices)
-
 	return devices
 }
 
@@ -601,32 +598,3 @@ func GetDevicesFromRunner(ctx context.Context, runner BaseRunner) ([]ml.DeviceIn
 		}
 	}
 }
-
-func iGPUWorkarounds(devices []ml.DeviceInfo) {
-	// short circuit if we have no iGPUs
-	anyiGPU := false
-	for i := range devices {
-		if devices[i].Integrated {
-			anyiGPU = true
-			break
-		}
-	}
-	if !anyiGPU {
-		return
-	}
-
-	memInfo, err := GetCPUMem()
-	if err != nil {
-		slog.Debug("failed to fetch system memory information for iGPU", "error", err)
-		return
-	}
-	for i := range devices {
-		if !devices[i].Integrated {
-			continue
-		}
-		// NVIDIA iGPUs return useless free VRAM data which ignores system buff/cache
-		if devices[i].Library == "CUDA" {
-			devices[i].FreeMemory = memInfo.FreeMemory
-		}
-	}
-}
Repository: nodejs/node
Pull request: tools: roll back to x86 runner on `scorecard.yml`

https://github.com/nodejs/node/actions/runs/22286032588/job/64464620360 is failing on the ARM runner

Refs: https://github.com/nodejs/node/pull/61903

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: .github/workflows/scorecard.yml
patch: @@ -22,7 +22,8 @@ jobs:
   analysis:
     name: Scorecard analysis
     # cannot use ubuntu-slim here because ossf/scorecard-action is dockerized
-    runs-on: ubuntu-24.04-arm
+    # cannot use ubuntu-24.04-arm here because the docker image is x86 only
+    runs-on: ubuntu-latest
     permissions:
       # Needed to upload the results to code-scanning dashboard.
       security-events: write
Repository: huggingface/transformers
Pull request: fix(trainer): pass optim_args to SGD, Adagrad, and RMSprop optimizers

## Summary

Fixes #44075

`_get_sgd()`, `_get_adagrad()`, and `_get_rmsprop()` in `trainer_optimizer.py` only returned `ctx.optimizer_kwargs` (which contains just `lr`), completely ignoring `ctx.optim_args`. This meant that parameters specified via `TrainingArguments(optim_args="momentum=0.9,weight_decay=0.0005,nesterov=True")` were silently dropped.

## Fix

Parse and merge `ctx.optim_args` into the optimizer kwargs with proper type conversion:
- **SGD**: `momentum`, `dampening`, `weight_decay` (float), `nesterov` (bool)
- **Adagrad**: `lr_decay`, `weight_decay`, `eps` (float)
- **RMSprop**: `momentum`, `alpha`, `eps`, `weight_decay` (float), `centered` (bool)

This aligns with how other optimizer handlers (e.g. bitsandbytes, AdEMAMix) already handle `ctx.optim_args`.

## Changes

- `src/transformers/trainer_optimizer.py`: Updated 3 functions (+22 lines, -3 lines)

Changed files:
filename: src/transformers/trainer_optimizer.py
patch: @@ -314,17 +314,36 @@ def _get_adamw_anyprecision(ctx: OptimizerContext) -> tuple[Any, dict[str, Any]]
 
 def _get_sgd(ctx: OptimizerContext) -> tuple[Any, dict[str, Any]]:
     """Get SGD optimizer."""
-    return torch.optim.SGD, ctx.optimizer_kwargs
+    kwargs = ctx.optimizer_kwargs.copy()
+    if ctx.optim_args:
+        for key in ("momentum", "dampening", "weight_decay"):
+            if key in ctx.optim_args:
+                kwargs[key] = float(ctx.optim_args[key])
+        if "nesterov" in ctx.optim_args:
+            kwargs["nesterov"] = ctx.optim_args["nesterov"].lower() in ("true", "1", "yes")
+    return torch.optim.SGD, kwargs
 
 
 def _get_adagrad(ctx: OptimizerContext) -> tuple[Any, dict[str, Any]]:
     """Get Adagrad optimizer."""
-    return torch.optim.Adagrad, ctx.optimizer_kwargs
+    kwargs = ctx.optimizer_kwargs.copy()
+    if ctx.optim_args:
+        for key in ("lr_decay", "weight_decay", "eps"):
+            if key in ctx.optim_args:
+                kwargs[key] = float(ctx.optim_args[key])
+    return torch.optim.Adagrad, kwargs
 
 
 def _get_rmsprop(ctx: OptimizerContext) -> tuple[Any, dict[str, Any]]:
     """Get RMSprop optimizer."""
-    return torch.optim.RMSprop, ctx.optimizer_kwargs
+    kwargs = ctx.optimizer_kwargs.copy()
+    if ctx.optim_args:
+        for key in ("momentum", "alpha", "eps", "weight_decay"):
+            if key in ctx.optim_args:
+                kwargs[key] = float(ctx.optim_args[key])
+        if "centered" in ctx.optim_args:
+            kwargs["centered"] = ctx.optim_args["centered"].lower() in ("true", "1", "yes")
+    return torch.optim.RMSprop, kwargs
 
 
 def _get_galore_optimizer(ctx: OptimizerContext) -> tuple[Any, dict[str, Any]]: