helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: src: add nullptr checks in `StreamPipe::New`

Fixes: https://github.com/nodejs/node/issues/57612

Do it like here:
https://github.com/nodejs/node/blob/b4280ef72c9a05aef118406c23fd90dc4a237510/src/stream_base.cc#L628
https://github.com/nodejs/node/blob/b4280ef72c9a05aef118406c23fd90dc4a237510/src/node_http_parser.cc#L717
https://github.com/nodejs/node/blob/b4280ef72c9a05aef118406c23fd90dc4a237510/src/crypto/crypto_tls.cc#L545

Changed files:
filename: src/stream_pipe.cc
patch: @@ -278,6 +278,8 @@ void StreamPipe::New(const FunctionCallbackInfo<Value>& args) {
   CHECK(args[1]->IsObject());
   StreamBase* source = StreamBase::FromObject(args[0].As<Object>());
   StreamBase* sink = StreamBase::FromObject(args[1].As<Object>());
+  CHECK_NOT_NULL(source);
+  CHECK_NOT_NULL(sink);
 
   if (StreamPipe::New(source, sink, args.This()).IsNothing()) return;
 }
Repository: huggingface/transformers
Pull request: Fixing the call to kernelize

# What does this PR do?

passing the mode to kernelize to fix : https://github.com/huggingface/transformers/issues/40459

Changed files:
filename: src/transformers/modeling_utils.py
patch: @@ -5203,14 +5203,7 @@ def _assign_original_dtype(module):
 
         # check if using kernels
         if use_kernels:
-            if not is_kernels_available():
-                raise ValueError(
-                    "Kernels are not available. To use kernels, please install kernels using `pip install kernels`"
-                )
-
-            from kernels import Device, kernelize
-
-            kernelize(model, device=Device(type=model.device.type))
+            model.use_kernels = True
 
         # If it is a model with generation capabilities, attempt to load generation files (generation config,
         # custom generate function)
@@ -5971,6 +5964,36 @@ def loss_function(self):
     def loss_function(self, value):
         self._loss_function = value
 
