helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: sqlite: enable Percentile extension

Refs: #60618

This enables the SQLite [Percentile extension](https://sqlite.org/percentile.html) added to the amalgamation with the release of SQLite v3.51.0 (#60614) by adding the `SQLITE_ENABLE_PERCENTILE` flag to both the GYP and GN SQLite builds.

The changes were made by following the pattern set by #57621.

This also addresses a minor review comment left unhandled in https://github.com/nodejs/node/pull/57621#discussion_r2014233825.

A new test was added to `test/parallel/test-sqlite.js` to verify that the `percentile()` function is available at runtime. The test is placed immediately after the existing math functions test for two reasons:
1. `SQLITE_ENABLE_PERCENTILE` follows `SQLITE_ENABLE_MATH_FUNCTIONS` alphabetically in the build configuration.
2. `percentile()` is logically related to the mathematical function set.

This change does not enable the mentioned [Carray extension](https://sqlite.org/carray.html) from #60618 and does not include the [`SQLITE_ENABLE_ORDERED_SET_AGGREGATES` flag for enabling the `WITHIN GROUP` syntax](https://sqlite.org/compile.html#:~:text=disabled%20by%20default.-,SQLITE_ENABLE_ORDERED_SET_AGGREGATES,-This%20option%20enables). Those are left for separate discussion and follow-up.


Changed files:
filename: deps/sqlite/sqlite.gyp
patch: @@ -21,6 +21,7 @@
         'SQLITE_ENABLE_FTS5',
         'SQLITE_ENABLE_GEOPOLY',
         'SQLITE_ENABLE_MATH_FUNCTIONS',
+        'SQLITE_ENABLE_PERCENTILE',
         'SQLITE_ENABLE_PREUPDATE_HOOK',
         'SQLITE_ENABLE_RBU',
         'SQLITE_ENABLE_RTREE',

filename: deps/sqlite/unofficial.gni
patch: @@ -15,6 +15,7 @@ template("sqlite_gn_build") {
       "SQLITE_ENABLE_FTS5",
       "SQLITE_ENABLE_GEOPOLY",
       "SQLITE_ENABLE_MATH_FUNCTIONS",
+      "SQLITE_ENABLE_PERCENTILE",
       "SQLITE_ENABLE_PREUPDATE_HOOK",
       "SQLITE_ENABLE_RBU",
       "SQLITE_ENABLE_RTREE",

filename: test/parallel/test-sqlite.js
patch: @@ -204,6 +204,19 @@ suite('SQL APIs enabled at build time', () => {
     );
   });
 
+  test('percentile is enabled', (t) => {
+    const db = new DatabaseSync(':memory:');
+    db.exec(`
+      CREATE TABLE t1 (x INTEGER);
+      INSERT INTO t1 (x) VALUES (1), (2), (3), (4), (5);
+    `);
+
+    t.assert.deepStrictEqual(
+      db.prepare('SELECT percentile(x, 50) AS p50 FROM t1;').get(),
+      { __proto__: null, p50: 3 },
+    );
+  });
+
   test('dbstat is enabled', (t) => {
     const db = new DatabaseSync(nextDb());
     t.after(() => { db.close(); });
@@ -244,7 +257,7 @@ suite('SQL APIs enabled at build time', () => {
     );
   });
 
-  test('fts3 parenthesis', (t) => {
+  test('fts3 parenthesis is enabled', (t) => {
     const db = new DatabaseSync(':memory:');
     db.exec(`
       CREATE VIRTUAL TABLE t1 USING fts3(content TEXT);
Repository: huggingface/transformers
Pull request: check/fix repo. check bot workflow

# What does this PR do?

Try if the permission is correctly set.

Changed files:
filename: .github/workflows/pr-repo-consistency-bot.yml
patch: @@ -258,6 +258,7 @@ jobs:
     if: always()
     permissions:
       pull-requests: write
+      contents: write
     steps:
       - name: Download modified files
         if: needs.run-repo-consistency-checks.outputs.changes_detected == 'true'

filename: .github/workflows/pr-style-bot.yml
patch: @@ -1,19 +0,0 @@
-# To run this bot, comment "@bot /style" on a PR
-name: Style Bot
-
-on:
-  issue_comment:
-    types: [created]
-
-permissions:
-  contents: write
-  pull-requests: write
-
-jobs:
-  style:
-    uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
-    with:
-      python_quality_dependencies: "[quality]"
-      style_command_type: "style_only"
-    secrets:
-      bot_token: ${{ secrets.HF_STYLE_BOT_ACTION }}
Repository: vercel/next.js
Pull request: add GPTBot to matcher for known bots

### What?

Adds GPTBot to matcher for returning true if it is a known bot.  An example UserAgent string for this type of bot is "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.3; +https://openai.com/gptbot)"

### Why?

This is a known bot and so it should be treated as such

### How?

Self explanatory


Changed files:
filename: packages/next/src/server/web/spec-extension/user-agent.ts
patch: @@ -27,7 +27,7 @@ interface UserAgent {
 }
 
 export function isBot(input: string): boolean {
-  return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(
+  return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver|GPTBot/i.test(
     input
   )
 }
Repository: electron/electron
Pull request: ci: fix ai-pr label commenting

#### Description of Change

This PR specifies the PR number to be closed for the ai-pr label since the action used can only auto detect issue numbers.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included
- [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/pull-request-labeled.yml
patch: @@ -60,6 +60,7 @@ jobs:
       with:
         actions: 'create-comment'
         token: ${{ steps.generate-token.outputs.token }}
+        issue-number: ${{ github.event.pull_request.number }}
         body: |
           <!-- ai-pr -->
Repository: vuejs/vue
Pull request: [automated] Patreon backers update (Jan 2020

This is an automated pull request.

Changed files:
filename: BACKERS.md
patch: @@ -359,60 +359,58 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 <!--10 start-->
 - Masahiro Tanaka
 - Shawn Wildermuth
-- Sean Washington
-- Lars Andreas Ness
 - Keisuke Kita
 - Benjamin Listwon
+- Lars Andreas Ness
 - Kirk Lewis
-- Wen-Tien Chang
-- Stephen Michael Hartley
 - Victor Tolbert
+- Stephen Michael Hartley
+- Wen-Tien Chang
 - Luiz
 - Barbara Liau
 - James J. Ye
 - Matsumoto Takamasa
-- Guy Gavergun
 - Matt Jones
+- Guy Gavergun
 - Niannian Modisette
 - Bernhard E. Reiter
-- Pierre Vanhulst
 - Zoran Knezevic
 - Jon Hobbs-Smith
+- Pierre Vanhulst
 - Asaf Yishai
-- Anthony Estebe
 - Haim Yulzari
+- Anthony Estebe
 - Akiho Nagao
-- Jeremy Tan
 - Jim Raden
+- Jeremy Tan
 - IMGNRY
 - Tyler
-- Vivekanandhan Natarajan
-- Guilherme S L de Souza
+- username
 - Mickaël Andrieu
-- Jordan Oroshiba
+- Guilherme S L de Souza
 - Joe Gregory
-- username
+- Jordan Oroshiba
 - Marcos Moura
 - Jessie Hernandez
-- Romain Lienard
-- Christo Crampton
 - Eric
-- Donald Fischer
 - Bohdan Kokotko
-- Jere Sjöroos
-- Oskar Lindgren
-- Alexander Weiher
+- Christo Crampton
+- Romain Lienard
 - David Ang
+- Oskar Lindgren
+- Donald Fischer
 - Wakana Seki
+- Alexander Weiher
+- Jere Sjöroos
 - David Kaplan
 - Jaeyoung Lee
 - Andy
 - Matt Sencenbaugh
-- Juan Bermudez
-- Hannes Kochniß
 - Elon Hung
-- Daniel Mattingley
 - Chris Calo
+- Hannes Kochniß
+- Daniel Mattingley
+- Juan Bermudez
 - Soichiro Isshiki
 - Garion Herman
 - Ed Linklater
@@ -424,16 +422,15 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 - Nick Dandakis
 - Fabien GuySake Ungerer
 - Nathan Mallison
-- Kenneth Crawford
 - Bill Condo
 - Pierre Lebrun
+- Ryan Brewer
 - Martin Bastien
 - Alfonso Herrera
 - Bichinger Software & Consulting
-- Ryan Brewer
+- Riki Fridrich
 - Nicolaas
 - Afif Sohaili
-- Riki Fridrich
 - Tomasz Kleszczewski
 - Diana Bergholz
 - darkbluewalrus
@@ -444,7 +441,6 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 - Ronni Lin
 - DrevanTonder
 - tfox
-- Jan Kuku
 <!--10 end-->
 
 <h2 align="center">Backers via OpenCollective</h2>
Repository: huggingface/transformers
Pull request: Increase timeout when preparing CI

We switched from `requests`, with no timeout by default, to `httpx`, which does have a read timeout by default. This causes some timeout errors in the CI, so this PR increases the timeout length by following the snippet [here](https://github.com/encode/httpx/discussions/3356)

Changed files:
filename: utils/fetch_hub_objects_for_ci.py
patch: @@ -8,6 +8,8 @@
 from transformers.utils.import_utils import is_mistral_common_available
 
 
+httpx._config.DEFAULT_TIMEOUT_CONFIG = httpx.Timeout(timeout=60.0)
+
 URLS_FOR_TESTING_DATA = [
     "http://images.cocodataset.org/val2017/000000000139.jpg",
     "http://images.cocodataset.org/val2017/000000000285.jpg",
Repository: huggingface/transformers
Pull request: check PR bot permission - part 3 (try content attribute)

# What does this PR do?



Changed files:
filename: .github/workflows/pr-style-bot.yml
patch: @@ -6,6 +6,7 @@ on:
     types: [created]
 
 permissions:
+  contents: write
   pull-requests: write
 
 jobs:
Repository: facebook/react
Pull request: Add changelog entry for 19.1.1

Add changelog details matching release notes: https://github.com/facebook/react/releases/tag/v19.1.1


Changed files:
filename: CHANGELOG.md
patch: @@ -1,3 +1,10 @@
+## 19.1.1 (July 28, 2025)
+
+### React
+* Fixed Owner Stacks to work with ES2015 function.name semantics (#33680 by @hoxyq)
+* Move the Fabric completeRoot call from `finalizeContainerChildren` to `replaceContainerChildren` to align how JS API and Fabric interpret `completeRoot` (#30513, #33064 by @kassens and @jackpope)
+* Fix React retaining shadow nodes longer that it needs to (#33161, #33447 by @sammy-SC and @yungsters)
+
 ## 19.1.0 (March 28, 2025)
 
 ### Owner Stack
Repository: vuejs/vue
Pull request: build(deps-dev): bump serialize-javascript from 1.3.0 to 2.1.2

<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?**

- [x] Fix a XSS vulnerability - https://github.com/advisories/GHSA-h9rv-jmmf-4pgx

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [x] No

**The PR fulfills these requirements:**

- [x] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [x] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [ ] New/updated tests are included

**Other information:**
Since I couldn't find the reason for pinning `webpack` at https://github.com/shakir-abdo/vue/pull/112/commits/bb0aab664c52006ff79d0802631cf59e65fbbe0d I just upgrade it. I've done it due to `webpack#terser-webpack-plugin#serialize-javascript` that would keep the vulnerable version in the deps

Changed files:
filename: package.json
patch: @@ -133,7 +133,7 @@
     "rollup-plugin-node-resolve": "^4.0.0",
     "rollup-plugin-replace": "^2.0.0",
     "selenium-server": "^2.53.1",
-    "serialize-javascript": "^1.3.0",
+    "serialize-javascript": "^2.1.2",
     "shelljs": "^0.8.1",
     "terser": "^3.10.2",
     "typescript": "^3.6.4",

filename: packages/vue-server-renderer/package.json
patch: @@ -25,7 +25,7 @@
     "lodash.template": "^4.5.0",
     "lodash.uniq": "^4.5.0",
     "resolve": "^1.2.0",
-    "serialize-javascript": "^1.3.0",
+    "serialize-javascript": "^2.1.2",
     "source-map": "0.5.6"
   },
   "devDependencies": {
Repository: vuejs/vue
Pull request: [automated] Patreon sponsors update

This is an automated pull request.

Changed files:
filename: BACKERS.md
patch: @@ -240,13 +240,6 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
         </a>
       </td>
     </tr><tr></tr>
-    <tr>
-      <td align="center" valign="middle">
-        <a href="https://watchcartoononline.best/" target="_blank">
-          <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/watchcartoononline.png">
-        </a>
-      </td>
-    </tr><tr></tr>
   </tbody>
 </table>
 <!--gold end-->
@@ -273,11 +266,6 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 <table>
   <tbody>
     <tr>
-      <td align="center" valign="middle">
-        <a href="https://dopamine.bg/" target="_blank">
-          <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/dopamine.png">
-        </a>
-      </td>
       <td align="center" valign="middle">
         <a href="https://roadster.com" target="_blank">
           <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/roadster.png">
@@ -315,16 +303,6 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
           <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/earthlink.png">
         </a>
       </td>
-      <td align="center" valign="middle">
-        <a href="https://twitter.com/philipjbasile" target="_blank">
-          <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/philip_john_basile.gif">
-        </a>
-      </td>
-      <td align="center" valign="middle">
-        <a href="https://writersperhour.com/" target="_blank">
-          <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/writers_per_hour.jpg">
-        </a>
-      </td>
     </tr><tr></tr>
   </tbody>
 </table>

filename: README.md
patch: @@ -245,13 +245,6 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
         </a>
       </td>
     </tr><tr></tr>
-    <tr>
-      <td align="center" valign="middle">
-        <a href="https://watchcartoononline.best/" target="_blank">
-          <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/watchcartoononline.png">
-        </a>
-      </td>
-    </tr><tr></tr>
   </tbody>
 </table>
 <!--gold end-->
Repository: ggml-org/llama.cpp
Pull request: ggml-cpu/x86: fix unused changemask warning in repack

## Summary

Fix an `-Wunused-but-set-variable` warning in `ggml/src/ggml-cpu/arch/x86/repack.cpp`.

`changemask` was declared unconditionally in `gemv_q4_b32_8x8_q8_0_lut_avx`, but it is only used in the `block_q4_0x8` / `block_iq4_nlx8` path. For the `block_mxfp4x8` template instantiation, that branch is discarded by `if constexpr`, which leaves `changemask` unused and triggers the warning.

This change moves the declaration into the branch where it is used.

## Testing

- Built locally with CMake and verified the warning no longer appears.

Changed files:
filename: ggml/src/ggml-cpu/arch/x86/repack.cpp
patch: @@ -531,7 +531,6 @@ static void gemv_q4_b32_8x8_q8_0_lut_avx(int n, float * GGML_RESTRICT s, size_t
 
     UNUSED(bs);
 
-    __m128i changemask = _mm_set_epi8(15, 14, 7, 6, 13, 12, 5, 4, 11, 10, 3, 2, 9, 8, 1, 0);
     __m256i finalpermutemask = _mm256_set_epi32(7, 5, 3, 1, 6, 4, 2, 0);
 
     // Permute mask used for easier vector processing at later stages
@@ -580,6 +579,7 @@ static void gemv_q4_b32_8x8_q8_0_lut_avx(int n, float * GGML_RESTRICT s, size_t
                 if constexpr (
                         std::is_same_v<block_tx8, block_q4_0x8> ||
                         std::is_same_v<block_tx8, block_iq4_nlx8>) {
+                    const __m128i changemask = _mm_set_epi8(15, 14, 7, 6, 13, 12, 5, 4, 11, 10, 3, 2, 9, 8, 1, 0);
                     col_scale_f32 = GGML_F32Cx8_REARRANGE_LOAD(b_ptr[b].d, changemask);
                 } else if constexpr (std::is_same_v<block_tx8, block_mxfp4x8>) {
                     // Load 8 E8M0 exponents and convert to float via LUT
Repository: vuejs/vue
Pull request: [automated] Patreon backers update (Dec 2019

This is an automated pull request.

Changed files:
filename: BACKERS.md
patch: @@ -368,7 +368,6 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 <!--50 start-->
 - Wasim Khamlichi
 - errorrik
-- Alex Balashov
 - Konstantin Levinski
 - Blaise Laflamme
 - Sean Ferguson
@@ -383,75 +382,71 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 - Masahiro Tanaka
 - Shawn Wildermuth
 - Sean Washington
+- Keisuke Kita
 - Lars Andreas Ness
 - Benjamin Listwon
-- Keisuke Kita
 - Kirk Lewis
 - Victor Tolbert
 - Wen-Tien Chang
 - Stephen Michael Hartley
-- Phan An
 - Luiz
-- James J. Ye
 - Barbara Liau
+- James J. Ye
 - Matsumoto Takamasa
-- Matt Jones
-- Niannian Modisette
 - Guy Gavergun
+- Niannian Modisette
+- Matt Jones
 - Bernhard E. Reiter
 - Zoran Knezevic
-- Pierre Vanhulst
 - Jon Hobbs-Smith
-- Akiho Nagao
-- Haim Yulzari
+- Pierre Vanhulst
 - Anthony Estebe
 - Asaf Yishai
+- Haim Yulzari
+- Akiho Nagao
 - Jim Raden
 - Jeremy Tan
 - IMGNRY
 - Tyler
-- Mickaël Andrieu
-- Vivekanandhan Natarajan
 - Guilherme S L de Souza
-- Joe Gregory
+- Vivekanandhan Natarajan
+- Mickaël Andrieu
+- username
 - Jordan Oroshiba
+- Joe Gregory
 - Marcos Moura
 - Jessie Hernandez
-- username
-- Ivan Sieder
 - Eric
-- Romain Lienard
-- Bohdan Kokotko
 - Christo Crampton
-- David Ang
-- Donald Fischer
+- Bohdan Kokotko
+- Romain Lienard
+- Oskar Lindgren
 - Jere Sjöroos
+- David Ang
 - Wakana Seki
 - Alexander Weiher
-- Philip John Basile
-- Oskar Lindgren
+- Donald Fischer
 - Jaeyoung Lee
 - David Kaplan
-- Domenico Gaudioso
 - Andy
 - Matt Sencenbaugh
 - Juan Bermudez
-- Chris Calo
-- Elon Hung
 - Hannes Kochniß
+- Daniel Mattingley
+- Elon Hung
+- Chris Calo
 - Soichiro Isshiki
-- Garion Herman
 - Ed Linklater
-- Andrew Willis
+- Garion Herman
 - Yusuke Kawabata
 - Princeyesuraj Edward
-- Peter Matkovsky
 - Nick Dandakis
 - 龙腾道
+- Peter Matkovsky
 - Fabien GuySake Ungerer
-- Nathan Mallison
 - Kenneth Crawford
 - Bill Condo
+- Nathan Mallison
 - Pierre Lebrun
 - Ryan Brewer
 - Martin Bastien
@@ -460,12 +455,14 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
 - Riki Fridrich
 - Nicolaas
 - Afif Sohaili
-- darkbluewalrus
-- Diana Bergholz
 - Tomasz Kleszczewski
-- Allan McKernan
+- Diana Bergholz
+- darkbluewalrus
 - Parham
+- Allan McKernan
 - 琚致远
+- Roy Segall
+- Ronni Lin
 <!--10 end-->
 
 <h2 align="center">Backers via OpenCollective</h2>
Repository: electron/electron
Pull request: ci: add workflow for commenting with new 'ai-pr' label

#### Description of Change

This PR adds auto-commenting and closing functionality for the new `ai-pr` label

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included

#### Release Notes

Notes: none


Changed files:
filename: .github/workflows/pull-request-labeled.yml
patch: @@ -44,3 +44,34 @@ jobs:
           project-number: 94
           field: Status
           field-value: ✅ Reviewed
+  pull-request-labeled-ai-pr:
+    name: ai-pr label added
+    if: github.event.label.name == 'ai-pr'
+    runs-on: ubuntu-latest
+    permissions: {}
+    steps:
+    - name: Generate GitHub App token
+      uses: electron/github-app-auth-action@e14e47722ed120360649d0789e25b9baece12725 # v2.0.0
+      id: generate-token
+      with:
+        creds: ${{ secrets.ISSUE_TRIAGE_GH_APP_CREDS }}
+    - name: Create comment
+      uses: actions-cool/issues-helper@e2ff99831a4f13625d35064e2b3dfe65c07a0396 # v3.7.5
+      with:
+        actions: 'create-comment'
+        token: ${{ steps.generate-token.outputs.token }}
+        body: |
+          <!-- ai-pr -->
+
+          *AI PR Detected*
+
+          Hello @${{ github.event.pull_request.user.login }}. Due to the high amount of AI spam PRs we receive, if a PR is detected to be majority AI-generated without disclosure and untested, we will automatically close the PR.
+
+          We welcome the use of AI tools, as long as the PR meets our quality standards and has clearly been built and tested. If you believe your PR was closed in error, we welcome you to resubmit. However, please read our [CONTRIBUTING.md](http://contributing.md/) carefully before reopening. Thanks for your contribution.
+    - name: Close the pull request
+      env:
+        GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
+        GH_REPO: electron/electron
+        PR_NUMBER: ${{ github.event.pull_request.number }}
+      run: |
+        gh pr close "$PR_NUMBER"
Repository: ollama/ollama
Pull request: Narrow set of paths we load GGML from

Users may have other incompatible GGML installs on their systems. This will prevent us from trying to load them from the path.

Changed files:
filename: llm/server.go
patch: @@ -329,11 +329,13 @@ func NewLlamaServer(gpus discover.GpuInfoList, modelPath string, f *ggml.GGML, a
 			libraryPaths = append(libraryPaths, filepath.SplitList(libraryPath)...)
 		}
 
+		ggmlPaths := []string{discover.LibOllamaPath}
 		if len(compatible) > 0 {
 			c := compatible[0]
 			if libpath, ok := libs[c]; ok {
 				slog.Debug("adding gpu library", "path", libpath)
 				libraryPaths = append(libraryPaths, libpath)
+				ggmlPaths = append(ggmlPaths, libpath)
 			}
 		}
 
@@ -369,6 +371,8 @@ func NewLlamaServer(gpus discover.GpuInfoList, modelPath string, f *ggml.GGML, a
 		s.cmd.Stderr = s.status
 		s.cmd.SysProcAttr = LlamaServerSysProcAttr
 
+		s.cmd.Env = append(s.cmd.Env, "OLLAMA_LIBRARY_PATH="+strings.Join(ggmlPaths, string(filepath.ListSeparator)))
+
 		envWorkarounds := [][2]string{}
 		for _, gpu := range gpus {
 			envWorkarounds = append(envWorkarounds, gpu.EnvWorkarounds...)
@@ -406,7 +410,8 @@ func NewLlamaServer(gpus discover.GpuInfoList, modelPath string, f *ggml.GGML, a
 		if envconfig.Debug() {
 			filteredEnv := []string{}
 			for _, ev := range s.cmd.Env {
-				if strings.HasPrefix(ev, "CUDA_") ||
+				if strings.HasPrefix(ev, "OLLAMA_") ||
+					strings.HasPrefix(ev, "CUDA_") ||
 					strings.HasPrefix(ev, "ROCR_") ||
 					strings.HasPrefix(ev, "ROCM_") ||
 					strings.HasPrefix(ev, "HIP_") ||

filename: ml/backend/ggml/ggml/src/ggml.go
patch: @@ -57,26 +57,20 @@ var OnceLoad = sync.OnceFunc(func() {
 		exe = "."
 	}
 
-	// PATH, LD_LIBRARY_PATH, and DYLD_LIBRARY_PATH are often
-	// set by the parent process, however, use a default value
-	// if the environment variable is not set.
-	var name, value string
+	var value string
 	switch runtime.GOOS {
 	case "darwin":
-		// On macOS, DYLD_LIBRARY_PATH is often not set, so
-		// we use the directory of the executable as the default.
-		name = "DYLD_LIBRARY_PATH"
 		value = filepath.Dir(exe)
 	case "windows":
-		name = "PATH"
 		value = filepath.Join(filepath.Dir(exe), "lib", "ollama")
 	default:
-		name = "LD_LIBRARY_PATH"
 		value = filepath.Join(filepath.Dir(exe), "..", "lib", "ollama")
 	}
 
-	paths, ok := os.LookupEnv(name)
+	// Avoid potentially loading incompatible GGML libraries
+	paths, ok := os.LookupEnv("OLLAMA_LIBRARY_PATH")
 	if !ok {
+		slog.Debug("OLLAMA_LIBRARY_PATH not set, falling back to default", "search", value)
 		paths = value
 	}