helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: build: do not set `-mminimal-toc` with `clang`

This is a gcc-only option, do not pass to clang.

Refs: https://github.com/nodejs/build/issues/4091
Refs: https://github.com/nodejs/build/pull/4123#issuecomment-3191631674

<!--
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: common.gypi
patch: @@ -530,7 +530,12 @@
                 'ldflags': [ '-m64' ],
               }],
               [ 'host_arch=="ppc64" and OS not in "aix os400"', {
-                'cflags': [ '-m64', '-mminimal-toc' ],
+                'conditions': [
+                  [ 'clang==0', {
+                    'cflags': [ '-mminimal-toc' ],
+                  }],
+                ],
+                'cflags': [ '-m64' ],
                 'ldflags': [ '-m64' ],
               }],
               [ 'host_arch=="s390x" and OS=="linux"', {
@@ -550,7 +555,12 @@
                 'ldflags': [ '-m64' ],
               }],
               [ 'target_arch=="ppc64" and OS not in "aix os400"', {
-                'cflags': [ '-m64', '-mminimal-toc' ],
+                'conditions': [
+                  [ 'clang==0', {
+                    'cflags': [ '-mminimal-toc' ],
+                  }],
+                ],
+                'cflags': [ '-m64' ],
                 'ldflags': [ '-m64' ],
               }],
               [ 'target_arch=="s390x" and OS=="linux"', {
Repository: vercel/next.js
Pull request: Turbopack: count turbo_tasks::run as foreground tasks to avoid being idle

### What?

We need to count `turbo_tasks::run` as foreground task otherwise persistent caching thinks we are idle and starts persisting too early.

Closes PACK-5580

Changed files:
filename: turbopack/crates/turbo-tasks/src/manager.rs
patch: @@ -539,12 +539,13 @@ impl<B: Backend + 'static> TurboTasks<B> {
         &self,
         future: impl Future<Output = Result<T>> + Send + 'static,
     ) -> Result<T, TurboTasksExecutionError> {
+        self.begin_foreground_job();
         // it's okay for execution ids to overflow and wrap, they're just used for an assert
         let execution_id = self.execution_id_factory.wrapping_get();
         let current_task_state =
             Arc::new(RwLock::new(CurrentTaskState::new_temporary(execution_id)));
 
-        TURBO_TASKS
+        let result = TURBO_TASKS
             .scope(
                 self.pin(),
                 CURRENT_TASK_STATE.scope(current_task_state, async {
@@ -563,7 +564,9 @@ impl<B: Backend + 'static> TurboTasks<B> {
                     }
                 }),
             )
-            .await
+            .await;
+        self.finish_foreground_job();
+        result
     }
 
     pub fn start_once_process(&self, future: impl Future<Output = ()> + Send + 'static) {
Repository: denoland/deno
Pull request: fix(ext/node): normalize trailing dot in TLS servername

Fixes #30170

Node.js strips trailing dots from FQDN server names before TLS certificate verification, but Deno was passing the servername with the trailing dot directly to rustls. This caused certificate validation failures when connecting with a trailing-dot servername like `example.local.` to a server whose certificate is valid for `example.local`.

The error message was especially confusing because it said the certificate wasn't valid for `example.local.` when it was only valid for `example.local.` (same string):
```
certificate not valid for name "example.local."; certificate is only valid for DnsName("example.local.")
```

The fix strips the trailing dot from the hostname in the TLSSocket constructor before it's passed to the TLS layer. This matches Node.js behavior - DNS fully-qualified domain names end with a dot but TLS SNI extensions and certificate matching should work without it.

Added a test that connects using `localhost.` as servername to verify the trailing dot is properly normalized.

Changed files:
filename: ext/node/polyfills/_tls_wrap.js
patch: @@ -86,8 +86,14 @@ export class TLSSocket extends net.Socket {
   constructor(socket, opts = kEmptyObject) {
     const tlsOptions = { ...opts };
 
-    const hostname = opts.servername ?? opts.host ?? socket?._host ??
+    let hostname = opts.servername ?? opts.host ?? socket?._host ??
       "localhost";
+    // Strip trailing dot from hostname for SNI and certificate verification,
+    // matching Node.js behavior. DNS FQDN trailing dots are valid but must
+    // be normalized for TLS server name matching.
+    if (hostname && hostname.endsWith(".")) {
+      hostname = hostname.slice(0, -1);
+    }
     tlsOptions.hostname = hostname;
 
     const cert = tlsOptions?.secureContext?.cert;

filename: tests/unit_node/tls_test.ts
patch: @@ -479,3 +479,43 @@ BnRlc3RDQTCB
   // deno-lint-ignore no-explicit-any
   (tls as any).setDefaultCACertificates([testCert]);
 });
+
+// https://github.com/denoland/deno/issues/30170
+Deno.test("tls.connect strips trailing dot from servername", async () => {
+  const listener = Deno.listenTls({
+    port: 0,
+    key,
+    cert,
+  });
+
+  const conn = tls.connect({
+    host: "localhost",
+    port: listener.addr.port,
+    // Use trailing dot - should be normalized to "localhost"
+    servername: "localhost.",
+    secureContext: {
+      ca: rootCaCert,
+      // deno-lint-ignore no-explicit-any
+    } as any,
+  });
+
+  const serverConn = await listener.accept();
+
+  const { promise: connected, resolve: resolveConnected } = Promise
+    .withResolvers<void>();
+  conn.on("secureConnect", () => {
+    assert(conn.authorized, "Connection should be authorized");
+    resolveConnected();
+  });
+
+  conn.on("error", (err: Error) => {
+    // Should not get a certificate error with trailing dot
+    throw err;
+  });
+
+  await connected;
+  conn.destroy();
+  serverConn.close();
+  listener.close();
+  await new Promise((resolve) => conn.on("close", resolve));
+});
Repository: ollama/ollama
Pull request: .github: fix model and feature request yml


Changed files:
filename: .github/ISSUE_TEMPLATE/10_model_request.yml
patch: @@ -1,6 +1,5 @@
 name: Model request
 description: Request a new model for the library
-title: ""
 labels: [mr]
 body:
   - type: markdown

filename: .github/ISSUE_TEMPLATE/20_feature_request.yml
patch: @@ -1,6 +1,5 @@
 name: Feature request
 description: Propose a new feature
-title: ""
 labels: [needs-triage, fr]
 body:
   - type: markdown
Repository: facebook/react
Pull request: [test] Add `findSourceMapURL` to `ReactNoopFlightClient`

## Summary

Allows testing of `findSourceMapURL` calls

## How did you test this change?

Used in https://github.com/facebook/react/pull/30396


Changed files:
filename: packages/react-noop-renderer/src/ReactNoopFlightClient.js
patch: @@ -14,6 +14,8 @@
  * environment.
  */
 
+import type {FindSourceMapURLCallback} from 'react-client/flight';
+
 import {readModule} from 'react-noop-renderer/flight-modules';
 
 import ReactFlightClient from 'react-client/flight';
@@ -49,15 +51,19 @@ const {createResponse, processBinaryChunk, getRoot, close} = ReactFlightClient({
   },
 });
 