+    def kernelize(self):
+        if not is_kernels_available():
+            raise ValueError(
+                "Kernels are not available. To use kernels, please install kernels using `pip install kernels`"
+            )
+        from kernels import Device, Mode, kernelize
+
+        mode = Mode.INFERENCE if not self.training else Mode.TRAINING
+        kernelize(self, device=Device(type=self.device.type), mode=mode)
+        self._use_kernels = True
+
+    @property
+    def use_kernels(self) -> bool:
+        return getattr(self, "_use_kernels", False)
+
+    @use_kernels.setter
+    def use_kernels(self, value: bool) -> None:
+        # Avoid re-kernelizing if already enabled
+        if bool(value) and getattr(self, "_use_kernels", False):
+            return
+
+        if value:
+            self.kernelize()
+        else:
+            if getattr(self, "_use_kernels", False):
+                logger.warning_once(
+                    "Disabling kernels at runtime is a no-op as there is no 'unkernelize' routine; keeping current kernels active."
+                )
+            self._use_kernels = False
+
     def get_compiled_call(self, compile_config: Optional[CompileConfig]) -> Callable:
         """Return a `torch.compile`'d version of `self.__call__`. This is useful to dynamically choose between
         non-compiled/compiled `forward` during inference, especially to switch between prefill (where we don't
@@ -6093,6 +6116,15 @@ def get_parameter_or_buffer(self, target: str):
 
         raise AttributeError(f"`{target}` is neither a parameter, buffer, nor extra state.")
 
+    def train(self, mode: bool = True):
+        out = super().train(mode)
+        if self.use_kernels:
+            self.kernelize()
+        return out
+
+    def eval(self):
+        return self.train(False)
+
 
 PreTrainedModel.push_to_hub = copy_func(PreTrainedModel.push_to_hub)
 if PreTrainedModel.push_to_hub.__doc__ is not None:
Repository: ollama/ollama
Pull request: ci: update setup-go action

This PR updates [actions/setup-go](https://github.com/actions/setup-go/releases/tag/v5.0.0) ~~and tests with go 1.21~~


Changed files:
filename: .github/workflows/test.yaml
patch: @@ -19,7 +19,7 @@ jobs:
       GOARCH: ${{ matrix.arch }}
     steps:
       - uses: actions/checkout@v4
-      - uses: actions/setup-go@v4
+      - uses: actions/setup-go@v5
         with:
           go-version: '1.21'
           cache: true
@@ -65,7 +65,7 @@ jobs:
       - uses: actions/checkout@v4
         with:
           submodules: recursive
-      - uses: actions/setup-go@v4
+      - uses: actions/setup-go@v5
         with:
           go-version: '1.21'
           cache: false
@@ -93,7 +93,7 @@ jobs:
       - uses: actions/checkout@v4
         with:
           submodules: recursive
-      - uses: actions/setup-go@v4
+      - uses: actions/setup-go@v5
         with:
           go-version: '1.21'
           cache: true
Repository: ollama/ollama
Pull request: add Open Interpreter to README

Adding Open Interpreter to the list of Extensions & Plugins. Includes link to OI documentation explaining how to use Ollama to power OI

Changed files:
filename: README.md
patch: @@ -327,3 +327,4 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Rivet plugin](https://github.com/abrenneke/rivet-plugin-ollama)
 - [Llama Coder](https://github.com/ex3ndr/llama-coder) (Copilot alternative using Ollama)
 - [Obsidian BMO Chatbot plugin](https://github.com/longy2k/obsidian-bmo-chatbot)
+- [Open Interpreter](https://docs.openinterpreter.com/language-model-setup/local-models/ollama)
\ No newline at end of file
Repository: vercel/next.js
Pull request: Turbopack: Optimize addedRoutes and removedRoutes calculation

## What?

Apply suggestion from this review: https://github.com/vercel/next.js/pull/83829#discussion_r2352698323

Closes PACK-5463

Changed files:
filename: packages/next/src/server/dev/hot-reloader-turbopack.ts
patch: @@ -619,10 +619,12 @@ export async function createHotReloaderTurbopack(
       const newRoutes = [...entrypoints.routes.keys()]
 
       const addedRoutes = newRoutes.filter(
-        (route) => !existingRoutes.includes(route)
+        (route) =>
+          !currentEntrypoints.app.has(route) &&
+          !currentEntrypoints.page.has(route)
       )
       const removedRoutes = existingRoutes.filter(
-        (route) => !newRoutes.includes(route)
+        (route) => !entrypoints.routes.has(route)
       )
 
       processTopLevelIssues(currentTopLevelIssues, entrypoints)
Repository: ggml-org/llama.cpp
Pull request: mtmd: improve struct initialization

Ref: https://github.com/ggml-org/llama.cpp/issues/16842#issuecomment-3482037258

No idea why it fixed the issue, but opening this PR as a small cleanup

Changed files:
filename: tools/mtmd/clip.cpp
patch: @@ -2761,6 +2761,7 @@ struct clip_model_loader {
                     {
                         // ref: https://huggingface.co/mistral-community/pixtral-12b/blob/main/preprocessor_config.json
                         // TODO: verify the image_min_tokens
+                        hparams.n_merge = 1; // the original pixtral does not use patch merging
                         hparams.rope_theta = 10000.0f;
                         get_u32(KEY_SPATIAL_MERGE_SIZE, hparams.n_merge, false);
                         hparams.set_limit_image_tokens(8, 1024);

filename: tools/mtmd/mtmd.cpp
patch: @@ -101,16 +101,17 @@ static clip_flash_attn_type mtmd_get_clip_flash_attn_type(enum llama_flash_attn_
 }
 
 mtmd_context_params mtmd_context_params_default() {
-    mtmd_context_params params;
-    params.use_gpu = true;
-    params.print_timings = true;
-    params.n_threads = 4;
-    params.verbosity = GGML_LOG_LEVEL_INFO;
-    params.image_marker = MTMD_DEFAULT_IMAGE_MARKER;
-    params.media_marker = mtmd_default_marker();
-    params.flash_attn_type = LLAMA_FLASH_ATTN_TYPE_AUTO;
-    params.image_min_tokens = -1;
-    params.image_max_tokens = -1;
+    mtmd_context_params params {
+        /* use_gpu           */ true,
+        /* print_timings     */ true,
+        /* n_threads         */ 4,
+        /* verbosity         */ GGML_LOG_LEVEL_INFO,
+        /* image_marker      */ MTMD_DEFAULT_IMAGE_MARKER,
+        /* media_marker      */ mtmd_default_marker(),
+        /* flash_attn_type   */ LLAMA_FLASH_ATTN_TYPE_AUTO,
+        /* image_min_tokens  */ -1,
+        /* image_max_tokens  */ -1,
+    };
     return params;
 }
 
@@ -172,13 +173,13 @@ struct mtmd_context {
             throw std::runtime_error("media_marker must not be empty");
         }
 
-        clip_context_params ctx_clip_params;
-        ctx_clip_params.use_gpu          = ctx_params.use_gpu;
-        ctx_clip_params.verbosity        = ctx_params.verbosity;
-        ctx_clip_params.flash_attn_type  = mtmd_get_clip_flash_attn_type(ctx_params.flash_attn_type);
-        // custom image token limits
-        ctx_clip_params.image_min_tokens = ctx_params.image_min_tokens;
-        ctx_clip_params.image_max_tokens = ctx_params.image_max_tokens;
+        clip_context_params ctx_clip_params {
+            /* use_gpu           */ ctx_params.use_gpu,
+            /* verbosity         */ ctx_params.verbosity,
+            /* flash_attn_type   */ CLIP_FLASH_ATTN_TYPE_AUTO,
+            /* image_min_tokens  */ ctx_params.image_min_tokens,
+            /* image_max_tokens  */ ctx_params.image_max_tokens,
+        };
 
         auto res = clip_init(mmproj_fname, ctx_clip_params);
         ctx_v = res.ctx_v;
Repository: nodejs/node
Pull request: doc: fix typo in README.md

Corrects the misspelling of "unmask" to "umask"


Changed files:
filename: test/common/README.md
patch: @@ -14,7 +14,7 @@ several other tasks:
   don't accidentally pollute the global namespace.
 
 * Some tests assume a default umask of `0o022`. To enforce this assumption,
-  the common module sets the unmask at startup. Tests that require a
+  the common module sets the umask at startup. Tests that require a
   different umask can override this setting after loading the module.
 
 * Some tests specify runtime flags (example, `--expose-internals`) via a
Repository: facebook/react
Pull request: fix<compiler>: reread the testfilter file if filter enabled during the watch process


<!--
  Thanks for submitting a pull request!
  We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.

  Before submitting a pull request, please make sure the following is done:

  1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`.
  2. Run `yarn` in the repository root.
  3. If you've fixed a bug or added code that should be tested, add tests!
  4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
  5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`.
  6. If you need a debugger, run `yarn test --debug --watch TestName`, open `chrome://inspect`, and press "Inspect".
  7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
  8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

  Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->

## Summary
Resolve #29720
In the above PR, I overlooked that we can change the filter mode during the watch process. Now it's fixed.
<!--
 Explain the **motivation** for making this change. What existing problem does the pull request solve?
-->

## How did you test this change?

https://github.com/facebook/react/assets/33021497/b56af495-426a-4daa-993e-81554ee2fb9a


<!--
  Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface.
  How exactly did you verify that your PR solves the issue you wanted to solve?
  If you leave this empty, your PR will very likely be closed.
-->


Changed files:
filename: compiler/packages/snap/src/runner-watch.ts
patch: @@ -189,14 +189,15 @@ function subscribeKeyEvents(
   state: RunnerState,
   onChange: (state: RunnerState) => void
 ) {
-  process.stdin.on("keypress", (str, key) => {
+  process.stdin.on("keypress", async (str, key) => {
     if (key.name === "u") {
       // u => update fixtures
       state.mode.action = RunnerAction.Update;
     } else if (key.name === "q") {
       process.exit(0);
     } else if (key.name === "f") {
       state.mode.filter = !state.mode.filter;
+      state.filter = state.mode.filter ? await readTestFilter() : null;
       state.mode.action = RunnerAction.Test;
     } else {
       // any other key re-runs tests
Repository: ollama/ollama
Pull request: install: pin fedora to max 37

repos for fedora 38 and newer do not exist as of this commit

```
$ dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora37/x86_64/cuda-fedora37.repo
Adding repo from: https://developer.download.nvidia.com/compute/cuda/repos/fedora37/x86_64/cuda-fedora37.repo
```

```
$ dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora38/x86_64/cuda-fedora38.repo
Adding repo from: https://developer.download.nvidia.com/compute/cuda/repos/fedora38/x86_64/cuda-fedora38.repo
Status code: 404 for https://developer.download.nvidia.com/compute/cuda/repos/fedora38/x86_64/cuda-fedora38.repo (IP: 152.195.19.142)
Error: Configuration of repo failed
```

resolves #1993 
resolves #1326 

Changed files:
filename: scripts/install.sh
patch: @@ -231,8 +231,8 @@ if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\
     case $OS_NAME in
         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' ;;
+        fedora) [ $OS_VERSION -lt '37' ] && install_cuda_driver_yum $OS_NAME $OS_VERSION || install_cuda_driver_yum $OS_NAME '37';;
+        amzn) install_cuda_driver_yum 'fedora' '37' ;;
         debian) install_cuda_driver_apt $OS_NAME $OS_VERSION ;;
         ubuntu) install_cuda_driver_apt $OS_NAME $(echo $OS_VERSION | sed 's/\.//') ;;
         *) exit ;;
Repository: vercel/next.js
Pull request: Update Rspack production test manifest

This auto-generated PR updates the production integration test manifest used when testing Rspack.

Changed files:
filename: test/rspack-build-tests-manifest.json
patch: @@ -19852,15 +19852,14 @@
   },
   "test/production/app-dir/build-output-prerender/build-output-prerender.test.ts": {
     "passed": [
-      "build-output-prerender with a next config file with --debug-prerender shows all prerender errors with readable stacks and code frames",
-      "build-output-prerender with a next config file without --debug-prerender shows only a single prerender error with a mangled stack"
-    ],
-    "failed": [
       "build-output-prerender with a next config file with --debug-prerender prints a warning and the customized experimental flags",
+      "build-output-prerender with a next config file with --debug-prerender shows all prerender errors with readable stacks and code frames",
       "build-output-prerender with a next config file without --debug-prerender prints only the user-selected experimental flags (and the ones enabled via env variable)",
+      "build-output-prerender with a next config file without --debug-prerender shows only a single prerender error with a mangled stack",
       "build-output-prerender without a next config file with --debug-prerender prints a warning and the customized experimental flags",
       "build-output-prerender without a next config file without --debug-prerender prints no experimental flags (unless enabled via env variable)"
     ],
+    "failed": [],
     "pending": [],
     "flakey": [],
     "runtimeError": false
@@ -20227,6 +20226,15 @@
     "flakey": [],
     "runtimeError": false
   },
+  "test/production/app-dir/unstable-cache-foreground-revalidate/unstable-cache-foreground-revalidate.test.ts": {
+    "passed": [
+      "unstable-cache-foreground-revalidate should block and wait for fresh data when ISR page revalidate time is greater than unstable_cache TTL"
+    ],
+    "failed": [],
+    "pending": [],
+    "flakey": [],
+    "runtimeError": false
+  },
   "test/production/app-dir/worker-restart/worker-restart.test.ts": {
     "passed": [
       "worker-restart should fail the build if a worker process is killed",
Repository: nodejs/node
Pull request: deps: update amaro to 1.1.1

This is an automated update of amaro to 1.1.1.

Fixes: https://github.com/nodejs/node/issues/59102

Changed files:
filename: deps/amaro/dist/package.json
patch: @@ -4,7 +4,7 @@
     "강동윤 <kdy1997.dev@gmail.com>"
   ],
   "description": "wasm module for swc",
-  "version": "1.12.1",
+  "version": "1.13.1",
   "license": "Apache-2.0",
   "repository": {
     "type": "git",

filename: deps/amaro/lib/wasm.d.ts
patch: @@ -43,6 +43,20 @@ interface TransformConfig {
      * Defaults to false.
      */
     tsEnumIsMutable?: boolean;
+
+    /**
+     * Available only on nightly builds.
+     */
+    jsx?: JsxConfig;
+}
+
+interface JsxConfig {
+    /**
+     * How to transform JSX.
+     * 
+     * @default "react-jsx"
+     */
+    transform?: "react-jsx" | "react-jsxdev";
 }
 
 

filename: deps/amaro/package.json
patch: @@ -1,6 +1,6 @@
 {
 	"name": "amaro",
-	"version": "1.1.0",
+	"version": "1.1.1",
 	"description": "Node.js TypeScript wrapper",
 	"license": "MIT",
 	"type": "commonjs",

filename: src/amaro_version.h
patch: @@ -2,5 +2,5 @@
 // Refer to tools/dep_updaters/update-amaro.sh
 #ifndef SRC_AMARO_VERSION_H_
 #define SRC_AMARO_VERSION_H_
-#define AMARO_VERSION "1.1.0"
+#define AMARO_VERSION "1.1.1"
 #endif  // SRC_AMARO_VERSION_H_
Repository: facebook/react
Pull request: fix[react-devtools/store-test]: fork the test to represent current be…

## Summary

The test started to fail after https://github.com/facebook/react/pull/29088.

Fork the test and the expected store state for:
- React 18.x, to represent the previous behavior
- React >= 19, to represent the current RDT behavior, where error can't be connected to the fiber, because it was not yet mounted and shared with DevTools.

Ideally, DevTools should start keeping track of such fibers, but also distinguish them from some that haven't mounted due to Suspense or error boundaries.



Changed files:
filename: packages/react-devtools-shared/src/__tests__/store-test.js
patch: @@ -1915,8 +1915,12 @@ describe('Store', () => {
       });
     });
 
-    // @reactVersion >= 18.0
-    it('from react get counted', () => {
+    // In React 19, JSX warnings were moved into the renderer - https://github.com/facebook/react/pull/29088
+    // When the error is emitted, the source fiber of this error is not yet mounted
+    // So DevTools can't connect the error and the fiber
+    // TODO(hoxyq): update RDT to keep track of such fibers
+    // @reactVersion >= 19.0
+    it('from react get counted [React >= 19]', () => {
       function Example() {
         return [<Child />];
       }
@@ -1938,6 +1942,31 @@ describe('Store', () => {
       `);
     });
 
+    // @reactVersion >= 18.0
+    // @reactVersion < 19.0
+    it('from react get counted [React 18.x]', () => {
+      function Example() {
+        return [<Child />];
+      }
+      function Child() {
+        return null;
+      }
+
+      withErrorsOrWarningsIgnored(
+        ['Warning: Each child in a list should have a unique "key" prop'],
+        () => {
+          act(() => render(<Example />));
+        },
+      );
+
+      expect(store).toMatchInlineSnapshot(`
+        ✕ 1, ⚠ 0
+        [root]
+          ▾ <Example> ✕
+              <Child>
+      `);
+    });
+
     // @reactVersion >= 18.0
     it('can be cleared for the whole app', () => {
       function Example() {
Repository: ollama/ollama
Pull request: Update README.md - Library - Haystack

Updated readme with the web link for haystack ollama integration

Changed files:
filename: README.md
patch: @@ -305,6 +305,8 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Ollama for Laravel](https://github.com/cloudstudio/ollama-laravel)
 - [LangChainDart](https://github.com/davidmigloz/langchain_dart)
 - [Semantic Kernel - Python](https://github.com/microsoft/semantic-kernel/tree/main/python/semantic_kernel/connectors/ai/ollama)
+- [Haystack](https://github.com/deepset-ai/haystack-integrations/blob/main/integrations/ollama.md)
+
 
 ### Mobile
Repository: ggml-org/llama.cpp
Pull request: convert : allow quantizing lora again

Allow quantizing LoRA at conversion again, but default to F32 (as has been the norm since #8980 inadvertently forced this).

Fixes #17447
Fixes #10671

Changed files:
filename: convert_hf_to_gguf.py
patch: @@ -565,7 +565,7 @@ def prepare_tensors(self):
                             gguf.MODEL_TENSOR.ALTUP_PREDICT_COEF,
                         )
                     )
-                    or not new_name.endswith(".weight")
+                    or new_name[-7:] not in (".weight", ".lora_a", ".lora_b")
                 ):
                     data_qtype = gguf.GGMLQuantizationType.F32
 

filename: convert_lora_to_gguf.py
patch: @@ -242,7 +242,7 @@ def parse_args() -> argparse.Namespace:
         help="path to write to; default: based on input. {ftype} will be replaced by the outtype.",
     )
     parser.add_argument(
-        "--outtype", type=str, choices=["f32", "f16", "bf16", "q8_0", "auto"], default="f16",
+        "--outtype", type=str, choices=["f32", "f16", "bf16", "q8_0", "auto"], default="f32",
         help="output format - use f32 for float32, f16 for float16, bf16 for bfloat16, q8_0 for Q8_0, auto for the highest-fidelity 16-bit float type depending on the first loaded tensor type",
     )
     parser.add_argument(
Repository: denoland/deno
Pull request: fix(check): regression with tsgo and node globals

Closes https://github.com/denoland/deno/issues/31562

Changed files:
filename: cli/tsc/go.rs
patch: @@ -507,18 +507,20 @@ impl deno_typescript_go_client_rust::CallbackHandler for Handler {
       "isNodeSourceFile" => {
         let path = deser::<String>(payload)?;
         let state = &*state;
-        let result = ModuleSpecifier::parse(&path)
-          .ok()
-          .or_else(|| {
-            deno_path_util::resolve_url_or_path(&path, &state.current_dir).ok()
-          })
-          .and_then(|specifier| {
-            state
-              .maybe_npm
-              .as_ref()
-              .map(|n| n.node_resolver.in_npm_package(&specifier))
-          })
-          .unwrap_or(false);
+        let result = path.starts_with("asset:///node/")
+          || ModuleSpecifier::parse(&path)
+            .ok()
+            .or_else(|| {
+              deno_path_util::resolve_url_or_path(&path, &state.current_dir)
+                .ok()
+            })
+            .and_then(|specifier| {
+              state
+                .maybe_npm
+                .as_ref()
+                .map(|n| n.node_resolver.in_npm_package(&specifier))
+            })
+            .unwrap_or(false);
         Ok(jsons!(result)?)
       }
       _ => unreachable!("unknown callback: {name}"),

filename: tests/specs/check/set_timeout_deno_unref_timer/__test__.jsonc
patch: @@ -0,0 +1,15 @@
+{
+  "args": "check --quiet main.ts",
+  "output": "",
+  "variants": {
+    "tsgo": {
+      "use_tsgo": "1"
+    },
+    "tsc": {
+      "use_tsgo": ""
+    }
+  },
+  "envs": {
+    "DENO_UNSTABLE_TSGO": "${use_tsgo}"
+  }
+}

filename: tests/specs/check/set_timeout_deno_unref_timer/main.ts
patch: @@ -0,0 +1 @@
+Deno.unrefTimer(setTimeout(() => {}));