helloadhavan/github_issues huggingface dataset:
Repository: huggingface/transformers
Pull request: Fix tp

# What does this PR do?
There was something that slipped up

Changed files:
filename: src/transformers/core_model_loading.py
patch: @@ -745,7 +745,7 @@ def convert_and_load_state_dict_in_model(
                         mapping.distributed_operation = tp_layer(
                             device_mesh=device_mesh, rank=device_map[""].index, empty_param=empty_param.clone()
                         )
-                    shard_index = len(mapping.collected_tensors)
+                    shard_index = len(mapping.collected_tensors.get(original_key, []))
                     future = spawn_tp_materialize(
                         thread_pool,
                         tensor,
Repository: vercel/next.js
Pull request: Fix log log alignment in spinners

Follow-up to https://github.com/vercel/next.js/pull/86139

Forgot to check other usages of these prefixes which added their own padding.

Before
```
✓ Compiled successfully in 2.3s
   Running TypeScript ...
   Collecting page data using 10 workers ...
   Generating static pages using 10 workers (0/2) ...
✓ Generating static pages using 10 workers (2/2) in 227.0ms
   Finalizing page optimization ...
   Collecting build traces ..
```

after
```
✓ Compiled successfully in 2.3s
  Running TypeScript ...
  Collecting page data using 10 workers ...
  Generating static pages using 10 workers (0/2) ...
✓ Generating static pages using 10 workers (2/2) in 227.0ms
  Finalizing page optimization ...
  Collecting build traces ..
```

Changed files:
filename: packages/next/src/build/spinner.ts
patch: @@ -13,7 +13,7 @@ export default function createSpinner(
 ) {
   let spinner: undefined | (ora.Ora & { setText: (text: string) => void })
 
-  let prefixText = ` ${Log.prefixes.info} ${text} `
+  let prefixText = `${Log.prefixes.info} ${text} `
 
   if (process.stdout.isTTY) {
     spinner = ora({
@@ -60,7 +60,7 @@ export default function createSpinner(
     }
     spinner.setText = (newText) => {
       text = newText
-      prefixText = ` ${Log.prefixes.info} ${newText} `
+      prefixText = `${Log.prefixes.info} ${newText} `
       spinner!.prefixText = prefixText
       return spinner!
     }
@@ -71,7 +71,7 @@ export default function createSpinner(
     }
     spinner.stopAndPersist = () => {
       // Add \r at beginning to reset the current line of loading status text
-      const suffixText = `\r ${Log.prefixes.event} ${text} `
+      const suffixText = `\r${Log.prefixes.event} ${text} `
       if (spinner) {
         spinner.text = suffixText
       } else {

filename: test/e2e/app-dir/cache-components-errors/cache-components-console-patch.test.ts
patch: @@ -70,11 +70,11 @@ describe('Cache Components Errors', () => {
             `)
           } else {
             expect(output).toMatchInlineSnapshot(`
-                        "[<timestamp>] This is a console log from a server component page
-                        [<timestamp>] This is a console log from a server component page
-                        [<timestamp>]    Collecting build traces ...
-                        [<timestamp>]"
-                      `)
+             "[<timestamp>] This is a console log from a server component page
+             [<timestamp>] This is a console log from a server component page
+             [<timestamp>]   Collecting build traces ...
+             [<timestamp>]"
+            `)
           }
         })
       }
Repository: ggml-org/llama.cpp
Pull request: ngram-mod : fix build

fix #19215

Changed files:
filename: common/ngram-mod.h
patch: @@ -2,6 +2,7 @@
 
 #include <cstdint>
 #include <vector>
+#include <cstddef>
 
 //
 // common_ngram_mod
Repository: ollama/ollama
Pull request: Prevent loading too large models on windows

We already blocked linux memory exhaustion, but should apply the same check for Windows as well

We can't apply the same logic to MacOS, as it uses fully dynamic swap space and has no concept of free swap space.

Fixes #5882 
Fixes #4955
Fixes #5958

Changed files:
filename: llm/server.go
patch: @@ -125,8 +125,9 @@ func NewLlamaServer(gpus gpu.GpuInfoList, model string, ggml *GGML, adapters, pr
 		}
 	}
 
-	// On linux, over-allocating CPU memory will almost always result in an error
-	if runtime.GOOS == "linux" {
+	// On linux and windows, over-allocating CPU memory will almost always result in an error
+	// Darwin has fully dynamic swap so has no direct concept of free swap space
+	if runtime.GOOS != "darwin" {
 		systemMemoryRequired := estimate.TotalSize - estimate.VRAMSize
 		available := systemFreeMemory + systemSwapFreeMemory
 		if systemMemoryRequired > available {
Repository: electron/electron
Pull request: build: run on macOS 15

#### Description of Change

Refs https://github.com/electron/electron/pull/48362 - https://github.com/electron/electron/pull/48362#pullrequestreview-3324816663

We need to bump the runner version to fix [find_sdk.py](https://source.chromium.org/chromium/chromium/src/+/main:build/mac/find_sdk.py;l=84-86;drc=ef42bc9af8f31c0c726c720edcd609318def20b7) failing to find a system SDK with a minimum of v15.

#### 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: none

Changed files:
filename: .github/workflows/macos-publish.yml
patch: @@ -47,7 +47,7 @@ jobs:
     needs: checkout-macos
     with:
       environment: production-release
-      build-runs-on: macos-14-xlarge
+      build-runs-on: macos-15-xlarge
       target-platform: macos
       target-arch: x64
       target-variant: darwin
@@ -62,7 +62,7 @@ jobs:
     needs: checkout-macos
     with:
       environment: production-release
-      build-runs-on: macos-14-xlarge
+      build-runs-on: macos-15-xlarge
       target-platform: macos
       target-arch: x64
       target-variant: mas
@@ -77,7 +77,7 @@ jobs:
     needs: checkout-macos
     with:
       environment: production-release
-      build-runs-on: macos-14-xlarge
+      build-runs-on: macos-15-xlarge
       target-platform: macos
       target-arch: arm64
       target-variant: darwin
@@ -92,7 +92,7 @@ jobs:
     needs: checkout-macos
     with:
       environment: production-release
-      build-runs-on: macos-14-xlarge
+      build-runs-on: macos-15-xlarge
       target-platform: macos
       target-arch: arm64
       target-variant: mas
Repository: facebook/react
Pull request: [ci] Automatically label PRs from core team


Adds a new `MAINTAINERS` file which contains github usernames of core team members. This file serves as documentation for core team membership and is also used to automatically label PRs from core.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32100).
* #32101
* __->__ #32100

Changed files:
filename: .github/workflows/shared_core_label.yml
patch: @@ -0,0 +1,41 @@
+name: (Shared) Core Label
+
+on:
+  pull_request_target:
+
+env:
+  TZ: /usr/share/zoneinfo/America/Los_Angeles
+  # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
+  SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
+
+jobs:
+  core_label:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - name: Check if actor is maintainer
+        id: check_maintainer
+        uses: actions/github-script@v7
+        with:
+          script: |
+            const fs = require('fs');
+            const actor = '${{ github.actor }}';
+            const data = await fs.readFileSync('./MAINTAINERS', { encoding: 'utf8' });
+            const maintainers = new Set(data.split('\n'));
+            if (maintainers.has(actor)) {
+              console.log(`🟢 ${actor} is a maintainer`);
+              return true;
+            }
+            console.log(`🔴 ${actor} is NOT a maintainer`);
+            return null;
+      - name: Label PR as React Core Team
+        if: ${{ steps.check_maintainer.outputs.result }}
+        uses: actions/github-script@v7
+        with:
+          script: |
+            github.rest.issues.addLabels({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              issue_number: ${{ github.event.number }},
+              labels: ['React Core Team']
+            });

filename: MAINTAINERS
patch: @@ -0,0 +1,23 @@
+acdlite
+bvaughn
+eps1lon
+gaearon
+gnoff
+gsathya
+hoxyq
+jackpope
+jbonta
+josephsavona
+kassens
+lunaleaps
+mattcarrollcode
+mofeiZ
+noahlemen
+poteto
+rickhanlonii
+sebmarkbage
+sethwebster
+sophiebits
+TheSavior
+tyao1
+yuzhi
Repository: vuejs/vue
Pull request: fix object dot notation bug (fix #4185)

fix #4185 


Changed files:
filename: src/compiler/helpers.js
patch: @@ -116,7 +116,7 @@ export function parseModel (val: string): Object {
   len = str.length
   index = expressionPos = expressionEndPos = 0
 
-  if (val.indexOf('[') < 0) {
+  if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {
     return {
       exp: val,
       idx: null

filename: test/unit/features/directives/model-parse.spec.js
patch: @@ -1,12 +1,24 @@
 import { parseModel } from 'compiler/helpers'
 
 describe('model expression parser', () => {
+  it('parse object dot notation', () => {
+    const res = parseModel('a.b.c')
+    expect(res.exp).toBe('a.b.c')
+    expect(res.idx).toBe(null)
+  })
+
   it('parse string in brackets', () => {
     const res = parseModel('a["b"][c]')
     expect(res.exp).toBe('a["b"]')
     expect(res.idx).toBe('c')
   })
 
+  it('parse brackets with object dot notation', () => {
+    const res = parseModel('a["b"][c].xxx')
+    expect(res.exp).toBe('a["b"][c].xxx')
+    expect(res.idx).toBe(null)
+  })
+
   it('parse nested brackets', () => {
     const res = parseModel('a[i[c]]')
     expect(res.exp).toBe('a')
Repository: vuejs/vue
Pull request: Small performance improvement in watcher.js

Thank you for great library!

This PR includes only small improvements.

Changed files:
filename: src/compiler/codegen/index.js
patch: @@ -221,9 +221,9 @@ function genText (text: ASTText | ASTExpression): string {
 function genSlot (el: ASTElement): string {
   const slotName = el.slotName || '"default"'
   const children = genChildren(el)
-  return children
-    ? `_t(${slotName},${children})`
-    : `_t(${slotName})`
+  return `_t(${slotName}${
+    children ? `,${children}` : ''
+  })`
 }
 
 // componentName is el.component, take it as argument to shun flow's pessimistic refinement

filename: src/core/observer/watcher.js
patch: @@ -230,30 +230,30 @@ export default class Watcher {
  * is collected as a "deep" dependency.
  */
 const seenObjects = new Set()
-function traverse (val: any, seen?: Set) {
+function traverse (val: any) {
+  seenObjects.clear()
+  _traverse(val, seenObjects)
+}
+
+function _traverse (val: any, seen: Set) {
   let i, keys
-  if (!seen) {
-    seen = seenObjects
-    seen.clear()
-  }
   const isA = Array.isArray(val)
-  const isO = isObject(val)
-  if ((isA || isO) && Object.isExtensible(val)) {
-    if (val.__ob__) {
-      const depId = val.__ob__.dep.id
-      if (seen.has(depId)) {
-        return
-      } else {
-        seen.add(depId)
-      }
-    }
-    if (isA) {
-      i = val.length
-      while (i--) traverse(val[i], seen)
-    } else if (isO) {
-      keys = Object.keys(val)
-      i = keys.length
-      while (i--) traverse(val[keys[i]], seen)
+  if ((!isA && !isObject(val)) || !Object.isExtensible(val)) {
+    return
+  }
+  if (val.__ob__) {
+    const depId = val.__ob__.dep.id
+    if (seen.has(depId)) {
+      return
     }
+    seen.add(depId)
+  }
+  if (isA) {
+    i = val.length
+    while (i--) _traverse(val[i], seen)
+  } else {
+    keys = Object.keys(val)
+    i = keys.length
+    while (i--) _traverse(val[keys[i]], seen)
   }
 }
Repository: vercel/next.js
Pull request: create-next-app: Add `ignoreScripts` for `unrs-resolver` on bun

`unrs-resolver`'s postinstall script is only needed for legacy versions of npm, so it's safe to ignore: https://github.com/unrs/unrs-resolver/issues/193#issuecomment-3295510146

Without this, bun blocks the postinstall script (okay) and logs a warning (not ideal, confusing to end users). This prevents it from running and suppresses the warning. This matches what we now do in `pnpm` (https://github.com/vercel/next.js/pull/83168) but for `bun`.

Context:
- https://vercel.slack.com/archives/C03KAR5DCKC/p1763570835510729
- https://vercel.slack.com/archives/C06DNAH5LSG/p1763580178004169

## Before

![CleanShot 2025-11-19 at 08.46.56@2x.png](https://app.graphite.com/user-attachments/assets/4979ca3c-0a05-4c05-831a-93c358832ed4.png)

## After

![Screenshot 2025-11-19 at 1.02.01 PM.png](https://app.graphite.com/user-attachments/assets/f99b419b-a30e-449a-9118-77621b15fcd9.png)

Changed files:
filename: packages/create-next-app/templates/index.ts
patch: @@ -340,6 +340,19 @@ export const installTemplate = async ({
     );
   }
 
+  if (packageManager === "bun") {
+    // Equivalent to pnpm's `ignoredBuiltDependencies`, added in bun 1.3.2.
+    // - https://bun.com/blog/bun-v1.3.2#faster-bun-install
+    // - https://github.com/oven-sh/bun/pull/24283
+    // Bun ignores `sharp` by default, but does not ignore `unrs-resolver`
+    // unless configured.
+    packageJson.ignoreScripts = ["sharp", "unrs-resolver"];
+    // The script must be in *both* `ignoreScripts` and `trustedDependencies` to
+    // suppress the warning. This could change in future versions of Bun.
+    // https://vercel.slack.com/archives/C06DNAH5LSG/p1763582930218709?thread_ts=1763580178.004169&cid=C06DNAH5LSG
+    packageJson.trustedDependencies = ["sharp", "unrs-resolver"];
+  }
+
   await fs.writeFile(
     path.join(root, "package.json"),
     JSON.stringify(packageJson, null, 2) + os.EOL,
Repository: facebook/react
Pull request: [rcr] Always target node


Alternative to #32071. As a follow up to #31993, the `platform` target was incorrectly being set to `browser` since it was the default argument for the build script. This corrects it to `node` and `cjs` which I think should resolve node 20 issues.


Changed files:
filename: compiler/packages/react-compiler-runtime/scripts/build.js
patch: @@ -13,11 +13,6 @@ const path = require('path');
 const {Generator} = require('npm-dts');
 
 const argv = yargs(process.argv.slice(2))
-  .options('p', {
-    alias: 'platform',
-    default: 'browser',
-    choices: ['browser', 'node'],
-  })
   .options('w', {
     alias: 'watch',
     default: false,
@@ -31,7 +26,7 @@ const config = {
   bundle: true,
   external: ['react'],
   format: 'cjs',
-  platform: argv.p,
+  platform: 'node',
   target: 'es6',
   banner: {
     js: `/**

filename: compiler/packages/snap/package.json
patch: @@ -10,7 +10,7 @@
   ],
   "scripts": {
     "postinstall": "./scripts/link-react-compiler-runtime.sh && perl -p -i -e 's/react\\.element/react.transitional.element/' ../../node_modules/fbt/lib/FbtReactUtil.js && perl -p -i -e 's/didWarnAboutUsingAct = false;/didWarnAboutUsingAct = true;/' ../../node_modules/react-dom/cjs/react-dom-test-utils.development.js",
-    "build": "rimraf dist && concurrently -n snap,runtime \"tsc --build\" \"yarn --silent workspace react-compiler-runtime build -p node\"",
+    "build": "rimraf dist && concurrently -n snap,runtime \"tsc --build\" \"yarn --silent workspace react-compiler-runtime build\"",
     "test": "echo 'no tests'",
     "prettier": "prettier --write 'src/**/*.ts'"
   },
Repository: vuejs/vue
Pull request: Update ssr class render (fix #4143)

fix #4143

Changed files:
filename: src/platforms/web/server/modules/class.js
patch: @@ -3,7 +3,8 @@
 import { genClassForVnode } from 'web/util/index'
 
 export default function renderClass (node: VNodeWithData): ?string {
-  if (node.data.class || node.data.staticClass) {
-    return ` class="${genClassForVnode(node)}"`
+  const classList = genClassForVnode(node)
+  if (classList) {
+    return ` class="${classList}"`
   }
 }

filename: test/ssr/ssr-string.spec.js
patch: @@ -57,6 +57,42 @@ describe('SSR: renderToString', () => {
     })
   })
 
+  it('custome component class', done => {
+    renderVmWithOptions({
+      template: '<div><cmp class="cmp"></cmp></div>',
+      components: {
+        cmp: {
+          render: h => h('div', 'test')
+        }
+      }
+    }, result => {
+      expect(result).toContain('<div server-rendered="true"><div class="cmp">test</div></div>')
+      done()
+    })
+  })
+
+  it('nested component class', done => {
+    renderVmWithOptions({
+      template: '<cmp class="outer" :class="cls"></cmp>',
+      data: { cls: { 'success': 1 }},
+      components: {
+        cmp: {
+          render: h => h('div', [h('nested', { staticClass: 'nested', 'class': { 'error': 1 }})]),
+          components: {
+            nested: {
+              render: h => h('div', { staticClass: 'inner' }, 'test')
+            }
+          }
+        }
+      }
+    }, result => {
+      expect(result).toContain('<div server-rendered="true" class="outer success">' +
+          '<div class="inner nested error">test</div>' +
+        '</div>')
+      done()
+    })
+  })
+
   it('dynamic style', done => {
     renderVmWithOptions({
       template: '<div style="background-color:black" :style="{ fontSize: fontSize + \'px\', color: color }"></div>',
Repository: ggml-org/llama.cpp
Pull request: sync : ggml


Changed files:
filename: scripts/sync-ggml.last
patch: @@ -1 +1 @@
-ebc3a0f4a56be1c9424a89fbec09962ac34fde85
+a8db410a252c8c8f2d120c6f2e7133ebe032f35d
Repository: nodejs/node
Pull request: tools: fix failing release-proposal linter for LTS transitions

In https://github.com/nodejs/node/pull/60414, the release-proposal linter was failing because it was expecting to see the commits from the previous release.
<!--
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: tools/actions/lint-release-proposal-commit-list.mjs
patch: @@ -26,9 +26,13 @@ if (commitListingStart === -1) {
   commitList = changelog.replace(/(^.+\n### Semver-Major|\n### Semver-(Minor|Patch)) Commits\n/gs, '')
     .replaceAll('**(SEMVER-MAJOR)** ', '');
 } else {
-  const commitListingEnd = changelog.indexOf('\n\n<a', commitListingStart);
-  assert.notStrictEqual(commitListingEnd, -1);
-  commitList = changelog.slice(commitListingStart, commitListingEnd + 1);
+  // We can't assume the Commits section is the one for this release in case of
+  // a release to transition to LTS (i.e. with no commits).
+  const releaseStart = /\n<a id="(\d+\.\d+\.\d+)"><\/a>\n\n## \d+-\d+-\d+, Version \1/.exec(changelog);
+  assert.ok(releaseStart, 'Could not determine the start of the release section');
+  const releaseEnd = changelog.indexOf('\n\n<a', releaseStart.index);
+  assert.notStrictEqual(releaseEnd, -1, 'Could not determine the end of the release section');
+  commitList = changelog.slice(commitListingStart, releaseEnd + 1);
 }
 
 // Normalize for consistent comparison
Repository: ollama/ollama
Pull request: add  integration obook-summary

an app which automatically splits e-books by section and chunks those sections one at a time. saved to csv, then you can also ask the same question of the entire book, one chunk at a time, in addition to the bulleted notes core-functionality.

Changed files:
filename: README.md
patch: @@ -325,6 +325,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [tlm](https://github.com/yusufcanb/tlm)
 - [podman-ollama](https://github.com/ericcurtin/podman-ollama)
 - [gollama](https://github.com/sammcj/gollama)
+- [Ollama eBook Summary](https://github.com/cognitivetech/ollama-ebook-summary/)
 
 ### Database
Repository: ggml-org/llama.cpp
Pull request: Correctly fetch q8_1 quantize pipeline in test as needed by 8a3519b

#17108 removed the `pipeline_quantize_q8_1` from the vk_device struct. Based on other changes in that PR, I believe this is the correct way to retrieve the pipeline now.

This requires building with the `GGML_VULKAN_RUN_TESTS` option to expose the previous build break.

This PR was not prepared with the help of AI, but still please don't ask me too many hard questions or else the cracks will appear :smiling_face_with_tear:.

Changed files:
filename: ggml/src/ggml-vulkan/ggml-vulkan.cpp
patch: @@ -11956,7 +11956,8 @@ static void ggml_vk_test_dequant_matmul(ggml_backend_vk_context * ctx, size_t m,
         }
     }
     if (mmq) {
-        ggml_pipeline_request_descriptor_sets(ctx, ctx->device->pipeline_quantize_q8_1, num_it);
+        vk_pipeline pipeline_quantize_q8_1 = ggml_vk_get_quantize_pipeline(ctx, GGML_TYPE_Q8_1);
+        ggml_pipeline_request_descriptor_sets(ctx, pipeline_quantize_q8_1, num_it);
     }
 
     ggml_pipeline_allocate_descriptor_sets(ctx);
Repository: ollama/ollama
Pull request: server/download.go: Fix a typo in log


Changed files:
filename: server/download.go
patch: @@ -233,7 +233,7 @@ func (b *blobDownload) run(ctx context.Context, requestURL *url.URL, opts *regis
 
 			newOpts.CheckRedirect = func(req *http.Request, via []*http.Request) error {
 				if len(via) > 10 {
-					return errors.New("maxium redirects exceeded (10) for directURL")
+					return errors.New("maximum redirects exceeded (10) for directURL")
 				}
 
 				// if the hostname is the same, allow the redirect