-function read<T>(source: Source): Thenable<T> {
+type ReadOptions = {|
+  findSourceMapURL?: FindSourceMapURLCallback,
+|};
+
+function read<T>(source: Source, options: ReadOptions): Thenable<T> {
   const response = createResponse(
     source,
     null,
     undefined,
     undefined,
     undefined,
     undefined,
-    undefined,
+    options !== undefined ? options.findSourceMapURL : undefined,
     true,
   );
   for (let i = 0; i < source.length; i++) {
Repository: huggingface/transformers
Pull request: add peft team members to issue/pr template

# What does this PR do?

PEFT go brrrrr

Changed files:
filename: .github/ISSUE_TEMPLATE/bug-report.yml
patch: @@ -61,6 +61,7 @@ body:
           - Big Model Inference: @SunMarc
           - quantization (bitsandbytes, autogpt): @SunMarc @MekkCyber
           - kernels: @MekkCyber @drbh
+          - peft: @BenjaminBossan @githubnemo
         
         Devices/Backends:
         

filename: .github/PULL_REQUEST_TEMPLATE.md
patch: @@ -64,6 +64,7 @@ Integrations:
 - Big Model Inference: @SunMarc
 - quantization (bitsandbytes, autogpt): @SunMarc @MekkCyber
 - kernels: @MekkCyber @drbh
+- peft: @BenjaminBossan @githubnemo
 
 Devices/Backends:
Repository: facebook/react
Pull request: [ci] Update sizebot node_modules caching strategy

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

The download job for sizebot requires both modules from the root repo
but also has a nested yarn lockfile in scripts/release. Calculate the
hash for the cache using both lockfiles.

Changed files:
filename: .github/workflows/runtime_build_and_test.yml
patch: @@ -539,8 +539,8 @@ jobs:
         uses: actions/cache@v4
         id: node_modules
         with:
-          path: scripts/release/node_modules
-          key: ${{ runner.arch }}-${{ runner.os }}-scripts-modules-${{ hashFiles('scripts/release/yarn.lock') }}
+          path: "**/node_modules"
+          key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock', 'scripts/release/yarn.lock') }}
       - run: yarn install --frozen-lockfile
       - run: yarn install --frozen-lockfile
         working-directory: scripts/release
Repository: facebook/react
Pull request: Add run prettier commit to .git-blame-ignore-revs

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



Changed files:
filename: .github/workflows/runtime_build_and_test.yml
patch: @@ -565,7 +565,7 @@ jobs:
 
   sizebot:
     name: Run sizebot
-    needs: download_base_build_for_sizebot
+    needs: [build_and_lint, download_base_build_for_sizebot]
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
Repository: vercel/next.js
Pull request: Turbopack: avoid panic on updating output when a task was cancelled

### What?

When a task was cancelled, updating the output should not lead to a panic.

Closes PACK-5568

Changed files:
filename: turbopack/crates/turbo-tasks-backend/src/backend/operation/update_output.rs
patch: @@ -54,11 +54,16 @@ impl UpdateOutputOperation {
 
         'output: {
             let mut task = ctx.task(task_id, TaskDataCategory::All);
+            let in_progress_state = get!(task, InProgress);
+            if matches!(in_progress_state, Some(InProgressState::Canceled)) {
+                // Skip updating the output when the task was canceled
+                break 'output;
+            }
             let Some(InProgressState::InProgress(box InProgressStateInner {
                 stale,
                 new_children,
                 ..
-            })) = get!(task, InProgress)
+            })) = in_progress_state
             else {
                 panic!("Task is not in progress while updating the output");
             };
Repository: facebook/react
Pull request: [ci] Fix sizebot job omitting build_and_lint dependency

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



Changed files:
filename: .github/workflows/runtime_build_and_test.yml
patch: @@ -565,7 +565,7 @@ jobs:
 
   sizebot:
     name: Run sizebot
-    needs: download_base_build_for_sizebot
+    needs: [build_and_lint, download_base_build_for_sizebot]
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
Repository: ggml-org/llama.cpp
Pull request: HIP: fix RDNA3 FP16/BF16 matrix multiplication

Fixes https://github.com/ggml-org/llama.cpp/issues/17797 by simply adding an explicit RDNA4 requirement to MMF. @jiachengjason as outlined in https://github.com/ggml-org/llama.cpp/blob/master/CONTRIBUTING.md#pull-requests-for-contributors--collaborators , please test changes to the CUDA/HIP backend for correctness using `test-backend-ops`.

Changed files:
filename: ggml/src/ggml-cuda/mmf.cu
patch: @@ -160,9 +160,9 @@ bool ggml_cuda_should_use_mmf(enum ggml_type type, int cc, int warp_size, const
         case GGML_TYPE_F32:
             return ampere_mma_available(cc);
         case GGML_TYPE_F16:
-            return volta_mma_available(cc) || turing_mma_available(cc) || amd_wmma_available(cc);
+            return volta_mma_available(cc) || turing_mma_available(cc) || (amd_wmma_available(cc) && GGML_CUDA_CC_IS_RDNA4(cc));
         case GGML_TYPE_BF16:
-            return ampere_mma_available(cc) || amd_wmma_available(cc);
+            return ampere_mma_available(cc) || (amd_wmma_available(cc) && GGML_CUDA_CC_IS_RDNA4(cc));
         default:
             return false;
     }
Repository: denoland/deno
Pull request: fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_lchown.ts

Towards #24236

Use primordials in `ext/node/polyfills/_fs/_fs_lchown.ts`.

Changes:
- Remove `prefer-primordials` lint ignore directive
- Use `getValidatedPathToString` instead of `getValidatedPath().toString()`
- Use `PromisePrototypeThen` instead of `Promise.prototype.then`

<!--
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: ext/node/polyfills/_fs/_fs_lchown.ts
patch: @@ -1,20 +1,20 @@
 // Copyright 2018-2026 the Deno authors. MIT license.
 
-// TODO(petamoriken): enable prefer-primordials for node polyfills
-// deno-lint-ignore-file prefer-primordials
-
 import {
   type CallbackWithError,
   makeCallback,
 } from "ext:deno_node/_fs/_fs_common.ts";
 import {
-  getValidatedPath,
+  getValidatedPathToString,
   kMaxUserId,
 } from "ext:deno_node/internal/fs/utils.mjs";
 import { validateInteger } from "ext:deno_node/internal/validators.mjs";
 import type { Buffer } from "node:buffer";
 import { promisify } from "ext:deno_node/internal/util.mjs";
 import { op_node_lchown, op_node_lchown_sync } from "ext:core/ops";
+import { primordials } from "ext:core/mod.js";
+
+const { PromisePrototypeThen } = primordials;
 
 /**
  * Asynchronously changes the owner and group
@@ -27,11 +27,12 @@ export function lchown(
   callback: CallbackWithError,
 ) {
   callback = makeCallback(callback);
-  path = getValidatedPath(path).toString();
+  path = getValidatedPathToString(path);
   validateInteger(uid, "uid", -1, kMaxUserId);
   validateInteger(gid, "gid", -1, kMaxUserId);
 
-  op_node_lchown(path, uid, gid).then(
+  PromisePrototypeThen(
+    op_node_lchown(path, uid, gid),
     () => callback(null),
     callback,
   );
@@ -52,7 +53,7 @@ export function lchownSync(
   uid: number,
   gid: number,
 ) {
-  path = getValidatedPath(path).toString();
+  path = getValidatedPathToString(path);
   validateInteger(uid, "uid", -1, kMaxUserId);
   validateInteger(gid, "gid", -1, kMaxUserId);
Repository: huggingface/transformers
Pull request: Don't convert to `safetensors` on the fly if the call is from testing

# What does this PR do?

Don't convert to `safetensors` on the fly if the call is from testing

Changed files:
filename: .circleci/create_circleci_config.py
patch: @@ -29,6 +29,7 @@
     "RUN_PIPELINE_TESTS": False,
     # will be adjust in `CircleCIJob.to_dict`.
     "RUN_FLAKY": True,
+    "DISABLE_SAFETENSORS_CONVERSION": True,
 }
 # Disable the use of {"s": None} as the output is way too long, causing the navigation on CircleCI impractical
 COMMON_PYTEST_OPTIONS = {"max-worker-restart": 0, "vvv": None, "rsfE":None}

filename: conftest.py
patch: @@ -90,6 +90,8 @@ def pytest_configure(config):
     config.addinivalue_line("markers", "torch_compile_test: mark test which tests torch compile functionality")
     config.addinivalue_line("markers", "torch_export_test: mark test which tests torch export functionality")
 
+    os.environ['DISABLE_SAFETENSORS_CONVERSION'] = 'true'
+
 
 def pytest_collection_modifyitems(items):
     for item in items:

filename: src/transformers/modeling_utils.py
patch: @@ -1021,7 +1021,12 @@ def _get_resolved_checkpoint_files(
                         is_sharded = True
                 if not local_files_only and not is_offline_mode():
                     if resolved_archive_file is not None:
-                        if filename in [WEIGHTS_NAME, WEIGHTS_INDEX_NAME]:
+                        # In a CI environment (CircleCI / Github Actions workflow runs) or in a pytest run,
+                        # we set `DISABLE_SAFETENSORS_CONVERSION=true` to prevent the conversion.
+                        if (
+                            filename in [WEIGHTS_NAME, WEIGHTS_INDEX_NAME]
+                            and os.getenv("DISABLE_SAFETENSORS_CONVERSION", None) != "true"
+                        ):
                             # If the PyTorch file was found, check if there is a safetensors file on the repository
                             # If there is no safetensors file on the repositories, start an auto conversion
                             safe_weights_name = SAFE_WEIGHTS_INDEX_NAME if is_sharded else SAFE_WEIGHTS_NAME
Repository: facebook/react
Pull request: [ci] Only run sizebot on pull requests

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

Oops, forgot to port this bit over.

Changed files:
filename: .github/workflows/runtime_build_and_test.yml
patch: @@ -525,7 +525,7 @@ jobs:
 
   # ----- SIZEBOT -----
   download_base_build_for_sizebot:
-    if: ${{ github.event_name == 'pull_request' }}
+    if: ${{ github.event_name == 'pull_request' && github.ref_name != 'main' }}
     name: Download base build for sizebot
     runs-on: ubuntu-latest
     steps:
Repository: ggml-org/llama.cpp
Pull request: webui: Fix context available value in Multi-model Router mode

Close #17723

Changed files:
filename: tools/server/webui/src/lib/stores/chat.svelte.ts
patch: @@ -2,7 +2,11 @@ import { DatabaseService, ChatService } from '$lib/services';
 import { conversationsStore } from '$lib/stores/conversations.svelte';
 import { config } from '$lib/stores/settings.svelte';
 import { contextSize, isRouterMode } from '$lib/stores/server.svelte';
-import { selectedModelName, modelsStore } from '$lib/stores/models.svelte';
+import {
+	selectedModelName,
+	modelsStore,
+	selectedModelContextSize
+} from '$lib/stores/models.svelte';
 import {
 	normalizeModelName,
 	filterByLeafNodeId,
@@ -261,6 +265,13 @@ class ChatStore {
 			return activeState.contextTotal;
 		}
 
+		if (isRouterMode()) {
+			const modelContextSize = selectedModelContextSize();
+			if (modelContextSize && modelContextSize > 0) {
+				return modelContextSize;
+			}
+		}
+
 		const propsContextSize = contextSize();
 		if (propsContextSize && propsContextSize > 0) {
 			return propsContextSize;
@@ -458,6 +469,14 @@ class ChatStore {
 		onError?: (error: Error) => void,
 		modelOverride?: string | null
 	): Promise<void> {
+		// Ensure model props are cached before streaming (for correct n_ctx in processing info)
+		if (isRouterMode()) {
+			const modelName = modelOverride || selectedModelName();
+			if (modelName && !modelsStore.getModelProps(modelName)) {
+				await modelsStore.fetchModelProps(modelName);
+			}
+		}
+
 		let streamedContent = '';
 		let streamedReasoningContent = '';
 		let streamedToolCallContent = '';

filename: tools/server/webui/src/lib/stores/models.svelte.ts
patch: @@ -158,6 +158,22 @@ class ModelsStore {
 		return this.modelPropsCache.get(modelId) ?? null;
 	}
 
+	/**
+	 * Get context size (n_ctx) for a specific model from cached props
+	 */
+	getModelContextSize(modelId: string): number | null {
+		const props = this.modelPropsCache.get(modelId);
+		return props?.default_generation_settings?.n_ctx ?? null;
+	}
+
+	/**
+	 * Get context size for the currently selected model or null if no model is selected
+	 */
+	get selectedModelContextSize(): number | null {
+		if (!this.selectedModelName) return null;
+		return this.getModelContextSize(this.selectedModelName);
+	}
+
 	/**
 	 * Check if props are being fetched for a model
 	 */
@@ -579,3 +595,4 @@ export const loadedModelIds = () => modelsStore.loadedModelIds;
 export const loadingModelIds = () => modelsStore.loadingModelIds;
 export const propsCacheVersion = () => modelsStore.propsCacheVersion;
 export const singleModelName = () => modelsStore.singleModelName;
+export const selectedModelContextSize = () => modelsStore.selectedModelContextSize;