helloadhavan/github_issues huggingface dataset:
Repository: huggingface/transformers
Pull request: updated hidden_features for FlaxDinov2SwiGLUFFN in Dinov2 

# What does this PR do?

Fixes #37745 

## Changes made

[FlaxDinov2SwiGLUFFN](https://github.com/huggingface/transformers/blob/b6d65e40b256d98d9621707762b94bc8ad83b7a7/src/transformers/models/dinov2/modeling_flax_dinov2.py#L400) has only 2 attributes (config,dtype).  It doesn't have hidden_features attribute. So, the previously calculated hidden_feature value is used. This change removes the error faced in the above linked issue

## Before submitting
- [x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?
@gante  @Rocketknight1 

Changed files:
filename: src/transformers/models/dinov2/modeling_flax_dinov2.py
patch: @@ -403,7 +403,7 @@ class FlaxDinov2SwiGLUFFN(nn.Module):
 
     def setup(self):
         hidden_features = int(self.config.hidden_size * self.config.mlp_ratio)
-        hidden_features = (int(self.hidden_features * 2 / 3) + 7) // 8 * 8
+        hidden_features = (int(hidden_features * 2 / 3) + 7) // 8 * 8
 
         self.weights_in = nn.Dense(
             2 * hidden_features,
Repository: facebook/react
Pull request: Allow react-devtools-inline createStore() to override Store config params

It was an oversight when I originally wrote the `createStore` method not to allow more Store config params to be customizable. This change should have no impact on pre-existing users.

Changed files:
filename: packages/react-devtools-inline/src/frontend.js
patch: @@ -18,15 +18,18 @@ import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
 import type {Props} from 'react-devtools-shared/src/devtools/views/DevTools';
 
 type Config = {|
+  checkBridgeProtocolCompatibility?: boolean,
   supportsNativeInspection?: boolean,
+  supportsProfiling?: boolean,
 |};
 
 export function createStore(bridge: FrontendBridge, config?: Config): Store {
   return new Store(bridge, {
     checkBridgeProtocolCompatibility: true,
     supportsTraceUpdates: true,
     supportsTimeline: true,
-    supportsNativeInspection: config?.supportsNativeInspection !== false,
+    supportsNativeInspection: true,
+    ...config,
   });
 }
Repository: ggml-org/llama.cpp
Pull request: Bump LLGuidance git tag so it compiles on GCC15

This is a small change to the common CMakeLists.txt that simply bumps the llguidance git tag to version 7.20. Without this llama cpp will fail to compile on GCC15 if building llguidance as onig_sys rust repo is deprecated. See the issue below.

https://github.com/guidance-ai/llguidance/issues/173#issuecomment-2885265499

Changed files:
filename: common/CMakeLists.txt
patch: @@ -121,8 +121,8 @@ if (LLAMA_LLGUIDANCE)
 
     ExternalProject_Add(llguidance_ext
         GIT_REPOSITORY https://github.com/guidance-ai/llguidance
-        # v0.7.19 (+ fancy-regex build fix):
-        GIT_TAG b59f98f85269892a7de3d3641ad155366f13daa6
+        # v0.7.20 (+ fix to build on GCC 15):
+        GIT_TAG b5b8b64dba11c4e4ee6b1d1450d3a3ae279891e8
         PREFIX ${CMAKE_BINARY_DIR}/llguidance
         SOURCE_DIR ${LLGUIDANCE_SRC}
         BUILD_IN_SOURCE TRUE
Repository: vercel/next.js
Pull request: Update anyhow to 1.0.98

This includes nice utilities like `.into_boxed_dyn_error()`.


Closes PACK-4515

Changed files:
filename: Cargo.lock
patch: @@ -232,9 +232,9 @@ checksum = "70033777eb8b5124a81a1889416543dddef2de240019b674c81285a2635a7e1e"
 
 [[package]]
 name = "anyhow"
-version = "1.0.95"
+version = "1.0.98"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
+checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
 dependencies = [
  "backtrace",
 ]

filename: Cargo.toml
patch: @@ -325,7 +325,7 @@ tungstenite = "0.20.1"
 allsorts = { version = "0.14.0", default-features = false, features = [
   "flate2_rust",
 ] }
-anyhow = "1.0.69"
+anyhow = "1.0.98"
 assert_cmd = "2.0.8"
 async-compression = { version = "0.3.13", default-features = false, features = [
   "gzip",
Repository: nodejs/node
Pull request: test: remove test-net-write-fully-async-hex-string flaky designation

The original issue is likely the same as other tests that time out.

Refs: https://github.com/nodejs/node/issues/54918
Refs: https://github.com/nodejs/node/commit/84c2e712ebcd0f32dc0e
RefS: https://github.com/nodejs/node/pull/52959

<!--
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: test/parallel/parallel.status
patch: @@ -6,8 +6,6 @@ prefix parallel
 
 [true] # This section applies to all platforms
 # https://github.com/nodejs/node/issues/52273
-test-net-write-fully-async-hex-string: PASS, FLAKY
-# https://github.com/nodejs/node/issues/52273
 test-shadow-realm-gc: SKIP
 test-shadow-realm-gc-module: SKIP
 # https://github.com/nodejs/node/issues/52274
Repository: nodejs/node
Pull request: test: remove flaky designation

Remove test-inspector-async-stack-traces-set-interval flaky designation.

Refs: https://github.com/nodejs/node/issues/50243

<!--
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: test/parallel/parallel.status
patch: @@ -46,8 +46,6 @@ test-runner-watch-mode: PASS,FLAKY
 # https://github.com/nodejs/node/issues/42741
 test-http-server-headers-timeout-keepalive: PASS,FLAKY
 test-http-server-request-timeout-keepalive: PASS,FLAKY
-# https://github.com/nodejs/node/issues/50243
-test-inspector-async-stack-traces-set-interval: PASS, FLAKY
 # https://github.com/nodejs/node/issues/54811
 test-macos-app-sandbox: PASS, FLAKY
Repository: huggingface/transformers
Pull request: [cache] fix `HybridCache` init when `device` is passed

# What does this PR do?

The following example, where we initialize the model with the `device` argument, results in cuda graph skips. It can be traced to a stray change in https://github.com/huggingface/transformers/pull/37007, where the device initialization was incorrectly changed. This PR reverts it.

```py
from transformers import pipeline
import torch

pipe = pipeline(
    "image-text-to-text",
    model="google/gemma-3-4b-it",
    device="cuda",
    torch_dtype=torch.bfloat16
)

output = pipe(text="Write a poem on Hugging Face, the company", max_new_tokens=10)
print(output)
```

Changed files:
filename: src/transformers/cache_utils.py
patch: @@ -1697,7 +1697,7 @@ def __init__(
             min(config.sliding_window, max_cache_len),
             self.head_dim,
         )
-        device = torch.device(device) if device is not None and isinstance(device, str) else None
+        device = torch.device(device) if device is not None else None
         for i in range(config.num_hidden_layers):
             if layer_device_map is not None:
                 layer_device = layer_device_map[i]
Repository: facebook/react
Pull request: Update renderToPipeableStream#options.onShellError to match usage



## Summary

`onShellError` is called with the error ([tests](https://github.com/facebook/react/blob/14c2be8dac2d5482fda8a0906a31d239df8551fc/packages/react-dom/src/__tests__/ReactDOMFizzServerNode-test.js#L182), [docs](https://reactjs.org/docs/react-dom-server.html#rendertopipeablestream)).

The changed line is linked from the docs to refer to as the "full list of options".

## How did you test this change?

- [x] CI

Changed files:
filename: packages/react-dom/src/server/ReactDOMFizzServerNode.js
patch: @@ -41,7 +41,7 @@ type Options = {|
   bootstrapModules?: Array<string>,
   progressiveChunkSize?: number,
   onShellReady?: () => void,
-  onShellError?: () => void,
+  onShellError?: (error: mixed) => void,
   onAllReady?: () => void,
   onError?: (error: mixed) => void,
 |};
Repository: denoland/deno
Pull request: build: Allow building 'rc' release from source

We're not gonna use it, but this might help distribution tools like
Homebrew to also release Deno 2.0 RC releases.

Changed files:
filename: cli/version.rs
patch: @@ -9,6 +9,8 @@ const TYPESCRIPT: &str = env!("TS_VERSION");
 const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
 // TODO(bartlomieju): ideally we could remove this const.
 const IS_CANARY: bool = option_env!("DENO_CANARY").is_some();
+// TODO(bartlomieju): this is temporary, to allow Homebrew to cut RC releases as well
+const IS_RC: bool = option_env!("DENO_RC").is_some();
 
 pub static DENO_VERSION_INFO: Lazy<DenoVersionInfo> = Lazy::new(|| {
   let release_channel = libsui::find_section("denover")
@@ -17,6 +19,8 @@ pub static DENO_VERSION_INFO: Lazy<DenoVersionInfo> = Lazy::new(|| {
     .unwrap_or({
       if IS_CANARY {
         ReleaseChannel::Canary
+      } else if IS_RC {
+        ReleaseChannel::Rc
       } else {
         ReleaseChannel::Stable
       }
Repository: nodejs/node
Pull request: doc: add example for piping ReadableStream

When piping a `ReadableStream` created from an `Iterable` into a `WritableStream`, the sequence of objects in the `Iterable` must consist of either `Buffer`s, `TypedArray`s, or `DataView`s.

Re: https://github.com/nodejs/node/issues/56297

<!--
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: doc/api/webstreams.md
patch: @@ -436,6 +436,41 @@ async function* asyncIterableGenerator() {
 })();
 ```
 
+To pipe the resulting {ReadableStream} into a {WritableStream} the {Iterable}
+should yield a sequence of {Buffer}, {TypedArray}, or {DataView} objects.
+
+```mjs
+import { ReadableStream } from 'node:stream/web';
+import { Buffer } from 'node:buffer';
+
+async function* asyncIterableGenerator() {
+  yield Buffer.from('a');
+  yield Buffer.from('b');
+  yield Buffer.from('c');
+}
+
+const stream = ReadableStream.from(asyncIterableGenerator());
+
+await stream.pipeTo(createWritableStreamSomehow());
+```
+
+```cjs
+const { ReadableStream } = require('node:stream/web');
+const { Buffer } = require('node:buffer');
+
+async function* asyncIterableGenerator() {
+  yield Buffer.from('a');
+  yield Buffer.from('b');
+  yield Buffer.from('c');
+}
+
+const stream = ReadableStream.from(asyncIterableGenerator());
+
+(async () => {
+  await stream.pipeTo(createWritableStreamSomehow());
+})();
+```
+
 ### Class: `ReadableStreamDefaultReader`
 
 <!-- YAML
Repository: vercel/next.js
Pull request: Revert "De-dupe build_and_deploy run for PRs"

Reverting to figure out why we aren't finding the artifacts https://github.com/vercel/next.js/actions/runs/14805980982/job/41575122432?pr=78797

Reverts vercel/next.js#78792

Changed files:
filename: .github/workflows/build_and_deploy.yml
patch: @@ -18,7 +18,6 @@ env:
 
 jobs:
   deploy-target:
-    if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork }}
     runs-on: ubuntu-latest
     outputs:
       value: ${{ steps.deploy-target.outputs.value }}
Repository: denoland/deno
Pull request: tests: fix wpt_epoch job

Closes #25231


Changed files:
filename: tests/wpt/runner/expectation.json
patch: @@ -3684,7 +3684,6 @@
       "Range-intersectsNode-binding.html": false,
       "Range-intersectsNode-shadow.html": false,
       "Range-intersectsNode.html": false,
-      "Range-isPointInRange-shadowdom.tentative.html": false,
       "Range-isPointInRange.html": false,
       "Range-mutations-appendChild.html": false,
       "Range-mutations-appendData.html": false,
@@ -10280,10 +10279,6 @@
     "semantics": {
       "scripting-1": {
         "the-script-element": {
-          "import-assertions": {
-            "dynamic-import-with-assertion-argument.any.html": true,
-            "dynamic-import-with-assertion-argument.any.worker.html": true
-          },
           "json-module": {
             "charset-bom.any.html": true,
             "charset-bom.any.worker.html": true,
@@ -10341,6 +10336,11 @@
                 "import.meta.resolve is not a constructor"
               ]
             }
+          },
+          "import-attributes": {
+            "dynamic-import-with-attributes-argument.any.html": true,
+            "dynamic-import-with-attributes-argument.any.sharedworker.html": false,
+            "dynamic-import-with-attributes-argument.any.worker.html": true
           }
         }
       },
@@ -10724,7 +10724,6 @@
       "localStorage: defineProperty not configurable",
       "sessionStorage: defineProperty not configurable"
     ],
-    "localstorage-cross-origin-iframe.tentative.https.window.html": false,
     "storage_local_window_open.window.html": false,
     "storage_session_window_noopener.window.html": false,
     "storage_session_window_open.window.html": false,
@@ -10746,10 +10745,7 @@
     "event_session_removeitem.html": false,
     "event_session_storagearea.html": false,
     "event_session_url.html": false,
-    "event_setattribute.html": false,
-    "localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.tentative.html": false,
-    "localstorage-basic-partitioned.tentative.sub.html": false,
-    "sessionStorage-basic-partitioned.tentative.sub.html": false
+    "event_setattribute.html": false
   },
   "webmessaging": {
     "broadcastchannel": {
Repository: ggml-org/llama.cpp
Pull request: server : do not return error when running out of context (with ctx shift disabled)

Currently, when context shifting is disabled, we trigger the line of code that is not supposed to be called:

```cpp
if (!params_base.ctx_shift) {
    // this check is redundant (for good)
    // we should never get here, because generation should already stopped in process_token()
    slot.release();
    send_error(slot, "context shift is disabled", ERROR_TYPE_SERVER);
    continue;
}
```

This returns an error, which makes downstream applications unhappy.

NOTE: some variables may need to be renamed after https://github.com/ggml-org/llama.cpp/pull/13576


Changed files:
filename: tools/server/server.cpp
patch: @@ -2251,6 +2251,14 @@ struct server_context {
             slot.has_next_token = true;
         }
 
+        // if context shifting is disabled, make sure that we don't run out of context
+        if (!params_base.ctx_shift && slot.n_past + 1 >= slot.n_ctx) {
+            slot.stop           = STOP_TYPE_LIMIT;
+            slot.has_next_token = false;
+
+            SLT_DBG(slot, "stopped due to running out of context, n_past = %d, n_ctx = %d\n", slot.n_past, slot.n_ctx);
+        }
+
         // check the limits
         if (slot.n_decoded > 0 && slot.has_next_token && !slot.has_budget(params_base)) {
             slot.stop           = STOP_TYPE_LIMIT;

filename: tools/server/tests/unit/test_ctx_shift.py
patch: @@ -65,3 +65,21 @@ def test_ctx_shift_disabled_long_prompt():
     assert res.status_code != 200
     assert "error" in res.body
     assert "exceeds the available context size" in res.body["error"]["message"]
+
+def test_ctx_shift_disabled_stream():
+    global server
+    server.disable_ctx_shift = True
+    server.start()
+    res = server.make_stream_request("POST", "/v1/completions", data={
+        "n_predict": 256,
+        "prompt": "Once",
+        "stream": True,
+    })
+    content = ""
+    for data in res:
+        choice = data["choices"][0]
+        if choice["finish_reason"] == "length":
+            assert len(content) > 0
+        else:
+            assert choice["finish_reason"] is None
+            content += choice["text"]
Repository: nodejs/node
Pull request: doc: clarify util.aborted `resource` parameter usage

fixes: #55340 

This PR Highlights both the clarification of the `resource` parameter and the added context around memory management.

Changed files:
filename: doc/api/util.md
patch: @@ -2248,39 +2248,55 @@ added:
 > Stability: 1 - Experimental
 
 * `signal` {AbortSignal}
-* `resource` {Object} Any non-null entity, reference to which is held weakly.
+* `resource` {Object} Any non-null object tied to the abortable operation and held weakly.
+  If `resource` is garbage collected before the `signal` aborts, the promise remains pending,
+  allowing Node.js to stop tracking it.
+  This helps prevent memory leaks in long-running or non-cancelable operations.
 * Returns: {Promise}
 
-Listens to abort event on the provided `signal` and
-returns a promise that is fulfilled when the `signal` is
-aborted. If the passed `resource` is garbage collected before the `signal` is
-aborted, the returned promise shall remain pending indefinitely.
+Listens to abort event on the provided `signal` and returns a promise that resolves when the `signal` is aborted.
+If `resource` is provided, it weakly references the operation's associated object,
+so if `resource` is garbage collected before the `signal` aborts,
+then returned promise shall remain pending.
+This prevents memory leaks in long-running or non-cancelable operations.
 
 ```cjs
 const { aborted } = require('node:util');
 
+// Obtain an object with an abortable signal, like a custom resource or operation.
 const dependent = obtainSomethingAbortable();
 
+// Pass `dependent` as the resource, indicating the promise should only resolve
+// if `dependent` is still in memory when the signal is aborted.
 aborted(dependent.signal, dependent).then(() => {
-  // Do something when dependent is aborted.
+
+  // This code runs when `dependent` is aborted.
+  console.log('Dependent resource was aborted.');
 });
 
+// Simulate an event that triggers the abort.
 dependent.on('event', () => {
-  dependent.abort();
+  dependent.abort(); // This will cause the `aborted` promise to resolve.
 });
 ```
 
 ```mjs
 import { aborted } from 'node:util';
 
+// Obtain an object with an abortable signal, like a custom resource or operation.
 const dependent = obtainSomethingAbortable();
 
+// Pass `dependent` as the resource, indicating the promise should only resolve
+// if `dependent` is still in memory when the signal is aborted.
 aborted(dependent.signal, dependent).then(() => {
-  // Do something when dependent is aborted.
+
+  // This code runs when `dependent` is aborted.
+  console.log('Dependent resource was aborted.');
 });
 
+// Simulate an event that triggers the abort.
 dependent.on('event', () => {
-  dependent.abort();
+  dependent.abort(); // This will cause the `aborted` promise to resolve.
 });
 ```