helloadhavan/github_issues huggingface dataset:
Repository: ggml-org/llama.cpp
Pull request: HIP: enable vec fattn on RDNA4

In https://github.com/ggml-org/llama.cpp/pull/14202 i forgot to also disable rdna4 mma fattn in the runtime check, leaving gfx12/rdna4 with no fattn implementation enabled.
This pr fixes this oversight.

f4e081c03c319d201b58262ee35aa12c27c27f9e also fixes a minor unrelated code style problem.

Changed files:
filename: ggml/src/ggml-cuda/common.cuh
patch: @@ -241,8 +241,18 @@ static bool fp16_mma_available(const int cc) {
 #if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) && !defined(GGML_HIP_ROCWMMA_FATTN)
     return false;
 #else
-    return (GGML_CUDA_CC_IS_NVIDIA(cc) && ggml_cuda_highest_compiled_arch(cc) >= GGML_CUDA_CC_VOLTA) ||
-        GGML_CUDA_CC_IS_CDNA(cc) || GGML_CUDA_CC_IS_RDNA3(cc) || GGML_CUDA_CC_IS_RDNA4(cc);
+    if ((GGML_CUDA_CC_IS_NVIDIA(cc) && ggml_cuda_highest_compiled_arch(cc) >= GGML_CUDA_CC_VOLTA) ||
+        GGML_CUDA_CC_IS_CDNA(cc) || GGML_CUDA_CC_IS_RDNA3(cc)) {
+        return true;
+    } else if (GGML_CUDA_CC_IS_RDNA4(cc)) {
+#if defined(GGML_HIP_ROCWMMA_FATTN) && defined(GGML_HIP_ROCWMMA_FATTN_GFX12)
+        return true;
+#else
+        return false;
+#endif // defined(GGML_HIP_ROCWMMA_FATTN) && defined(GGML_HIP_ROCWMMA_FATTN_GFX12)
+    } else {
+        return false;
+    }
 #endif // defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) && !defined(GGML_HIP_ROCWMMA_FATTN)
 }
 

