helloadhavan/github_issues huggingface dataset:
Repository: ggml-org/llama.cpp
Pull request: Support Qwen2_5_VLForConditionalGeneration

*Make sure to read the [contributing guidelines](https://github.com/ggml-org/llama.cpp/blob/master/CONTRIBUTING.md) before submitting a PR*

Based on this discussion:
https://github.com/ggml-org/llama.cpp/issues/11483#issuecomment-2727577078

for the language part we can use the same architecture as Qwen2VLForConditionalGeneration.

Additionally HimariO has the update for the qwen2_vl_surgery.py to support --model_type "qwen2.5vl"
https://github.com/HimariO/llama.cpp.qwen2vl/tree/qwen25-vl 
`python examples/llava/qwen2_vl_surgery.py <path_to_model> --data_type fp32 --model_type "qwen2.5vl"`


Tested working, examples:
DevQuasar/Qwen.Qwen2.5-VL-7B-Instruct-GGUF


`build/bin/llama-qwen2vl-cli -m ~/Downloads/Qwen.Qwen2.5-VL-3B-Instruct.Q4_K_M.gguf --mmproj qwen.qwen2.5-vl-3b-instruct-vision.gguf  -p "Describe this image." --image ~/Downloads/flower.jpg`

```
encode_image_with_clip: image encoded in  3824.77 ms by CLIP (   54.64 ms per image patch)

The image depicts a flower with a unique and surreal appearance. The flower has a predominantly purple hue with a gradient effect, transitioning from deep purple to lighter shades as it moves towards the center. The petals are somewhat elongated and have a wavy, fluid texture, giving the flower a sense of movement or transformation. The center of the flower is a bright, electric blue, which contrasts sharply with the surrounding petals. The flower is set against a background that appears to be a blurred, soft green, which complements the purple and blue tones of the flower. Overall, the image has an artistic and somewhat otherworldly quality, with a focus on the vivid colors and intricate details of the flower.
llama_perf_context_print:        load time =   11328.57 ms
```


Changed files:
filename: convert_hf_to_gguf.py
patch: @@ -2269,7 +2269,7 @@ def set_gguf_parameters(self):
                 self.gguf_writer.add_rope_scaling_orig_ctx_len(self.hparams["rope_scaling"]["original_max_position_embeddings"])
 
 
-@Model.register("Qwen2VLForConditionalGeneration")
+@Model.register("Qwen2VLForConditionalGeneration", "Qwen2_5_VLForConditionalGeneration")
 class Qwen2VLModel(Model):
     model_arch = gguf.MODEL_ARCH.QWEN2VL
Repository: denoland/deno
Pull request: fix(ext/websocket): change default idleTimeout to 30s

Nginx has a default timeout of 60 seconds. I fell down this rabbit hole trying to figure out why WebSockets kept getting closed every 60 seconds in my application. First I found #15430 and assumed ping/pong doesn't work in Deno at all. Then I found #13172 and the discussion in https://github.com/denoland/deno/discussions/13168.

It turns out, there is already an automatic ping/pong in Deno. But it only happens every 120 seconds by default.

So I [set the idleTimeout](https://gitlab.com/soapbox-pub/ditto/-/merge_requests/320) to 30s in my application, and suddenly my problems went away.

It seems to me that the default should be 30s. Otherwise people will continue to have this problem. With 30s it "just works" with common setups.

Changed files:
filename: cli/tsc/dts/lib.deno.ns.d.ts
patch: @@ -5730,7 +5730,7 @@ declare namespace Deno {
      * `pong` within the timeout specified, the connection is deemed
      * unhealthy and is closed. The `close` and `error` event will be emitted.
      *
-     * The unit is seconds, with a default of 120.
+     * The unit is seconds, with a default of 30.
      * Set to `0` to disable timeouts. */
     idleTimeout?: number;
   }

filename: ext/http/02_websocket.ts
patch: @@ -91,7 +91,8 @@ function upgradeWebSocket(request, options = { __proto__: null }) {
   const socket = createWebSocketBranded(WebSocket);
   setEventTargetData(socket);
   socket[_server] = true;
-  socket[_idleTimeoutDuration] = options.idleTimeout ?? 120;
+  // Nginx timeout is 60s, so default to a lower number: https://github.com/denoland/deno/pull/23985
+  socket[_idleTimeoutDuration] = options.idleTimeout ?? 30;
   socket[_idleTimeoutTimeout] = null;
 
   if (inner._wantsUpgrade) {
Repository: electron/electron
Pull request: fix: `showInactive` window not showing

Backport of #43079

See that PR for details.


Notes: Fixed an issue where calling `window.showInactive` on macOS did not actually show the window.

Changed files:
filename: shell/browser/native_window_mac.mm
patch: @@ -469,7 +469,7 @@ void ReorderChildWindowAbove(NSWindow* child_window, NSWindow* other_window) {
   if (parent())
     InternalSetParentWindow(parent(), true);
 
-  [window_ orderFrontKeepWindowKeyState];
+  [window_ orderFrontRegardless];
 }
 
 void NativeWindowMac::Hide() {
Repository: vercel/next.js
Pull request: doc: onNavigate follow-up

Fix the logic when user explicitly wants to leave the page but navigation is blocked.

Changed files:
filename: docs/01-app/04-api-reference/02-components/link.mdx
patch: @@ -1362,11 +1362,11 @@ export function CustomLink({ children, ...props }: CustomLinkProps) {
   return (
     <Link
       onNavigate={(e) => {
-        if (isBlocked) {
+        if (
+          isBlocked &&
+          !window.confirm('You have unsaved changes. Leave anyway?')
+        ) {
           e.preventDefault()
-          if (!window.confirm('You have unsaved changes. Leave anyway?')) {
-            e.preventDefault()
-          }
         }
       }}
       {...props}
@@ -1389,11 +1389,11 @@ export function CustomLink({ children, ...props }) {
   return (
     <Link
       onNavigate={(e) => {
-        if (isBlocked) {
+        if (
+          isBlocked &&
+          !window.confirm('You have unsaved changes. Leave anyway?')
+        ) {
           e.preventDefault()
-          if (!window.confirm('You have unsaved changes. Leave anyway?')) {
-            e.preventDefault()
-          }
         }
       }}
       {...props}
Repository: electron/electron
Pull request: fix: `showInactive` window not showing

#### Description of Change

Closes https://github.com/electron/electron/issues/42962
Refs https://github.com/electron/electron/pull/42226
Refs https://github.com/electron/electron/pull/43033

Fixes `showInactive` window not showing - we don't need to use `orderFrontKeepWindowKeyState` after reverting #43033

#### 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: Fixed an issue where calling `window.showInactive` on macOS did not actually show the window.

Changed files:
filename: shell/browser/native_window_mac.mm
patch: @@ -466,7 +466,7 @@ void ReorderChildWindowAbove(NSWindow* child_window, NSWindow* other_window) {
   if (parent())
     InternalSetParentWindow(parent(), true);
 
-  [window_ orderFrontKeepWindowKeyState];
+  [window_ orderFrontRegardless];
 }
 
 void NativeWindowMac::Hide() {
Repository: denoland/deno
Pull request: fix(coverage): add tooltip to line count in html report

closes #21582

This PR adds tooltip to the execution count part of html coverage report.

<img width="359" alt="Screenshot 2024-05-24 at 20 09 17" src="https://github.com/denoland/deno/assets/613956/7af55bb9-3647-49ed-92e0-a7cb46beb946">

<img width="382" alt="Screenshot 2024-05-24 at 20 09 29" src="https://github.com/denoland/deno/assets/613956/911f5c61-459c-4a0b-acdb-bc65a8651fe6">


Changed files:
filename: cli/tools/coverage/reporter.rs
patch: @@ -644,7 +644,7 @@ impl HtmlCoverageReporter {
           if *count == 0 {
             "<span class='cline-any cline-no'>&nbsp</span>".to_string()
           } else {
-            format!("<span class='cline-any cline-yes'>x{count}</span>")
+            format!("<span class='cline-any cline-yes' title='This line is covered {count} time{}'>x{count}</span>", if *count > 1 { "s" } else { "" })
           }
         } else {
           "<span class='cline-any cline-neutral'>&nbsp</span>".to_string()

filename: tests/integration/coverage_tests.rs
patch: @@ -441,6 +441,12 @@ fn no_internal_node_code() {
 
 #[test]
 fn test_html_reporter() {
+  // This test case generates a html coverage report of test cases in /tests/testdata/coverage/multisource
+  // You can get the same reports in ./cov_html by running the following command:
+  // ```
+  // ./target/debug/deno test --coverage=cov_html tests/testdata/coverage/multisource
+  // ./target/debug/deno coverage --html cov_html
+  // ```
   let context = TestContext::default();
   let tempdir = context.temp_dir();
   let tempdir = tempdir.path().join("cov");
@@ -481,6 +487,9 @@ fn test_html_reporter() {
 
   let foo_ts_html = tempdir.join("html").join("foo.ts.html").read_to_string();
   assert_contains!(foo_ts_html, "<h1>Coverage report for foo.ts</h1>");
+  // Check that line count has correct title attribute
+  assert_contains!(foo_ts_html, "<span class='cline-any cline-yes' title='This line is covered 1 time'>x1</span>");
+  assert_contains!(foo_ts_html, "<span class='cline-any cline-yes' title='This line is covered 3 times'>x3</span>");
 
   let bar_ts_html = tempdir.join("html").join("bar.ts.html").read_to_string();
   assert_contains!(bar_ts_html, "<h1>Coverage report for bar.ts</h1>");
Repository: facebook/react
Pull request: Add script to generate DevTools changelog text

Helps automate part of the DevTools CHANGELOG generation process:

https://user-images.githubusercontent.com/29597/129116155-f3548789-e1ca-4e19-9a4f-70cfd838abb1.mp4



Changed files:
filename: package.json
patch: @@ -116,6 +116,7 @@
     "extract-errors": "yarn build --type=dev --extract-errors",
     "postinstall": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json && node ./scripts/flow/createFlowConfigs.js && node ./scripts/yarn/downloadReactIsForPrettyFormat.js",
     "debug-test": "yarn test --deprecated 'yarn test --debug'",
+    "generate-devtools-changelog": "node packages/react-devtools/get-commit-list.js",
     "test": "node ./scripts/jest/jest-cli.js",
     "test-stable": "node ./scripts/jest/jest-cli.js --release-channel=stable",
     "test-www": "node ./scripts/jest/jest-cli.js --release-channel=www-modern",

filename: packages/react-devtools/get-commit-list.js
patch: @@ -0,0 +1,66 @@
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+const {execSync} = require('child_process');
+const readline = require('readline');
+
+const PULL_REQUEST_BASE_URL = 'https://github.com/facebook/react/pull/';
+
+const hashes = [];
+const lines = execSync(`
+  git log --max-count=5 --topo-order --pretty=format:'%H:::%s:::%as' HEAD -- packages/react-devtools-core/package.json
+`)
+  .toString()
+  .trim()
+  .split('\n');
+lines.forEach((line, index) => {
+  const [hash, message, date] = line.split(':::');
+  hashes.push(hash);
+  console.log(
+    `\x1b[1m(${index + 1})\x1b[0m ${message} \x1b[2m(${date})\x1b[0m`,
+  );
+});
+
+const prompt = readline.createInterface({
+  input: process.stdin,
+  output: process.stdout,
+});
+prompt.question(
+  '\n' +
+    '\x1b[1m' +
+    'Which of the commits above marks the last DevTools release?' +
+    '\x1b[0m ',
+  numberString => {
+    const hashIndex = parseInt(numberString, 10) - 1;
+    const hash = hashes[hashIndex];
+
+    let formattedLog = '';
+
+    const rawLog = execSync(`
+    git log --topo-order --pretty=format:'%s' ${hash}...HEAD -- packages/react-devtools*
+  `)
+      .toString()
+      .trim();
+    rawLog.split('\n').forEach(line => {
+      line = line.replace('[DevTools] ', '');
+
+      const match = line.match(/(.+) \(#([0-9]+)\)/);
+      if (match !== null) {
+        const title = match[1];
+        const pr = match[2];
+
+        formattedLog += `\n* ${title} \x1b[31m([USERNAME](https://github.com/USERNAME)\x1b[0m in [#${pr}](\x1b[4m\x1b[34m${PULL_REQUEST_BASE_URL}${pr}\x1b[0m))`;
+      } else {
+        formattedLog += `\n* ${line}`;
+      }
+    });
+
+    console.log(formattedLog);
+
+    prompt.close();
+  },
+);
Repository: nodejs/node
Pull request: doc: update unflag info of `import.meta.resolve`

same as title, to align with other features

<!--
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: doc/api/esm.md
patch: @@ -395,8 +395,8 @@ changes:
     - v20.6.0
     - v18.19.0
     pr-url: https://github.com/nodejs/node/pull/49028
-    description: Unflag `import.meta.resolve`, with `parentURL` parameter still
-                 flagged.
+    description: No longer behind `--experimental-import-meta-resolve` CLI flag,
+                 except for the non-standard `parentURL` parameter.
   - version:
     - v20.6.0
     - v18.19.0
Repository: ggml-org/llama.cpp
Pull request: llama : make loras compatible with repacking

fix https://github.com/ggml-org/llama.cpp/issues/12587
ref https://github.com/ggml-org/llama.cpp/pull/12181#issuecomment-2745584610

When a LoRA adapter requires to be loaded to an extra buffer type (such as repacked bufts), load in to the default CPU buffer type instead.

Changed files:
filename: src/llama-adapter.cpp
patch: @@ -247,6 +247,26 @@ static void llama_adapter_lora_init_impl(llama_model & model, const char * path_
         }
     }
 
+    // get extra buffer types of the CPU
+    // TODO: a more general solution for non-CPU extra buft should be imlpemented in the future
+    //       ref: https://github.com/ggml-org/llama.cpp/pull/12593#pullrequestreview-2718659948
+    std::vector<ggml_backend_buffer_type_t> buft_extra;
+    {
+        auto * cpu_dev = ggml_backend_dev_by_type(GGML_BACKEND_DEVICE_TYPE_CPU);
+        auto * cpu_reg = ggml_backend_dev_backend_reg(cpu_dev);
+
+        auto ggml_backend_dev_get_extra_bufts_fn = (ggml_backend_dev_get_extra_bufts_t)
+            ggml_backend_reg_get_proc_address(cpu_reg, "ggml_backend_dev_get_extra_bufts");
+
+        if (ggml_backend_dev_get_extra_bufts_fn) {
+            ggml_backend_buffer_type_t * extra_bufts = ggml_backend_dev_get_extra_bufts_fn(cpu_dev);
+            while (extra_bufts && *extra_bufts) {
+                buft_extra.emplace_back(*extra_bufts);
+                ++extra_bufts;
+            }
+        }
+    }
+
     // add tensors
     for (auto & it : ab_map) {
         const std::string & name = it.first;
@@ -263,7 +283,23 @@ static void llama_adapter_lora_init_impl(llama_model & model, const char * path_
             throw std::runtime_error("LoRA tensor '" + name + "' does not exist in base model (hint: maybe wrong base model?)");
         }
 
-        ggml_context * dev_ctx = ctx_for_buft(ggml_backend_buffer_get_type(model_tensor->buffer));
+        auto * buft = ggml_backend_buffer_get_type(model_tensor->buffer);
+
+        // do not load loras to extra buffer types (i.e. bufts for repacking) -> use the CPU in that case
+        for (auto & ex : buft_extra) {
+            if (ex == buft) {
+                LLAMA_LOG_WARN("%s: lora for '%s' cannot use buft '%s', fallback to CPU\n", __func__, model_tensor->name, ggml_backend_buft_name(buft));
+
+                auto * cpu_dev = ggml_backend_dev_by_type(GGML_BACKEND_DEVICE_TYPE_CPU);
+                buft = ggml_backend_dev_buffer_type(cpu_dev);
+
+                break;
+            }
+        }
+
+        LLAMA_LOG_DEBUG("%s: lora for '%s' -> '%s'\n", __func__, model_tensor->name, ggml_backend_buft_name(buft));
+
+        ggml_context * dev_ctx = ctx_for_buft(buft);
         // validate tensor shape
         if (is_token_embd) {
             // expect B to be non-transposed, A and B are flipped; see llm_build_inp_embd()
Repository: ggml-org/llama.cpp
Pull request: sync : ggml


Changed files:
filename: scripts/sync-ggml.last
patch: @@ -1 +1 @@
-fc21aba88324312d66f62af6a1b0683fcb2ce3b5
+660def06391b3d6c9eed9fed38d7dc025ee1b1ca
Repository: electron/electron
Pull request: build: update appveyor image to latest version

This PR updates appveyor.yml to the latest baked image, e-129.0.6616.0.

Notes: none

Changed files:
filename: appveyor-woa.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-128.0.6611.0
+image: e-129.0.6616.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: appveyor.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-128.0.6611.0
+image: e-129.0.6616.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default
Repository: huggingface/transformers
Pull request: byebye CircleCI TF jobs

# What does this PR do?

I know it's sad but it's time.


Changed files:
filename: .circleci/create_circleci_config.py
patch: @@ -357,9 +357,9 @@ def job_name(self):
     pytest_num_workers=1,
 )
 
-REGULAR_TESTS = [torch_job, tf_job, flax_job, hub_job, onnx_job, tokenization_job, processor_job, generate_job, non_model_job] # fmt: skip
-EXAMPLES_TESTS = [examples_torch_job, examples_tensorflow_job]
-PIPELINE_TESTS = [pipelines_torch_job, pipelines_tf_job]
+REGULAR_TESTS = [torch_job, flax_job, hub_job, onnx_job, tokenization_job, processor_job, generate_job, non_model_job] # fmt: skip
+EXAMPLES_TESTS = [examples_torch_job]
+PIPELINE_TESTS = [pipelines_torch_job]
 REPO_UTIL_TESTS = [repo_utils_job]
 DOC_TESTS = [doc_test_job]
 ALL_TESTS = REGULAR_TESTS + EXAMPLES_TESTS + PIPELINE_TESTS + REPO_UTIL_TESTS + DOC_TESTS + [custom_tokenizers_job] + [exotic_models_job]  # fmt: skip

filename: utils/tests_fetcher.py
patch: @@ -1154,17 +1154,14 @@ def parse_commit_message(commit_message: str) -> Dict[str, bool]:
 
 
 JOB_TO_TEST_FILE = {
-    "tests_tf": r"tests/models/.*/test_modeling_tf_.*",
     "tests_torch": r"tests/models/.*/test_modeling_(?!(?:flax_|tf_)).*",
     "tests_generate": r"tests/models/.*/test_modeling_(?!(?:flax_|tf_)).*",
     "tests_tokenization": r"tests/models/.*/test_tokenization.*",
     "tests_processors": r"tests/models/.*/test_(?!(?:modeling_|tokenization_)).*",  # takes feature extractors, image processors, processors
     "examples_torch": r"examples/pytorch/.*test_.*",
-    "examples_tensorflow": r"examples/tensorflow/.*test_.*",
     "tests_exotic_models": r"tests/models/.*(?=layoutlmv|nat|deta|udop|nougat).*",
     "tests_custom_tokenizers": r"tests/models/.*/test_tokenization_(?=bert_japanese|openai|clip).*",
     # "repo_utils": r"tests/[^models].*test.*", TODO later on we might want to do
-    "pipelines_tf": r"tests/models/.*/test_modeling_tf_.*",
     "pipelines_torch": r"tests/models/.*/test_modeling_(?!(?:flax_|tf_)).*",
     "tests_hub": r"tests/.*",
     "tests_onnx": r"tests/models/.*/test_modeling_(?:tf_|(?!flax)).*",
Repository: vercel/next.js
Pull request: test(examples): update turbopack manifest

## Summary

At #74180 and #74180, `with-styled-components-rtl` and `with-react-jss` examples were deleted.
Then I removed them from [turbopack-dev-examples-manifest.json](https://github.com/vercel/next.js/blob/canary/test/turbopack-dev-examples-manifest.json).

CC: @samcx 

Changed files:
filename: test/turbopack-dev-examples-manifest.json
patch: @@ -139,7 +139,6 @@
   "with-react-bootstrap": true,
   "with-react-ga4": true,
   "with-react-hook-form": true,
-  "with-react-jss": true,
   "with-react-md-typescript": true,
   "with-react-multi-carousel": true,
   "with-react-toolbox": true,
@@ -169,7 +168,6 @@
   "with-strict-csp": true,
   "with-stripe-typescript": true,
   "with-styled-components": true,
-  "with-styled-components-rtl": true,
   "with-styled-jsx": true,
   "with-styletron": true,
   "with-supabase": true,
Repository: ggml-org/llama.cpp
Pull request: clip: Fix llama-llava-clip-quantize-cli quantization error under CUDA backend

Link to [issue 12564](https://github.com/ggml-org/llama.cpp/issues/12564). This PR provides a possible solution, which is to move all the quantization processes to the CPU backend. Since it is not a real inference process, the performance does not seem to be so sensitive.


*Make sure to read the [contributing guidelines](https://github.com/ggml-org/llama.cpp/blob/master/CONTRIBUTING.md) before submitting a PR*


Changed files:
filename: examples/llava/clip.cpp
patch: @@ -2989,7 +2989,10 @@ bool clip_model_quantize(const char * fname_inp, const char * fname_out, const i
     assert(itype < GGML_TYPE_COUNT);
     ggml_type type = static_cast<ggml_type>(itype);
 
-    auto * ctx_clip = clip_model_load(fname_inp, 2);
+    auto * ctx_clip = clip_init(fname_inp, clip_context_params{
+        /* use_gpu */   false,
+        /* verbosity */ 2,
+    });
 
     const auto & ctx_src = ctx_clip->ctx_gguf;
     const auto & ctx_data = ctx_clip->ctx_data;