helloadhavan/github_issues huggingface dataset:
Repository: ggml-org/llama.cpp
Pull request: Install rpc-server when GGML_RPC is ON.

This change makes it possible to install the experimental rpc-server using the Nix flake, using the following overlay:

```nix
final: prev:

{
  llamaPackages.llama-cpp = prev.llamaPackages.llama-cpp.override { useRpc = true; };
}
```

Without this change when enabled, the rpc-server is compiled, but never installed in the target directory.

Changed files:
filename: .devops/nix/package.nix
patch: @@ -34,6 +34,7 @@
   rocmGpuTargets ? builtins.concatStringsSep ";" rocmPackages.clr.gpuTargets,
   enableCurl ? true,
   useVulkan ? false,
+  useRpc ? false,
   llamaVersion ? "0.0.0", # Arbitrary version, substituted by the flake
 
   # It's necessary to consistently use backendStdenv when building with CUDA support,
@@ -175,6 +176,7 @@ effectiveStdenv.mkDerivation (finalAttrs: {
       (cmakeBool "GGML_METAL" useMetalKit)
       (cmakeBool "GGML_VULKAN" useVulkan)
       (cmakeBool "GGML_STATIC" enableStatic)
+      (cmakeBool "GGML_RPC" useRpc)
     ]
     ++ optionals useCuda [
       (

filename: tools/rpc/CMakeLists.txt
patch: @@ -2,3 +2,7 @@ set(TARGET rpc-server)
 add_executable(${TARGET} rpc-server.cpp)
 target_link_libraries(${TARGET} PRIVATE ggml)
 target_compile_features(${TARGET} PRIVATE cxx_std_17)
+
+if(LLAMA_TOOLS_INSTALL)
+    install(TARGETS ${TARGET} RUNTIME)
+endif()
Repository: electron/electron
Pull request: fix: stop menu minimization if set false

Backport of #46279

See that PR for details.


Notes: fix Minimize menu button to follow set window minimizability on Windows

Changed files:
filename: lib/browser/api/menu-item-roles.ts
patch: @@ -78,7 +78,9 @@ export const roleList: Record<RoleId, Role> = {
   minimize: {
     label: 'Minimize',
     accelerator: 'CommandOrControl+M',
-    windowMethod: w => w.minimize()
+    windowMethod: w => {
+      if (w.minimizable) w.minimize();
+    }
   },
   paste: {
     label: 'Paste',

filename: spec/api-menu-item-spec.ts
patch: @@ -2,7 +2,7 @@ import { BrowserWindow, app, Menu, MenuItem, MenuItemConstructorOptions } from '
 
 import { expect } from 'chai';
 
-import { ifdescribe } from './lib/spec-helpers';
+import { ifit, ifdescribe } from './lib/spec-helpers';
 import { closeAllWindows } from './lib/window-helpers';
 import { roleList, execute } from '../lib/browser/api/menu-item-roles';
 
@@ -205,6 +205,22 @@ describe('MenuItems', () => {
       const canExecute = execute(item.role as any, win, win.webContents);
       expect(canExecute).to.be.true('can execute');
     });
+
+    ifit(process.platform === 'win32')('does not execute minimize role when minimizable false', () => {
+      const win = new BrowserWindow({ minimizable: false });
+      const menu = Menu.buildFromTemplate([{
+        label: 'text',
+        role: 'minimize'
+      }]);
+
+      Menu.setApplicationMenu(menu);
+      menu._executeCommand({}, menu.items[0].commandId);
+      expect(win.isMinimized()).to.equal(false);
+
+      win.setMinimizable(true);
+      menu._executeCommand({}, menu.items[0].commandId);
+      expect(win.isMinimized()).to.equal(true);
+    });
   });
 
   describe('MenuItem command id', () => {
Repository: facebook/react
Pull request: fix[react-devtools/ci]: fix configurations for e2e testing

This should fix failing DevTools e2e tests on `main`.

With these changes, running tests locally successfully passes all cases.

Changed files:
filename: package.json
patch: @@ -109,7 +109,7 @@
   },
   "scripts": {
     "build": "node ./scripts/rollup/build-all-release-channels.js",
-    "build-for-devtools": "cross-env RELEASE_CHANNEL=experimental yarn build react/index,react/jsx,react-dom/index,react-dom/client,react-dom/unstable_testing,react-dom/test-utils,react-is,react-debug-tools,scheduler,react-test-renderer,react-refresh,react-art --type=NODE",
+    "build-for-devtools": "cross-env RELEASE_CHANNEL=experimental yarn build react/index,react/jsx,react/compiler-runtime,react-dom/index,react-dom/client,react-dom/unstable_testing,react-dom/test-utils,react-is,react-debug-tools,scheduler,react-test-renderer,react-refresh,react-art --type=NODE",
     "build-for-devtools-dev": "yarn build-for-devtools --type=NODE_DEV",
     "build-for-devtools-prod": "yarn build-for-devtools --type=NODE_PROD",
     "linc": "node ./scripts/tasks/linc.js",

filename: packages/react-devtools-shell/webpack-server.js
patch: @@ -124,8 +124,6 @@ const makeConfig = (entry, alias) => ({
   },
 });
 
-const clientAsSeparateBuild = semver.gte(REACT_VERSION, '19.0.0');
-
 const app = makeConfig(
   {
     'app-index': './src/app/index.js',
@@ -144,14 +142,8 @@ const app = makeConfig(
     react: resolve(builtModulesDir, 'react'),
     'react-debug-tools': resolve(builtModulesDir, 'react-debug-tools'),
     'react-devtools-feature-flags': resolveFeatureFlags('shell'),
-    'react-dom/client': resolve(
-      builtModulesDir,
-      clientAsSeparateBuild ? 'react-dom/unstable_testing' : 'react-dom/client',
-    ),
-    'react-dom': resolve(
-      builtModulesDir,
-      clientAsSeparateBuild ? 'react-dom' : 'react-dom/unstable_testing',
-    ),
+    'react-dom/client': resolve(builtModulesDir, 'react-dom/unstable_testing'),
+    'react-dom': resolve(builtModulesDir, 'react-dom'),
     'react-is': resolve(builtModulesDir, 'react-is'),
     scheduler: resolve(builtModulesDir, 'scheduler'),
   },
Repository: ggml-org/llama.cpp
Pull request: vulkan: check glslc executable string


Changed files:
filename: ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp
patch: @@ -18,6 +18,7 @@
 #include <algorithm>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <filesystem>
 
 #ifdef _WIN32
     #define NOMINMAX
@@ -1080,6 +1081,11 @@ int main(int argc, char** argv) {
 
     if (args.find("--glslc") != args.end()) {
         GLSLC = args["--glslc"]; // Path to glslc
+
+        if (!std::filesystem::exists(GLSLC) || !std::filesystem::is_regular_file(GLSLC)) {
+            std::cerr << "Error: glslc not found at " << GLSLC << std::endl;
+            return EXIT_FAILURE;
+        }
     }
     if (args.find("--source") != args.end()) {
         input_filepath = args["--source"]; // The shader source file to compile
Repository: ollama/ollama
Pull request: Corrected transposed 129 to 192 for OLLAMA_ORIGINS example

Issue:  
Doc contained
```
echo 'Environment="OLLAMA_ORIGINS=http://129.168.1.1:*,https://example.com"' >>/etc/systemd/system/ollama.service.d/environment.conf
```
Which, based on all other examples, should be 192.168.1.1



Changed files:
filename: docs/faq.md
patch: @@ -59,7 +59,7 @@ OLLAMA_ORIGINS=http://192.168.1.1:*,https://example.com ollama serve
 On Linux:
 
 ```bash
-echo 'Environment="OLLAMA_ORIGINS=http://129.168.1.1:*,https://example.com"' >>/etc/systemd/system/ollama.service.d/environment.conf
+echo 'Environment="OLLAMA_ORIGINS=http://192.168.1.1:*,https://example.com"' >>/etc/systemd/system/ollama.service.d/environment.conf
 ```
 
 Reload `systemd` and restart Ollama:
Repository: denoland/deno
Pull request: fix(unstable): don't panic on invalid reported lint range

When a lint diagnostic contained an invalid range where the `start` value was bigger than the `end` value, we'd panic when passing the range to `dprint`. We should ensure that the range is correct right when we're creating the lint diagnostic instead.

Fixes https://github.com/denoland/deno/issues/31249

Changed files:
filename: cli/js/40_lint.js
patch: @@ -391,6 +391,12 @@ export class Context {
     const start = range[0];
     const end = range[1];
 
+    if (start > end) {
+      throw new RangeError(
+        `Invalid range. Start value is bigger than end value: [${start}, ${end}]`,
+      );
+    }
+
     /** @type {Deno.lint.Fix[]} */
     const fixes = [];
 

filename: tests/unit/lint_plugin_test.ts
patch: @@ -1,6 +1,6 @@
 // Copyright 2018-2025 the Deno authors. MIT license.
 
-import { assert, assertEquals } from "./test_util.ts";
+import { assert, assertEquals, assertStringIncludes } from "./test_util.ts";
 import { assertSnapshot } from "@std/testing/snapshot";
 
 // TODO(@marvinhagemeister) Remove once we land "official" types
@@ -1246,3 +1246,28 @@ Deno.test("Plugin - enumerable properties", () => {
 
   assert(keys.length > 0);
 });
+
+Deno.test("Plugin - error when reported range start > end", () => {
+  // assertThrows doesn't support checking the error message.
+  try {
+    testPlugin(`foo;`, {
+      create(ctx) {
+        return {
+          Identifier(node) {
+            ctx.report({
+              message: "not ok",
+              range: node.range.reverse() as Deno.lint.Range,
+            });
+          },
+        };
+      },
+    });
+    throw new Error("fail");
+  } catch (err) {
+    if (!(err instanceof Error)) {
+      throw err;
+    }
+
+    assertStringIncludes((err.cause as Error).message, "Invalid range");
+  }
+});
Repository: electron/electron
Pull request: fix: stop menu minimization if set false

#### Description of Change

Closes #46676

Previously the "Minimize" menu button would still allow the user to minimize the window on Windows, even if the window was created with `minimizable: false`. Now the window will not be able to be minimized via that button.

A follow-up PR is necessary to disable the button such that it is grayed out as well on both macOS and Windows.

#### 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: fix Minimize menu button to follow set window minimizability on Windows

Changed files:
filename: lib/browser/api/menu-item-roles.ts
patch: @@ -78,7 +78,9 @@ export const roleList: Record<RoleId, Role> = {
   minimize: {
     label: 'Minimize',
     accelerator: 'CommandOrControl+M',
-    windowMethod: w => w.minimize()
+    windowMethod: w => {
+      if (w.minimizable) w.minimize();
+    }
   },
   paste: {
     label: 'Paste',

filename: spec/api-menu-item-spec.ts
patch: @@ -2,7 +2,7 @@ import { BrowserWindow, app, Menu, MenuItem, MenuItemConstructorOptions } from '
 
 import { expect } from 'chai';
 
-import { ifdescribe } from './lib/spec-helpers';
+import { ifit, ifdescribe } from './lib/spec-helpers';
 import { closeAllWindows } from './lib/window-helpers';
 import { roleList, execute } from '../lib/browser/api/menu-item-roles';
 
@@ -205,6 +205,22 @@ describe('MenuItems', () => {
       const canExecute = execute(item.role as any, win, win.webContents);
       expect(canExecute).to.be.true('can execute');
     });
+
+    ifit(process.platform === 'win32')('does not execute minimize role when minimizable false', () => {
+      const win = new BrowserWindow({ minimizable: false });
+      const menu = Menu.buildFromTemplate([{
+        label: 'text',
+        role: 'minimize'
+      }]);
+
+      Menu.setApplicationMenu(menu);
+      menu._executeCommand({}, menu.items[0].commandId);
+      expect(win.isMinimized()).to.equal(false);
+
+      win.setMinimizable(true);
+      menu._executeCommand({}, menu.items[0].commandId);
+      expect(win.isMinimized()).to.equal(true);
+    });
   });
 
   describe('MenuItem command id', () => {
Repository: vercel/next.js
Pull request: examples(with-mongodb): upgrade to tailwind v4

Upgraded to tailwind 4 and updated react version and dependencies. 

Changed files:
filename: examples/with-mongodb/package.json
patch: @@ -6,20 +6,19 @@
     "start": "next start"
   },
   "dependencies": {
-    "mongodb": "^6.5.0",
+    "mongodb": "^6.19.0",
     "next": "latest",
-    "react": "^18",
-    "react-dom": "^18"
+    "react": "^19.1.1",
+    "react-dom": "^19.1.1"
   },
   "devDependencies": {
-    "@types/node": "^20",
-    "@types/react": "^18",
-    "@types/react-dom": "^18",
-    "autoprefixer": "^10.0.1",
-    "eslint": "^9",
-    "eslint-config-next": "14.0.4",
-    "postcss": "^8",
-    "tailwindcss": "^3.3.0",
-    "typescript": "^5"
+    "@tailwindcss/postcss": "^4.1.12",
+    "@types/node": "^24.3.0",
+    "@types/react": "^19.1.1",
+    "@types/react-dom": "^19.1.1",
+    "eslint": "^9.34.0",
+    "eslint-config-next": "latest",
+    "tailwindcss": "^4.1.12",
+    "typescript": "^5.9.2"
   }
 }

filename: examples/with-mongodb/postcss.config.js
patch: @@ -1,6 +1,5 @@
 module.exports = {
   plugins: {
-    tailwindcss: {},
-    autoprefixer: {},
+    "@tailwindcss/postcss": {},
   },
 };

filename: examples/with-mongodb/styles/globals.css
patch: @@ -1,6 +1,4 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
+@import "tailwindcss";
 
 :root {
   --foreground-rgb: 0, 0, 0;
Repository: huggingface/transformers
Pull request: feat(serving): add healthcheck


Changed files:
filename: src/transformers/commands/serving.py
patch: @@ -732,6 +732,10 @@ async def audio_transcriptions(request: Request):
         def get_all_models():
             return JSONResponse({"object": "list", "data": self.get_gen_models()})
 
+        @app.get("/health")
+        def healthcheck():
+            return JSONResponse({"status": "ok"})
+
         uvicorn.run(app, host=self.args.host, port=self.args.port, log_level=self.args.log_level)
 
     @functools.cache
Repository: ollama/ollama
Pull request: Add OllamaEmbeddings to python LangChain example

The current docs use `GPT4AllEmbeddings()`. Here we simply swap that out for `OllamaEmbeddings`, which was [recently added](https://github.com/langchain-ai/langchain/pull/10124) to LangChain.

Changed files:
filename: docs/tutorials/langchainpy.md
patch: @@ -42,12 +42,13 @@ text_splitter=RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=0)
 all_splits = text_splitter.split_documents(data)
 ```
 
-It's split up, but we have to find the relevant splits and then submit those to the model. We can do this by creating embeddings and storing them in a vector database. For now, we don't have embeddings built in to Ollama, though we will be adding that soon, so for now, we can use the GPT4All library for that. We will use ChromaDB in this example for a vector database. `pip install GPT4All chromadb`
+It's split up, but we have to find the relevant splits and then submit those to the model. We can do this by creating embeddings and storing them in a vector database. We can use Ollama directly to instantiate an embedding model. We will use ChromaDB in this example for a vector database. `pip install GPT4All chromadb`
 
 ```python
-from langchain.embeddings import GPT4AllEmbeddings
+from langchain.embeddings import OllamaEmbeddings
 from langchain.vectorstores import Chroma
-vectorstore = Chroma.from_documents(documents=all_splits, embedding=GPT4AllEmbeddings())
+oembed = OllamaEmbeddings(base_url="http://localhost:11434", model="llama2")
+vectorstore = Chroma.from_documents(documents=all_splits, embedding=oembed)
 ```
 
 Now let's ask a question from the document. **Who was Neleus, and who is in his family?** Neleus is a character in the Odyssey, and the answer can be found in our text.
Repository: ollama/ollama
Pull request: validate model tags on copy

Validate model tags and name on copy/create.

Resolves #1247

Example errors:
```
ollama create mario:test:1 -f ~/models/mario/Modelfile
transferring model data
Error: invalid model path: ':' (colon) is not allowed in tag names

ollama create :test -f ~/models/mario/Modelfile
transferring model data
Error: invalid model path: model repository name is required

ollama cp brxce/nous-capybara brxce/capybara:1:2
Error: invalid model path: ':' (colon) is not allowed in tag names

ollama cp brxce/nous-capybara :1:2
Error: invalid model path: model repository name is required
```

Changed files:
filename: server/modelpath.go
patch: @@ -67,6 +67,20 @@ func ParseModelPath(name string) ModelPath {
 	return mp
 }
 
+var errModelPathInvalid = errors.New("invalid model path")
+
+func (mp ModelPath) Validate() error {
+	if mp.Repository == "" {
+		return fmt.Errorf("%w: model repository name is required", errModelPathInvalid)
+	}
+
+	if strings.Contains(mp.Tag, ":") {
+		return fmt.Errorf("%w: ':' (colon) is not allowed in tag names", errModelPathInvalid)
+	}
+
+	return nil
+}
+
 func (mp ModelPath) GetNamespaceRepository() string {
 	return fmt.Sprintf("%s/%s", mp.Namespace, mp.Repository)
 }

filename: server/routes.go
patch: @@ -416,8 +416,8 @@ func CreateModelHandler(c *gin.Context) {
 		return
 	}
 
-	if strings.Count(req.Name, ":") > 1 {
-		c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": "':' (colon) is not allowed in tag names"})
+	if err := ParseModelPath(req.Name).Validate(); err != nil {
+		c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": err.Error()})
 		return
 	}
 
@@ -645,6 +645,11 @@ func CopyModelHandler(c *gin.Context) {
 		return
 	}
 
+	if err := ParseModelPath(req.Destination).Validate(); err != nil {
+		c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+		return
+	}
+
 	if err := CopyModel(req.Source, req.Destination); err != nil {
 		if os.IsNotExist(err) {
 			c.JSON(http.StatusNotFound, gin.H{"error": fmt.Sprintf("model '%s' not found", req.Source)})
Repository: huggingface/transformers
Pull request: Mark `LongformerModelTest::test_attention_outputs` as flaky

# What does this PR do?

Small failure rate, but still seeing it

https://app.circleci.com/pipelines/github/huggingface/transformers/143883/workflows/85ccd674-ccf8-4880-9144-4a2660676b0b/jobs/1902199

Not sure the way `LongformerAttention` and/or `LongformerSelfAttention` processing the attentions they would return.

No bandwidth to check this (and questionable of the worth of the time)

Changed files:
filename: tests/models/longformer/test_modeling_longformer.py
patch: @@ -16,7 +16,14 @@
 import unittest
 
 from transformers import LongformerConfig, is_torch_available
-from transformers.testing_utils import require_sentencepiece, require_tokenizers, require_torch, slow, torch_device
+from transformers.testing_utils import (
+    is_flaky,
+    require_sentencepiece,
+    require_tokenizers,
+    require_torch,
+    slow,
+    torch_device,
+)
 
 from ...test_configuration_common import ConfigTester
 from ...test_modeling_common import ModelTesterMixin, ids_tensor, random_attention_mask
@@ -355,6 +362,14 @@ def setUp(self):
         self.model_tester = LongformerModelTester(self)
         self.config_tester = ConfigTester(self, config_class=LongformerConfig, hidden_size=37)
 
+    # Without this, 0.01% failure rate.
+    @is_flaky(
+        max_attempts=2,
+        description="When `inputs_dict['attention_mask'][:, -1]` is all `0`s, we get shorter length along the last dimension of the output's `attentions`.",
+    )
+    def test_attention_outputs(self):
+        super().test_attention_outputs()
+
     def test_config(self):
         self.config_tester.run_common_tests()
Repository: vercel/next.js
Pull request: fix: shrink bottom stack container height

The bottom stack container was taking extra size even when there's no stacks. This led to unable to close the tab when you click the bottom stack area. Unless you move to a bit more bottom then you can close it.

<img width="600"  alt="image" src="https://github.com/user-attachments/assets/db27892f-9fab-4f21-9b52-6f851de9e5fe" />

Tweak CSS to make sure that area is available to click and close the overlay.

| After | Before |
|:------|:-------|
| <video src="https://github.com/user-attachments/assets/2b193a6f-e57b-44e9-a738-f7e32588f6e8"> | <video src="https://github.com/user-attachments/assets/c662fd1d-9372-4a23-8e22-3ef1ed7be04c"> |

Closes NEXT-4707

Changed files:
filename: packages/next/src/next-devtools/dev-overlay/components/errors/error-overlay-bottom-stack/index.tsx
patch: @@ -66,7 +66,8 @@ export const styles = `
     place-items: center center;
     width: 100%;
     position: fixed;
-    overflow: hidden;
+    height: 0;
+    overflow: visible;
     z-index: -1;
     max-width: var(--next-dialog-max-width);
Repository: nodejs/node
Pull request: fs: close dir before throwing if `options.bufferSize` is invalid

Fixes: https://github.com/nodejs/node/issues/58854

~~Test blocked on: https://github.com/nodejs/node/pull/58855~~

Changed files:
filename: lib/internal/fs/dir.js
patch: @@ -59,7 +59,13 @@ class Dir {
       }),
     };
 
-    validateUint32(this.#options.bufferSize, 'options.bufferSize', true);
+    try {
+      validateUint32(this.#options.bufferSize, 'options.bufferSize', true);
+    } catch (validationError) {
+      // Userland won't be able to close handle if we throw, so we close it first
+      this.#handle.close();
+      throw validationError;
+    }
 
     this.#readPromisified = FunctionPrototypeBind(
       promisify(this.#readImpl), this, false);

filename: test/parallel/test-fs-opendir.js
patch: @@ -4,12 +4,20 @@ const common = require('../common');
 const assert = require('assert');
 const fs = require('fs');
 const path = require('path');
+const process = require('node:process');
 
 const tmpdir = require('../common/tmpdir');
 
 const testDir = tmpdir.path;
 const files = ['empty', 'files', 'for', 'just', 'testing'];
 
+process.on('warning', (cause) => {
+  // If any directory handle was left unclosed and then GC'd,
+  // it will emit `Warning: Closing directory handle on garbage collection`.
+  // Treat this warning as error.
+  throw new Error('Expected no warnings', { cause });
+});
+
 // Make sure tmp directory is clean
 tmpdir.refresh();
Repository: denoland/deno
Pull request: ci: use macos-15-intel image

https://github.com/actions/runner-images/issues/13046

Changed files:
filename: .github/workflows/ci.generate.ts
patch: @@ -12,7 +12,7 @@ const ubuntuX86XlRunner = "ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04";
 const ubuntuARMRunner = "ubicloud-standard-16-arm";
 const windowsX86Runner = "windows-2022";
 const windowsX86XlRunner = "windows-2022-xl";
-const macosX86Runner = "macos-13";
+const macosX86Runner = "macos-15-intel";
 const macosArmRunner = "macos-14";
 const selfHostedMacosArmRunner = "ghcr.io/cirruslabs/macos-runner:sonoma";
 

filename: .github/workflows/ci.yml
patch: @@ -60,12 +60,12 @@ jobs:
         include:
           - os: macos
             arch: x86_64
-            runner: macos-13
+            runner: macos-15-intel
             job: test
             profile: debug
           - os: macos
             arch: x86_64
-            runner: '${{ (!contains(github.event.pull_request.labels.*.name, ''ci-full'') && (github.event_name == ''pull_request'')) && ''ubuntu-24.04'' || ''macos-13'' }}'
+            runner: '${{ (!contains(github.event.pull_request.labels.*.name, ''ci-full'') && (github.event_name == ''pull_request'')) && ''ubuntu-24.04'' || ''macos-15-intel'' }}'
             job: test
             profile: release
             skip: '${{ !contains(github.event.pull_request.labels.*.name, ''ci-full'') && (github.event_name == ''pull_request'') }}'
@@ -762,7 +762,7 @@ jobs:
             job: lint
           - os: macos
             arch: x86_64
-            runner: macos-13
+            runner: macos-15-intel
             profile: debug
             job: lint
           - os: windows
Repository: ollama/ollama
Pull request: Fixed cuda repo location for rhel os


Changed files:
filename: scripts/install.sh
patch: @@ -217,7 +217,7 @@ fi
 
 if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\.[0-9]*")" ]; then
     case $OS_NAME in
-        centos|rhel) install_cuda_driver_yum 'rhel' $OS_VERSION ;;
+	centos|rhel) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -d '.' -f 1) ;;
         rocky) install_cuda_driver_yum 'rhel' $(echo $OS_VERSION | cut -c1) ;;
         fedora) install_cuda_driver_yum $OS_NAME $OS_VERSION ;;
         amzn) install_cuda_driver_yum 'fedora' '35' ;;