filename: ggml/src/ggml-cuda/ggml-cuda.cu
patch: @@ -100,8 +100,7 @@ int ggml_cuda_get_device() {
 static cudaError_t ggml_cuda_device_malloc(void ** ptr, size_t size, int device) {
     ggml_cuda_set_device(device);
     cudaError_t err;
-    if (getenv("GGML_CUDA_ENABLE_UNIFIED_MEMORY") != nullptr)
-    {
+    if (getenv("GGML_CUDA_ENABLE_UNIFIED_MEMORY") != nullptr) {
         err = cudaMallocManaged(ptr, size);
 #if defined(GGML_USE_HIP)
         if (err == hipSuccess) {
@@ -119,9 +118,7 @@ static cudaError_t ggml_cuda_device_malloc(void ** ptr, size_t size, int device)
             err = cudaMalloc(ptr, size);
         }
 #endif // defined(GGML_USE_HIP)
-    }
-    else
-    {
+    } else {
         err = cudaMalloc(ptr, size);
     }
     return err;
Repository: facebook/react
Pull request: [React Native Meta] dynamic feature flag for ref access warning

I'm looking to experiment with enabling this warning for React Native at Meta. This adds a dynamic feature flag.

**Note:** Not sure I'm doing this right, copied from the dynamic copy for www.

Changed files:
filename: packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js
patch: @@ -7,10 +7,8 @@
  * @flow strict
  */
 
-// NOTE: There are no flags, currently. Uncomment the stuff below if we add one.
-
-// import typeof * as ExportsType from './ReactFeatureFlags.native-fb-dynamic';
-// import typeof * as DynamicFlagsType from 'ReactNativeInternalFeatureFlags';
+import typeof * as ExportsType from './ReactFeatureFlags.native-fb-dynamic';
+import typeof * as DynamicFlagsType from 'ReactNativeInternalFeatureFlags';
 
 // In xplat, these flags are controlled by GKs. Because most GKs have some
 // population running in either mode, we should run our tests that way, too,
@@ -22,5 +20,7 @@
 // flag here but it won't be set to `true` in any of our test runs. Need to
 // update the test configuration.
 
-// // Flow magic to verify the exports of this file match the original version.
-// ((((null: any): ExportsType): FeatureFlagsType): ExportsType);
+export const enableUseRefAccessWarning = __VARIANT__;
+
+// Flow magic to verify the exports of this file match the original version.
+((((null: any): ExportsType): DynamicFlagsType): ExportsType);

filename: packages/shared/forks/ReactFeatureFlags.native-fb.js
patch: @@ -13,11 +13,11 @@ import typeof * as ExportsType from './ReactFeatureFlags.native-fb';
 // NOTE: There are no flags, currently. Uncomment the stuff below if we add one.
 // Re-export dynamic flags from the internal module. Intentionally using *
 // because this import is compiled to a `require` call.
-// import * as dynamicFlags from 'ReactNativeInternalFeatureFlags';
+import * as dynamicFlags from 'ReactNativeInternalFeatureFlags';
 
 // We destructure each value before re-exporting to avoid a dynamic look-up on
 // the exports object every time a flag is read.
-// export const {} = dynamicFlags;
+export const {enableUseRefAccessWarning} = dynamicFlags;
 
 // The rest of the flags are static for better dead code elimination.
 export const enableDebugTracing = false;
@@ -67,7 +67,6 @@ export const deferRenderPhaseUpdateToNextBatch = false;
 
 export const enableStrictEffects = __DEV__;
 export const createRootStrictEffectsByDefault = false;
-export const enableUseRefAccessWarning = false;
 
 export const disableSchedulerTimeoutInWorkLoop = false;
 export const enableLazyContextPropagation = false;

filename: scripts/flow/xplat.js
patch: @@ -8,4 +8,5 @@
  */
 
 declare module 'ReactNativeInternalFeatureFlags' {
+  declare export var enableUseRefAccessWarning: boolean;
 }
Repository: huggingface/transformers
Pull request: add XPU info print in print_env

@ydshieh , pls help review, thx very much.

Changed files:
filename: utils/print_env.py
patch: @@ -21,6 +21,7 @@
 import sys
 
 import transformers
+from transformers import is_torch_xpu_available
 
 
 os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
@@ -32,11 +33,21 @@
     import torch
 
     print("Torch version:", torch.__version__)
-    print("Cuda available:", torch.cuda.is_available())
-    print("Cuda version:", torch.version.cuda)
-    print("CuDNN version:", torch.backends.cudnn.version())
-    print("Number of GPUs available:", torch.cuda.device_count())
-    print("NCCL version:", torch.cuda.nccl.version())
+    accelerator = "NA"
+    if torch.cuda.is_available():
+        accelerator = "CUDA"
+    elif is_torch_xpu_available():
+        accelerator = "XPU"
+    print("Torch accelerator:", accelerator)
+
+    if accelerator == "CUDA":
+        print("Cuda version:", torch.version.cuda)
+        print("CuDNN version:", torch.backends.cudnn.version())
+        print("Number of GPUs available:", torch.cuda.device_count())
+        print("NCCL version:", torch.cuda.nccl.version())
+    elif accelerator == "XPU":
+        print("SYCL version:", torch.version.xpu)
+        print("Number of XPUs available:", torch.xpu.device_count())
 except ImportError:
     print("Torch version:", None)
Repository: electron/electron
Pull request: build: fix main printing patch conflict

#### Description of Change

This PR updates the printing patch after the latest Chrome roll

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] PR description included and stakeholders cc'd
- [ ] `npm test` passes
- [ ] tests are [changed or added](https://github.com/electron/electron/blob/main/docs/development/testing.md)
- [ ] relevant documentation, tutorials, templates and examples are changed or added
- [ ] [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: none


Changed files:
filename: patches/chromium/printing.patch
patch: @@ -926,23 +926,3 @@ index 1e15568ad872c01c7c588ced81897f8dc229247a..ca528863a2dab2f437bbe95b343ccd33
  namespace sandbox::policy {
  
  base::FilePath GetCanonicalPath(const base::FilePath& path) {
-diff --git a/ui/gtk/gtk_util.cc b/ui/gtk/gtk_util.cc
-index d86fbcf969f2fa0d176ead903703ab612e5464c2..6b963ea8401d20e655d068a69105586814bab320 100644
---- a/ui/gtk/gtk_util.cc
-+++ b/ui/gtk/gtk_util.cc
-@@ -227,9 +227,13 @@ aura::Window* GetAuraTransientParent(GtkWidget* dialog) {
- }
- 
- void ClearAuraTransientParent(GtkWidget* dialog, aura::Window* parent) {
-+  if (!parent || !parent->GetHost()) {
-+    return;
-+  }
-+
-   g_object_set_data(G_OBJECT(dialog), kAuraTransientParent, nullptr);
--  GtkUi::GetPlatform()->ClearTransientFor(
--      parent->GetHost()->GetAcceleratedWidget());
-+  gfx::AcceleratedWidget parent_id = parent->GetHost()->GetAcceleratedWidget();
-+  GtkUi::GetPlatform()->ClearTransientFor(parent_id);
- }
- 
- base::OnceClosure DisableHostInputHandling(GtkWidget* dialog,
Repository: facebook/react
Pull request: [DevTools] Highlight RN elements on hover

On WWW we are highlights the element on hover, but RN it highlighted on selection. This PR makes the devtools behaves more similarly when it comes to highlight.
Tested on Catalyst app

Changed files:
filename: packages/react-devtools-shared/src/backend/views/Highlighter/Highlighter.js
patch: @@ -16,7 +16,11 @@ const SHOW_DURATION = 2000;
 let timeoutID: TimeoutID | null = null;
 let overlay: Overlay | null = null;
 
-export function hideOverlay() {
+export function hideOverlay(agent: Agent) {
+  if (window.document == null) {
+    agent.emit('hideNativeHighlight');
+    return;
+  }
   timeoutID = null;
 
   if (overlay !== null) {
@@ -31,8 +35,10 @@ export function showOverlay(
   agent: Agent,
   hideAfterTimeout: boolean,
 ) {
-  // TODO (npm-packages) Detect RN and support it somehow
   if (window.document == null) {
+    if (elements != null && elements[0] != null) {
+      agent.emit('showNativeHighlight', elements[0]);
+    }
     return;
   }
 
@@ -51,6 +57,6 @@ export function showOverlay(
   overlay.inspect(elements, componentName);
 
   if (hideAfterTimeout) {
-    timeoutID = setTimeout(hideOverlay, SHOW_DURATION);
+    timeoutID = setTimeout(() => hideOverlay(agent), SHOW_DURATION);
   }
 }

filename: packages/react-devtools-shared/src/backend/views/Highlighter/index.js
patch: @@ -54,7 +54,7 @@ export default function setupHighlighter(
   }
 
   function stopInspectingNative() {
-    hideOverlay();
+    hideOverlay(agent);
     removeListenersOnWindow(window);
     iframesListeningTo.forEach(function(frame) {
       try {
@@ -82,7 +82,7 @@ export default function setupHighlighter(
   }
 
   function clearNativeElementHighlight() {
-    hideOverlay();
+    hideOverlay(agent);
   }
 
   function highlightNativeElement({
@@ -129,7 +129,7 @@ export default function setupHighlighter(
         bridge.send('syncSelectionToNativeElementsPanel');
       }
     } else {
-      hideOverlay();
+      hideOverlay(agent);
     }
   }
Repository: denoland/deno
Pull request: feat(permissions): expose PermissionPrompter and set_prompter function

when defining a custom runtime, it might be useful to define a custom prompter - for instance when you are not relying on the terminal and want a GUI prompter instead



Changed files:
filename: runtime/permissions/lib.rs
patch: @@ -39,6 +39,8 @@ use prompter::PromptResponse;
 use prompter::PERMISSION_EMOJI;
 
 pub use prompter::set_prompt_callbacks;
+pub use prompter::set_prompter;
+pub use prompter::PermissionPrompter;
 pub use prompter::PromptCallback;
 
 /// Fast exit from permission check routines if this permission

filename: runtime/permissions/prompter.rs
patch: @@ -80,6 +80,10 @@ pub fn set_prompt_callbacks(
   *MAYBE_AFTER_PROMPT_CALLBACK.lock() = Some(after_callback);
 }
 
+pub fn set_prompter(prompter: Box<dyn PermissionPrompter>) {
+  *PERMISSION_PROMPTER.lock() = prompter;
+}
+
 pub type PromptCallback = Box<dyn FnMut() + Send + Sync>;
 
 pub trait PermissionPrompter: Send + Sync {
@@ -476,8 +480,4 @@ pub mod tests {
       STUB_PROMPT_VALUE.store(value, Ordering::SeqCst);
     }
   }
-
-  pub fn set_prompter(prompter: Box<dyn PermissionPrompter>) {
-    *PERMISSION_PROMPTER.lock() = prompter;
-  }
 }
Repository: nodejs/node
Pull request: url: expose urlpattern as global

Expose URLPattern as global.

Changed files:
filename: doc/api/globals.md
patch: @@ -1145,6 +1145,16 @@ added: v10.0.0
 
 The WHATWG `URL` class. See the [`URL`][] section.
 
+## `URLPattern`
+
+<!-- YAML
+added: REPLACEME
+-->
+
+<!-- type=global -->
+
+The WHATWG `URLPattern` class. See the [`URLPattern`][] section.
+
 ## `URLSearchParams`
 
 <!-- YAML
@@ -1262,6 +1272,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
 [`TextEncoder`]: util.md#class-utiltextencoder
 [`TransformStreamDefaultController`]: webstreams.md#class-transformstreamdefaultcontroller
 [`TransformStream`]: webstreams.md#class-transformstream
+[`URLPattern`]: url.md#class-urlpattern
 [`URLSearchParams`]: url.md#class-urlsearchparams
 [`URL`]: url.md#class-url
 [`WebSocket`]: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket

filename: lib/internal/bootstrap/web/exposed-window-or-worker.js
patch: @@ -19,6 +19,7 @@ const {
   defineLazyProperties,
   defineReplaceableLazyAttribute,
   exposeLazyInterfaces,
+  exposeInterface,
 } = require('internal/util');
 
 const {
@@ -63,8 +64,9 @@ exposeLazyInterfaces(globalThis, 'perf_hooks', [
 defineReplaceableLazyAttribute(globalThis, 'perf_hooks', ['performance']);
 
 // https://w3c.github.io/FileAPI/#creating-revoking
-const { installObjectURLMethods } = require('internal/url');
+const { installObjectURLMethods, URLPattern } = require('internal/url');
 installObjectURLMethods();
+exposeInterface(globalThis, 'URLPattern', URLPattern);
 
 let fetchImpl;
 // https://fetch.spec.whatwg.org/#fetch-method

filename: test/wpt/test-urlpattern.js
patch: @@ -5,6 +5,4 @@ const { WPTRunner } = require('../common/wpt');
 const runner = new WPTRunner('urlpattern');
 
 runner.pretendGlobalThisAs('Window');
-// TODO(@anonrig): Remove this once URLPattern is global.
-runner.setInitScript(`global.URLPattern = require('node:url').URLPattern;`);
 runner.runJsTests();
Repository: electron/electron
Pull request: ci: use Node.js 20 in Bake AppVeyor Image workflow

#### Description of Change

<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Contributors guide: https://github.com/electron/electron/blob/main/CONTRIBUTING.md
-->

The workflow has been failing as the `ubuntu-latest` image comes with Node.js 18 and we weren't installing a specific version.

Also adds this workflow to CODEOWNERS for Releases WG since it wasn't covered before.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd

#### Release Notes

Notes: none <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->


Changed files:
filename: .github/CODEOWNERS
patch: @@ -8,6 +8,7 @@
 DEPS                                    @electron/wg-upgrades
 
 # Releases WG
+/.github/workflows/update_appveyor_image.yml @electron/wg-releases
 /docs/breaking-changes.md               @electron/wg-releases
 /npm/                                   @electron/wg-releases
 /script/release                         @electron/wg-releases

filename: .github/workflows/update_appveyor_image.yml
patch: @@ -23,6 +23,10 @@ jobs:
       with:
         fetch-depth: 0
         token: ${{ steps.generate-token.outputs.token }}
+    - name: Setup Node.js
+      uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
+      with:
+        node-version: 20.11.x
     - name: Yarn install
       run: |
         node script/yarn.js install --frozen-lockfile
Repository: huggingface/transformers
Pull request: refine `transformers env` output

@ydshieh @Rocketknight1 , sorry i mis-closed https://github.com/huggingface/transformers/pull/38252, pls help review with this PR, thx very much.

Changed files:
filename: src/transformers/commands/env.py
patch: @@ -32,6 +32,7 @@
     is_torch_available,
     is_torch_hpu_available,
     is_torch_npu_available,
+    is_torch_xpu_available,
 )
 from . import BaseTransformersCLICommand
 
@@ -89,15 +90,25 @@ def run(self):
 
         pt_version = "not installed"
         pt_cuda_available = "NA"
+        pt_accelerator = "NA"
         if is_torch_available():
             import torch
 
             pt_version = torch.__version__
             pt_cuda_available = torch.cuda.is_available()
-            pt_xpu_available = torch.xpu.is_available()
+            pt_xpu_available = is_torch_xpu_available()
             pt_npu_available = is_torch_npu_available()
             pt_hpu_available = is_torch_hpu_available()
 
+            if pt_cuda_available:
+                pt_accelerator = "CUDA"
+            elif pt_xpu_available:
+                pt_accelerator = "XPU"
+            elif pt_npu_available:
+                pt_accelerator = "NPU"
+            elif pt_hpu_available:
+                pt_accelerator = "HPU"
+
         tf_version = "not installed"
         tf_cuda_available = "NA"
         if is_tf_available():
@@ -141,7 +152,7 @@ def run(self):
             "Accelerate version": f"{accelerate_version}",
             "Accelerate config": f"{accelerate_config_str}",
             "DeepSpeed version": f"{deepspeed_version}",
-            "PyTorch version (GPU?)": f"{pt_version} ({pt_cuda_available})",
+            "PyTorch version (accelerator?)": f"{pt_version} ({pt_accelerator})",
             "Tensorflow version (GPU?)": f"{tf_version} ({tf_cuda_available})",
             "Flax version (CPU?/GPU?/TPU?)": f"{flax_version} ({jax_backend})",
             "Jax version": f"{jax_version}",
Repository: facebook/react
Pull request: Grammar. Removed doubles of the word "the".

## Summary

I saw an error in the documentation where the work "the" was repeated twice in a row on a couple of different places, and corrected them.

## How did you test this change?

Not applicable, only comments edited.


Changed files:
filename: packages/react-devtools-shared/src/__tests__/preprocessData-test.js
patch: @@ -1926,7 +1926,7 @@ describe('Timeline profiler', () => {
   });
 
   // Note the in-memory tests vary slightly (e.g. timestamp values, lane numbers) from the above tests.
-  // That's okay; the important thing is the the lane-to-label matches the subsequent events/measures.
+  // That's okay; the important thing is the lane-to-label matches the subsequent events/measures.
   describe('DevTools hook (in memory)', () => {
     let store;
 

filename: packages/react-reconciler/src/ReactFiberWorkLoop.new.js
patch: @@ -1983,7 +1983,7 @@ function renderRootConcurrent(root: FiberRoot, lanes: Lanes) {
       handleThrow(root, thrownValue);
       if (isTrackingSuspendedThenable()) {
         // If this fiber just suspended, it's possible the data is already
-        // cached. Yield to the the main thread to give it a chance to ping. If
+        // cached. Yield to the main thread to give it a chance to ping. If
         // it does, we can retry immediately without unwinding the stack.
         break;
       }

filename: packages/react-reconciler/src/ReactFiberWorkLoop.old.js
patch: @@ -1983,7 +1983,7 @@ function renderRootConcurrent(root: FiberRoot, lanes: Lanes) {
       handleThrow(root, thrownValue);
       if (isTrackingSuspendedThenable()) {
         // If this fiber just suspended, it's possible the data is already
-        // cached. Yield to the the main thread to give it a chance to ping. If
+        // cached. Yield to the main thread to give it a chance to ping. If
         // it does, we can retry immediately without unwinding the stack.
         break;
       }
Repository: vercel/next.js
Pull request: report build-and-deploy failures only after retries

In #75749 we made a single failure for `build-and-deploy` alert. However as seen there can be transient failures ([ex1](https://github.com/vercel/next.js/actions/runs/15218556449/job/42809569102), [ex2](https://github.com/vercel/next.js/actions/runs/15198747807/job/42748740308))

This updates the logic to treat both workflows the same, and alert after 3 retries. 

Changed files:
filename: .github/workflows/retry_test.yml
patch: @@ -21,7 +21,6 @@ jobs:
       ${{ 
         github.event.workflow_run.conclusion == 'failure' &&
         github.repository == 'vercel/next.js' &&
-        github.event.workflow.name != 'build-and-deploy' &&
         github.event.workflow_run.run_attempt < 3
       }}
     runs-on: ubuntu-latest
@@ -43,7 +42,7 @@ jobs:
     if: >-
       ${{ 
         github.event.workflow_run.conclusion == 'failure' &&
-        (github.event.workflow_run.run_attempt >= 3 || github.event.workflow.name == 'build-and-deploy') &&
+        github.event.workflow_run.run_attempt >= 3 &&
         !github.event.workflow_run.head_repository.fork
       }}
     runs-on: ubuntu-latest
Repository: denoland/deno
Pull request: fix(runtime): send ws ping frames from inspector server

Every 30 seconds the websocket server will now send a ping frame, so that the TCP socket stays alive.

<!--
Before submitting a PR, please read https://docs.deno.com/runtime/manual/references/contributing

1. Give the PR a descriptive title.

  Examples of good title:
    - fix(std/http): Fix race condition in server
    - docs(console): Update docstrings
    - feat(doc): Handle nested reexports

  Examples of bad title:
    - fix #7123
    - update docs
    - fix bugs

2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't run
   all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label.
-->


Changed files:
filename: runtime/inspector_server.rs
patch: @@ -23,6 +23,7 @@ use deno_core::InspectorSessionProxy;
 use deno_core::JsRuntime;
 use fastwebsockets::Frame;
 use fastwebsockets::OpCode;
+use fastwebsockets::Payload;
 use fastwebsockets::WebSocket;
 use hyper::body::Bytes;
 use hyper_util::rt::TokioIo;
@@ -33,6 +34,7 @@ use std::pin::pin;
 use std::process;
 use std::rc::Rc;
 use std::thread;
+use std::time::Duration;
 use tokio::net::TcpListener;
 use tokio::sync::broadcast;
 use uuid::Uuid;
@@ -393,8 +395,13 @@ async fn pump_websocket_messages(
   inbound_tx: UnboundedSender<String>,
   mut outbound_rx: UnboundedReceiver<InspectorMsg>,
 ) {
+  let mut ticker = tokio::time::interval(Duration::from_secs(30));
+
   'pump: loop {
     tokio::select! {
+        _ = ticker.tick() => {
+            let _ = websocket.write_frame(Frame::new(true, OpCode::Ping, None, Payload::Borrowed(&[]))).await;
+        }
         Some(msg) = outbound_rx.next() => {
             let msg = Frame::text(msg.content.into_bytes().into());
             let _ = websocket.write_frame(msg).await;