helloadhavan/github_issues huggingface dataset:
Repository: huggingface/transformers
Pull request: Revert "add rmsnorm kernels support for Intel XPU"

Reverts huggingface/transformers#41563

Reverting to check what's happening

Changed files:
filename: src/transformers/integrations/hub_kernels.py
patch: @@ -57,12 +57,6 @@
                     layer_name="LigerRMSNorm",
                 )
             },
-            "xpu": {
-                Mode.INFERENCE: LayerRepository(
-                    repo_id="kernels-community/rmsnorm",
-                    layer_name="RMSNorm",
-                )
-            },
         },
         "MLP": {
             "cuda": LayerRepository(
Repository: facebook/react
Pull request: Ensure `react-dom/client` is built in Codesandbox preview builds

## Summary

`react-dom/client` wasn't usable in Codesandbox preview builds because we never built it. This used to work because the client APIs used to be exported from `react-dom/index` but now aren't so we need to explicitly list the entrypoint.

## How did you test this change?

- [x] Codesandbox for this branch works: https://codesandbox.io/p/sandbox/fixed-react-preview-build-in-csb-t2t9gh?file=%2Fpackage.json

Changed files:
filename: package.json
patch: @@ -134,7 +134,7 @@
     "publish-prereleases": "echo 'This command has been deprecated. Please refer to https://github.com/facebook/react/tree/main/scripts/release#trigger-an-automated-prerelease'",
     "download-build": "node ./scripts/release/download-experimental-build.js",
     "download-build-for-head": "node ./scripts/release/download-experimental-build.js --commit=$(git rev-parse HEAD)",
-    "download-build-in-codesandbox-ci": "yarn build --type=node react/index react-dom/index react-dom/src/server react-dom/test-utils scheduler/index react/jsx-runtime react/jsx-dev-runtime",
+    "download-build-in-codesandbox-ci": "yarn build --type=node react/index react-dom/index react-dom/client react-dom/src/server react-dom/test-utils scheduler/index react/jsx-runtime react/jsx-dev-runtime",
     "check-release-dependencies": "node ./scripts/release/check-release-dependencies",
     "generate-inline-fizz-runtime": "node ./scripts/rollup/generate-inline-fizz-runtime.js",
     "flags": "node ./scripts/flags/flags.js"
Repository: nodejs/node
Pull request: test_runner: fix todo inheritance

Fixes https://github.com/nodejs/node/issues/59719

Changed files:
filename: lib/internal/test_runner/test.js
patch: @@ -647,7 +647,7 @@ class Test extends AsyncResource {
     this.expectedAssertions = plan;
     this.cancelled = false;
     this.skipped = skip !== undefined && skip !== false;
-    this.isTodo = todo !== undefined && todo !== false;
+    this.isTodo = (todo !== undefined && todo !== false) || this.parent?.isTodo;
     this.startTime = null;
     this.endTime = null;
     this.passed = false;

filename: test/fixtures/test-runner/output/name_pattern.snapshot
patch: @@ -146,20 +146,20 @@ ok 9 - no
   ...
 # Subtest: no with todo
     # Subtest: yes
-    ok 1 - yes
+    ok 1 - yes # TODO
       ---
       duration_ms: *
       type: 'test'
       ...
     # Subtest: maybe
         # Subtest: yes
-        ok 1 - yes
+        ok 1 - yes # TODO
           ---
           duration_ms: *
           type: 'test'
           ...
         1..1
-    ok 2 - maybe
+    ok 2 - maybe # TODO
       ---
       duration_ms: *
       type: 'suite'
@@ -193,9 +193,9 @@ ok 11 - DescribeForMatchWithAncestors
 1..11
 # tests 18
 # suites 12
-# pass 16
+# pass 14
 # fail 0
 # cancelled 0
 # skipped 2
-# todo 0
+# todo 2
 # duration_ms *

filename: test/fixtures/test-runner/todo_exit_code.js
patch: @@ -13,3 +13,9 @@ test.todo('should fail without effecting exit code', () => {
 test('empty string todo', { todo: '' }, () => {
   throw new Error('Fail but not badly')
 });
+
+describe.todo('should inherit todo', () => {
+  test('should fail without harming suite', () => {
+    throw new Error('Fail but not badly');
+  });
+});

filename: test/parallel/test-runner-exit-code.js
patch: @@ -58,10 +58,10 @@ if (process.argv[2] === 'child') {
   assert.strictEqual(child.status, 0);
   assert.strictEqual(child.signal, null);
   const stdout = child.stdout.toString();
-  assert.match(stdout, /tests 3/);
+  assert.match(stdout, /tests 4/);
   assert.match(stdout, /pass 0/);
   assert.match(stdout, /fail 0/);
-  assert.match(stdout, /todo 3/);
+  assert.match(stdout, /todo 4/);
 
   child = spawnSync(process.execPath, [__filename, 'child', 'fail']);
   assert.strictEqual(child.status, 1);
Repository: ollama/ollama
Pull request: Also look at cwd as a root for windows runners


Changed files:
filename: gpu/assets.go
patch: @@ -32,9 +32,25 @@ func PayloadsDir() (string, error) {
 				slog.Error("failed to lookup executable path", "error", err)
 				return "", err
 			}
+
+			cwd, err := os.Getwd()
+			if err != nil {
+				slog.Error("failed to lookup working directory", "error", err)
+				return "", err
+			}
+
+			var paths []string
+			for _, root := range []string{appExe, cwd} {
+				paths = append(paths,
+					filepath.Join(root),
+					filepath.Join(root, "windows-"+runtime.GOARCH),
+					filepath.Join(root, "dist", "windows-"+runtime.GOARCH),
+				)
+			}
+
 			// Try a few variations to improve developer experience when building from source in the local tree
-			for _, d := range []string{".", "windows-" + runtime.GOARCH, "dist\\windows-" + runtime.GOARCH} {
-				candidate := filepath.Join(filepath.Dir(appExe), d, "ollama_runners")
+			for _, p := range paths {
+				candidate := filepath.Join(p, "ollama_runners")
 				_, err := os.Stat(candidate)
 				if err == nil {
 					runnersDir = candidate
Repository: electron/electron
Pull request: fix: crash on source capture with empty thumbnail size

#### Description of Change

Refs CL:5783826
Closes https://github.com/electron/electron/issues/47591

Fixes a crash when calling `desktopCapturer.getSources` with an empty thumbnail size.

`DesktopMediaListBase` now calls `Refresh(false)` after dispatching `DesktopMediaListObserver::OnDelegatedSourceListSelection`, so it's important not to call `DesktopCapturer::HandleSuccess` (which deallocates the `DesktopMediaList`) synchronously from `OnDelegatedSourceListSelection`.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: Fixed a crash when calling `desktopCapturer.getSources` with an empty thumbnail size.


Changed files:
filename: shell/browser/api/electron_api_desktop_capturer.cc
patch: @@ -236,7 +236,8 @@ DesktopCapturer::DesktopListListener::~DesktopListListener() = default;
 
 void DesktopCapturer::DesktopListListener::OnDelegatedSourceListSelection() {
   if (have_thumbnail_) {
-    std::move(update_callback_).Run();
+    content::GetUIThreadTaskRunner({})->PostTask(FROM_HERE,
+                                                 std::move(update_callback_));
   } else {
     have_selection_ = true;
   }
@@ -249,7 +250,8 @@ void DesktopCapturer::DesktopListListener::OnSourceThumbnailChanged(int index) {
     have_selection_ = false;
 
     // PipeWire returns a single source, so index is not relevant.
-    std::move(update_callback_).Run();
+    content::GetUIThreadTaskRunner({})->PostTask(FROM_HERE,
+                                                 std::move(update_callback_));
   } else {
     have_thumbnail_ = true;
   }
Repository: denoland/deno
Pull request: fix(napi): remove unimplemented Node-API symbols from napi_sys

## Summary

- Removes 4 unimplemented Node-API functions from `libs/napi_sys/src/functions.rs`: `node_api_create_property_key_latin1`, `node_api_create_property_key_utf8`, `node_api_create_object_with_properties`, `node_api_create_object_with_named_properties`
- Fixes Windows debug CI failures introduced by #32582 where `GetProcAddress` failure messages for these symbols pollute stdout, causing the `napi cleanup_hook` test to fail (expected 4 lines, got 8)
- These functions were never in `symbol_exports.json` or implemented in `ext/napi` — they can be re-added when their implementations land

Changed files:
filename: libs/napi_sys/src/functions.rs
patch: @@ -815,31 +815,10 @@ generate!(
       length: usize,
       result: *mut napi_value,
     ) -> napi_status;
-    fn node_api_create_property_key_latin1(
-      env: napi_env,
-      str_: *const c_char,
-      length: usize,
-      result: *mut napi_value,
-    ) -> napi_status;
-    fn node_api_create_property_key_utf8(
-      env: napi_env,
-      str_: *const c_char,
-      length: usize,
-      result: *mut napi_value,
-    ) -> napi_status;
-    fn node_api_create_object_with_properties(
-      env: napi_env,
-      result: *mut napi_value,
-      property_count: usize,
-      keys: *const napi_value,
-      values: *const napi_value,
-    ) -> napi_status;
-    fn node_api_create_object_with_named_properties(
-      env: napi_env,
-      result: *mut napi_value,
-      property_count: usize,
-      names: *const *const c_char,
-      values: *const napi_value,
-    ) -> napi_status;
+    // TODO(denoland): add these once they are implemented in ext/napi
+    // fn node_api_create_property_key_latin1(...) -> napi_status;
+    // fn node_api_create_property_key_utf8(...) -> napi_status;
+    // fn node_api_create_object_with_properties(...) -> napi_status;
+    // fn node_api_create_object_with_named_properties(...) -> napi_status;
   }
 );
Repository: facebook/react
Pull request: [Fizz] track postpones when aborting boundaries with a postpone

When aborting with a postpone value boundaries are put into client rendered mode even during prerenders. This doesn't follow the postpoen semantics of the rest of fizz where during a prerender a postpone is tracked and it will leave holes in tracked postpone state that can be resumed. This change updates this behavior to match the postpones semantics between aborts and imperative postpones.

Changed files:
filename: packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
patch: @@ -7727,7 +7727,6 @@ describe('ReactDOMFizzServer', () => {
 
     const prerendered = await pendingPrerender;
 
-    expect(prerendered.postponed).toBe(null);
     expect(errors).toEqual([]);
     expect(postpones).toEqual(['manufactured', 'manufactured']);
 

filename: packages/react-server/src/ReactFizzServer.js
patch: @@ -3857,7 +3857,6 @@ function abortTask(task: Task, request: Request, error: mixed): void {
   } else {
     boundary.pendingTasks--;
     if (boundary.status !== CLIENT_RENDERED) {
-      boundary.status = CLIENT_RENDERED;
       // We construct an errorInfo from the boundary's componentStack so the error in dev will indicate which
       // boundary the message is referring to
       const errorInfo = getThrownInfo(task.componentStack);
@@ -3870,11 +3869,24 @@ function abortTask(task: Task, request: Request, error: mixed): void {
       ) {
         const postponeInstance: Postpone = (error: any);
         logPostpone(request, postponeInstance.message, errorInfo, null);
+        if (request.trackedPostpones !== null && segment !== null) {
+          trackPostpone(request, request.trackedPostpones, task, segment);
+          finishedTask(request, task.blockedBoundary, segment);
+
+          // If this boundary was still pending then we haven't already cancelled its fallbacks.
+          // We'll need to abort the fallbacks, which will also error that parent boundary.
+          boundary.fallbackAbortableTasks.forEach(fallbackTask =>
+            abortTask(fallbackTask, request, error),
+          );
+          boundary.fallbackAbortableTasks.clear();
+          return;
+        }
         // TODO: Figure out a better signal than a magic digest value.
         errorDigest = 'POSTPONE';
       } else {
         errorDigest = logRecoverableError(request, error, errorInfo, null);
       }
+      boundary.status = CLIENT_RENDERED;
       encodeErrorForBoundary(boundary, errorDigest, error, errorInfo, true);
 
       untrackBoundary(request, boundary);
Repository: vercel/next.js
Pull request: [ci]: update flake detection to only run in Turbopack

Flake detection runs changed test(s) 6 times: 3 in Webpack, 3 in Turbopack. for the purposes of detecting flakes, and to reduce the burden on CI, this runs flake detection only with Turbopack (esp. now that it's enabled by default).

Changed files:
filename: scripts/test-new-tests.mjs
patch: @@ -128,34 +128,19 @@ async function main() {
     }
   }
 
-  for (let i = 0; i < attempts; i++) {
-    console.log(`\n\nRun ${i + 1}/${attempts} for ${testMode} tests (Webpack)`)
-
-    // We apply the external tests filter before the process.env so that if
-    // it's defined in the environment, it overrides the default filter.
-    // This is required for supporting the experimental tests setup.
-    const NEXT_EXTERNAL_TESTS_FILTERS = process.env.NEXT_EXTERNAL_TESTS_FILTERS
-      ? process.env.NEXT_EXTERNAL_TESTS_FILTERS
-      : testMode === 'deploy'
-        ? 'test/deploy-tests-manifest.json'
-        : undefined
-
-    if (NEXT_EXTERNAL_TESTS_FILTERS) {
-      console.log(
-        `Applying external tests filter: ${NEXT_EXTERNAL_TESTS_FILTERS}`
-      )
-    }
+  // We apply the external tests filter before the process.env so that if
+  // it's defined in the environment, it overrides the default filter.
+  // This is required for supporting the experimental tests setup.
+  const NEXT_EXTERNAL_TESTS_FILTERS = process.env.NEXT_EXTERNAL_TESTS_FILTERS
+    ? process.env.NEXT_EXTERNAL_TESTS_FILTERS
+    : testMode === 'deploy'
+      ? 'test/deploy-tests-manifest.json'
+      : undefined
 
-    await execa('node', [...RUN_TESTS_ARGS, ...currentTests], {
-      ...EXECA_OPTS_STDIO,
-      env: {
-        ...process.env,
-        NEXT_EXTERNAL_TESTS_FILTERS,
-        NEXT_TEST_MODE: testMode,
-        NEXT_TEST_VERSION: nextTestVersion,
-        IS_WEBPACK_TEST: '1',
-      },
-    })
+  if (NEXT_EXTERNAL_TESTS_FILTERS) {
+    console.log(
+      `Applying external tests filter: ${NEXT_EXTERNAL_TESTS_FILTERS}`
+    )
   }
 
   if (isFlakeDetectionMode && testMode !== 'deploy') {
@@ -175,6 +160,21 @@ async function main() {
         },
       })
     }
+  } else {
+    for (let i = 0; i < attempts; i++) {
+      console.log(`\n\nRun ${i + 1}/${attempts} for ${testMode} tests`)
+
+      await execa('node', [...RUN_TESTS_ARGS, ...currentTests], {
+        ...EXECA_OPTS_STDIO,
+        env: {
+          ...process.env,
+          NEXT_EXTERNAL_TESTS_FILTERS,
+          NEXT_TEST_MODE: testMode,
+          NEXT_TEST_VERSION: nextTestVersion,
+          IS_WEBPACK_TEST: '1',
+        },
+      })
+    }
   }
 }
Repository: nodejs/node
Pull request: src: fix build on NetBSD

Include missing cmath.h header.

Fixes: https://github.com/nodejs/node/issues/59714

<!--
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: src/tracing/traced_value.cc
patch: @@ -9,6 +9,7 @@
 #include <unicode/utypes.h>
 #endif
 
+#include <cmath>
 #include <sstream>
 
 #include "node_metadata.h"
Repository: ollama/ollama
Pull request: Update the setup command to use llama3.

Updates the command to run ollama upon installation to use llama3:
`ollama run llama3`

Changed files:
filename: app/ollama.iss
patch: @@ -129,7 +129,7 @@ SetupAppRunningError=Another Ollama installer is running.%n%nPlease cancel or fi
 
 
 ;FinishedHeadingLabel=Run your first model
-;FinishedLabel=%nRun this command in a PowerShell or cmd terminal.%n%n%n    ollama run llama2
+;FinishedLabel=%nRun this command in a PowerShell or cmd terminal.%n%n%n    ollama run llama3
 ;ClickFinish=%n
 
 [Registry]
Repository: electron/electron
Pull request: fix: crash on source capture with empty thumbnail size

Backport of #47641

See that PR for details.


Notes: Fixed a crash when calling `desktopCapturer.getSources` with an empty thumbnail size.


Changed files:
filename: shell/browser/api/electron_api_desktop_capturer.cc
patch: @@ -236,7 +236,8 @@ DesktopCapturer::DesktopListListener::~DesktopListListener() = default;
 
 void DesktopCapturer::DesktopListListener::OnDelegatedSourceListSelection() {
   if (have_thumbnail_) {
-    std::move(update_callback_).Run();
+    content::GetUIThreadTaskRunner({})->PostTask(FROM_HERE,
+                                                 std::move(update_callback_));
   } else {
     have_selection_ = true;
   }
@@ -249,7 +250,8 @@ void DesktopCapturer::DesktopListListener::OnSourceThumbnailChanged(int index) {
     have_selection_ = false;
 
     // PipeWire returns a single source, so index is not relevant.
-    std::move(update_callback_).Run();
+    content::GetUIThreadTaskRunner({})->PostTask(FROM_HERE,
+                                                 std::move(update_callback_));
   } else {
     have_thumbnail_ = true;
   }
Repository: facebook/react
Pull request: [flow] Remove CI_MAX_WORKERS option

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):
* __->__ #30753

Noticed this from #30707. This was vestigial from from circleci and now
that we're on GH actions I think we should be able to remove this option
altogether.

Changed files:
filename: scripts/flow/config/flowconfig
patch: @@ -33,7 +33,6 @@
 untyped-type-import=error
 
 [options]
-%CI_MAX_WORKERS%
 munge_underscores=false
 
 # Substituted by createFlowConfig.js:

filename: scripts/flow/createFlowConfigs.js
patch: @@ -107,11 +107,6 @@ function writeConfig(
   });
 
   const config = configTemplate
-    .replace(
-      '%CI_MAX_WORKERS%\n',
-      // On CI, we seem to need to limit workers.
-      process.env.CI ? 'server.max_workers=4\n' : '',
-    )
     .replace('%REACT_RENDERER_FLOW_OPTIONS%', moduleMappings.trim())
     .replace('%REACT_RENDERER_FLOW_IGNORES%', ignoredPaths.join('\n'))
     .replace('%FLOW_VERSION%', flowVersion);
Repository: huggingface/transformers
Pull request: Fix an import error with PreTrainModel

This tiny tiny PR fixes an error introduced in #41445 which led to an import error.
For instance, `tests/models/gemma3/test_modeling_gemma3.py::Gemma3Vision2TextModelTest::test_flash_attn_2_fp32_ln` without this fix fails with 
```
NameError: name 'PreTrainedModel' is not defined
```
but after this fix passes

Changed files:
filename: src/transformers/quantizers/base.py
patch: @@ -32,6 +32,9 @@
 
 
 def _assign_original_dtype(module, original_dtype):
+    # not very nice in a recursive function but it avoids a circular import
+    from ..modeling_utils import PreTrainedModel
+
     for child in module.children():
         if isinstance(child, PreTrainedModel):
             child.config._pre_quantization_dtype = original_dtype
Repository: vercel/next.js
Pull request: [cna] Use stable React Compiler


Changed files:
filename: packages/create-next-app/index.ts
patch: @@ -480,8 +480,7 @@ async function run(): Promise<void> {
           onState: onPromptState,
           type: 'toggle',
           name: 'reactCompiler',
-          // TODO: Remove "Release Candidate" when React Compiler is stable
-          message: `Would you like to use ${styledReactCompiler} (Release Candidate)?`,
+          message: `Would you like to use ${styledReactCompiler}?`,
           initial: getPrefOrDefault('reactCompiler'),
           active: 'Yes',
           inactive: 'No',

filename: packages/create-next-app/templates/index.ts
patch: @@ -247,8 +247,7 @@ export const installTemplate = async ({
   }
 
   if (reactCompiler) {
-    // TODO: Use "^19" when React Compiler is stable
-    packageJson.devDependencies["babel-plugin-react-compiler"] = "19.1.0-rc.3";
+    packageJson.devDependencies["babel-plugin-react-compiler"] = "1.0.0";
   }
 
   /**
Repository: ollama/ollama
Pull request: Fix target in gen_windows.ps1

Replaces #3963 

Changed files:
filename: llm/generate/gen_windows.ps1
patch: @@ -26,7 +26,6 @@ function amdGPUs {
     $GPU_LIST -join ';'
 }
 
-$script:cmakeTargets = @("ollama_llama_server")
 
 function init_vars {
     if (!$script:SRC_DIR) {
@@ -35,6 +34,9 @@ function init_vars {
     if (!$script:llamacppDir) {
         $script:llamacppDir = "../llama.cpp"
     }
+    if (!$script:cmakeTargets) {
+        $script:cmakeTargets = @("ollama_llama_server")
+    }
     $script:cmakeDefs = @(
         "-DBUILD_SHARED_LIBS=on",
         "-DLLAMA_NATIVE=off"
@@ -188,6 +190,7 @@ function build_static() {
         # error action ensures we exit on failure
         get-command gcc
         get-command mingw32-make
+        $oldTargets = $script:cmakeTargets
         $script:cmakeTargets = @("llama", "ggml")
         $script:cmakeDefs = @(
             "-G", "MinGW Makefiles"
@@ -203,6 +206,7 @@ function build_static() {
         $script:buildDir="../build/windows/${script:ARCH}_static"
         write-host "Building static library"
         build
+        $script:cmakeTargets = $oldTargets
     } else {
         write-host "Skipping CPU generation step as requested"
     }