helloadhavan/github_issues huggingface dataset:
Repository: denoland/deno
Pull request: feat: enable pointer compression via deno_core bump

v8 12.6 w/pointer compression enabled.

Closes https://github.com/denoland/deno/issues/18935

Changed files:
filename: Cargo.lock
patch: @@ -1303,9 +1303,9 @@ dependencies = [
 
 [[package]]
 name = "deno_core"
-version = "0.280.0"
+version = "0.282.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12d26f2d3e243bbbdd0851ab542b20ec48ac1fcf6c64ab06e81133da3113ebdd"
+checksum = "cde984155f9ec0986cb2b8e444ad675822968c5042ded50e32647f907eefd4b4"
 dependencies = [
  "anyhow",
  "bincode",
@@ -1753,9 +1753,9 @@ dependencies = [
 
 [[package]]
 name = "deno_ops"
-version = "0.156.0"
+version = "0.158.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8237b272db1a6cb941b8a5a63ba63539004a8263e8b0230a11136d76eea273f9"
+checksum = "f24983ce064294d3046f4fce5c53de4e6e08488c1d53f2387917f63f43cdfda8"
 dependencies = [
  "proc-macro-rules",
  "proc-macro2",
@@ -5751,9 +5751,9 @@ dependencies = [
 
 [[package]]
 name = "serde_v8"
-version = "0.189.0"
+version = "0.191.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "893c995255d6fbf55c33166b651fd037c4e3cc7864bf82213ea18d0ec94ed165"
+checksum = "af3b1eaa93eacbbfc08f3fc18ff7418262781ebbeca3282e36a7f26d9c679b50"
 dependencies = [
  "num-bigint",
  "serde",
@@ -7291,9 +7291,9 @@ dependencies = [
 
 [[package]]
 name = "v8"
-version = "0.91.1"
+version = "0.92.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69026e2e8af55a4d2f20c0c17f690e8b31472bf76ab75b1205d3a0fab60c8f84"
+checksum = "234589219e37a7496cbce73d971586db8369871be2420372c45a579b6a919b15"
 dependencies = [
  "bitflags 2.5.0",
  "fslock",

filename: Cargo.toml
patch: @@ -44,7 +44,7 @@ repository = "https://github.com/denoland/deno"
 
 [workspace.dependencies]
 deno_ast = { version = "=0.38.2", features = ["transpiling"] }
-deno_core = { version = "0.280.0" }
+deno_core = { version = "0.282.0" }
 
 deno_bench_util = { version = "0.147.0", path = "./bench_util" }
 deno_lockfile = "0.19.0"

filename: runtime/js/99_main.js
patch: @@ -98,8 +98,6 @@ import {
   SymbolMetadata,
 } from "ext:deno_web/00_infra.js";
 // deno-lint-ignore prefer-primordials
-if (Symbol.dispose) throw "V8 supports Symbol.dispose now, no need to shim it!";
-// deno-lint-ignore prefer-primordials
 if (Symbol.asyncDispose) {
   throw "V8 supports Symbol.asyncDispose now, no need to shim it!";
 }

filename: tests/testdata/run/heapstats.js.out
patch: @@ -1,2 +1,2 @@
-Allocated: 8MB
-Freed: -8MB
+Allocated: 4MB
+Freed: -4MB
Repository: facebook/react
Pull request: Cache local reference to global Promise

# Overview

This will help prevent a polyfill overriding it later.

Changed files:
filename: packages/react-dom/src/client/ReactDOMHostConfig.js
patch: @@ -392,6 +392,7 @@ export const scheduleTimeout: any =
 export const cancelTimeout: any =
   typeof clearTimeout === 'function' ? clearTimeout : (undefined: any);
 export const noTimeout = -1;
+const localPromise = Promise;
 
 // -------------------
 //     Microtasks
@@ -400,9 +401,10 @@ export const supportsMicrotasks = true;
 export const scheduleMicrotask: any =
   typeof queueMicrotask === 'function'
     ? queueMicrotask
-    : typeof Promise !== 'undefined'
+    : typeof localPromise !== 'undefined'
     ? callback =>
-        Promise.resolve(null)
+        localPromise
+          .resolve(null)
           .then(callback)
           .catch(handleErrorInNextTick)
     : scheduleTimeout; // TODO: Determine the best fallback here.
Repository: nodejs/node
Pull request: tools: make commit-queue check blocked label

Having prs not landing if they are label as `blocked` would be nice

Changed files:
filename: .github/workflows/commit-queue.yml
patch: @@ -37,6 +37,7 @@ jobs:
                   --repo ${{ github.repository }} \
                   --base ${{ github.ref_name }} \
                   --label 'commit-queue' \
+                  --no-label 'blocked' \
                   --json 'number' \
                   --search "created:<=$(date --date="2 days ago"  +"%Y-%m-%dT%H:%M:%S%z")" \
                   -t '{{ range . }}{{ .number }} {{ end }}' \
@@ -46,6 +47,7 @@ jobs:
                   --base ${{ github.ref_name }} \
                   --label 'commit-queue' \
                   --label 'fast-track' \
+                  --no-label 'blocked' \
                   --json 'number' \
                   -t '{{ range . }}{{ .number }} {{ end }}' \
                   --limit 100)
Repository: huggingface/transformers
Pull request: Update after #36962

# What does this PR do?

Some files on main were not updated in my previous PR #36962 and cause failure after it was merge to main

Changed files:
filename: src/transformers/cache_utils.py
patch: @@ -631,8 +631,10 @@ def __init__(self) -> None:
     def prefetch_layer(self, layer_idx: int):
         "Starts prefetching the next layer cache"
         if layer_idx < len(self):
-            with self.prefetch_stream if is_torch_greater_or_equal("2.7", accept_dev=True) else torch.cuda.stream(
+            with (
                 self.prefetch_stream
+                if is_torch_greater_or_equal("2.7", accept_dev=True)
+                else torch.cuda.stream(self.prefetch_stream)
             ):
                 # Prefetch next layer tensors to GPU
                 device = self.original_device[layer_idx]

filename: src/transformers/models/qwen2_audio/processing_qwen2_audio.py
patch: @@ -129,7 +129,7 @@ def __call__(
         if audio is not None:
             # ensure we have as much audios as audio tokens
             num_audio_tokens = sum(sample.count(self.audio_token) for sample in text)
-            num_audios = 1 if type(audio) == np.ndarray else len(audio)
+            num_audios = 1 if type(audio) is np.ndarray else len(audio)
             if num_audio_tokens != num_audios:
                 raise ValueError(
                     f"Found {num_audio_tokens} {self.audio_token} token{'s' if num_audio_tokens > 1 else ''} in provided text but received {num_audios} audio{'s' if num_audios > 1 else ''}"
Repository: vercel/next.js
Pull request: [dev-overlay] Fix ref warning when Pages Router with React 18 is used

Closes https://linear.app/vercel/issue/NDX-1001/

Error is only surfacing in tests with https://github.com/vercel/next.js/pull/77326

Changed files:
filename: packages/next/src/client/components/react-dev-overlay/ui/components/fader/index.tsx
patch: @@ -1,21 +1,22 @@
-import type { CSSProperties } from 'react'
+import { type CSSProperties, type Ref, forwardRef } from 'react'
 
-export function Fader({
-  stop,
-  blur,
-  side,
-  style,
-  height,
-  ref,
-}: {
-  stop?: string
-  blur?: string
-  height?: number
-  side: 'top' | 'bottom' | 'left' | 'right'
-  className?: string
-  style?: CSSProperties
-  ref?: React.Ref<HTMLDivElement>
-}) {
+export const Fader = forwardRef(function Fader(
+  {
+    stop,
+    blur,
+    side,
+    style,
+    height,
+  }: {
+    stop?: string
+    blur?: string
+    height?: number
+    side: 'top' | 'bottom' | 'left' | 'right'
+    className?: string
+    style?: CSSProperties
+  },
+  ref: Ref<HTMLDivElement>
+) {
   return (
     <div
       ref={ref}
@@ -33,7 +34,7 @@ export function Fader({
       }
     />
   )
-}
+})
 
 export const FADER_STYLES = `
   .nextjs-scroll-fader {
Repository: huggingface/transformers
Pull request: Fix cuda index issue in cache allocator

# What does this PR do?

This PR fixes cache allocator function when querying the max-memory available on cuda devices. Currently, it doesn't work for torch <= 2.4.1 due to `torch.cuda.mem_get_info` raising an issue if we pass a device without an index. 


Traceback returned for a loading a model like gpt2 with device_map="cuda"

```python 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marc/transformers/src/transformers/models/auto/auto_factory.py", line 573, in from_pretrained
    return model_class.from_pretrained(
  File "/home/marc/transformers/src/transformers/modeling_utils.py", line 272, in _wrapper
    return func(*args, **kwargs)
  File "/home/marc/transformers/src/transformers/modeling_utils.py", line 4474, in from_pretrained
    ) = cls._load_pretrained_model(
  File "/home/marc/transformers/src/transformers/modeling_utils.py", line 4859, in _load_pretrained_model
    caching_allocator_warmup(model_to_load, expanded_device_map)
  File "/home/marc/transformers/src/transformers/modeling_utils.py", line 5870, in caching_allocator_warmup
    index = device.index if device.index is not None else 0
  File "/home/marc/anaconda3/envs/llama-export/lib/python3.10/site-packages/torch/cuda/memory.py", line 684, in mem_get_info
    device = _get_device_index(device)
  File "/home/marc/anaconda3/envs/llama-export/lib/python3.10/site-packages/torch/cuda/_utils.py", line 38, in _get_device_index
    return _torch_get_device_index(device, optional, allow_cpu)
  File "/home/marc/anaconda3/envs/llama-export/lib/python3.10/site-packages/torch/_utils.py", line 803, in _get_device_index
    raise ValueError(
ValueError: Expected a torch.device with a specified index or an integer, but got:cuda

```

cc @winglian 

Changed files:
filename: src/transformers/modeling_utils.py
patch: @@ -5870,7 +5870,8 @@ def caching_allocator_warmup(model: PreTrainedModel, expanded_device_map: Dict):
     # This will kick off the caching allocator to avoid having to Malloc afterwards
     for device, byte_count in total_byte_count.items():
         if device.type == "cuda":
-            device_memory = torch.cuda.mem_get_info(device)[0]
+            index = device.index if device.index is not None else torch.cuda.current_device()
+            device_memory = torch.cuda.mem_get_info(index)[0]
             # Allow up to 95% of max device memory
             byte_count = min(byte_count, int(0.95 * device_memory))
         # Allocate memory
Repository: ggml-org/llama.cpp
Pull request: convert: fix Mistral3/Gemma3 model hparams init

Fixes #12551

Changed files:
filename: convert_hf_to_gguf.py
patch: @@ -1752,7 +1752,7 @@ class Mistral3Model(LlamaModel):
 
     # we need to merge the text_config into the root level of hparams
     def __init__(self, *args, **kwargs):
-        hparams = Model.load_hparams(kwargs["dir_model"])
+        hparams = kwargs["hparams"] if "hparams" in kwargs else Model.load_hparams(args[0])
         if "text_config" in hparams:
             hparams = {**hparams, **hparams["text_config"]}
             kwargs["hparams"] = hparams
@@ -3385,7 +3385,7 @@ class Gemma3Model(Model):
 
     # we need to merge the text_config into the root level of hparams
     def __init__(self, *args, **kwargs):
-        hparams = Model.load_hparams(kwargs["dir_model"])
+        hparams = kwargs["hparams"] if "hparams" in kwargs else Model.load_hparams(args[0])
         if "text_config" in hparams:
             hparams = {**hparams, **hparams["text_config"]}
             kwargs["hparams"] = hparams
@@ -5358,7 +5358,7 @@ def main() -> None:
             logger.error(f"Model {model_architecture} is not supported")
             sys.exit(1)
 
-        model_instance = model_class(dir_model=dir_model, ftype=output_type, fname_out=fname_out,
+        model_instance = model_class(dir_model, output_type, fname_out,
                                      is_big_endian=args.bigendian, use_temp_file=args.use_temp_file,
                                      eager=args.no_lazy,
                                      metadata_override=args.metadata, model_name=args.model_name,
Repository: ggml-org/llama.cpp
Pull request: doc: [MUSA] minor changes

*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: ci/README.md
patch: @@ -60,7 +60,7 @@ docker run --privileged -it \
 Inside the container, execute the following commands:
 
 ```bash
-apt update -y && apt install -y cmake git python3.10-venv wget
+apt update -y && apt install -y bc cmake git python3.10-venv time unzip wget
 git config --global --add safe.directory /ws
 GG_BUILD_MUSA=1 bash ./ci/run.sh /ci-results /ci-cache
 ```

filename: docs/build.md
patch: @@ -218,6 +218,7 @@ By default, all supported compute capabilities are enabled. To customize this be
 
 ```bash
 cmake -B build -DGGML_MUSA=ON -DMUSA_ARCHITECTURES="21"
+cmake --build build --config Release
 ```
 
 This configuration enables only compute capability `2.1` (MTT S80) during compilation, which can help reduce compilation time.
Repository: vercel/next.js
Pull request: Add Josh to Turbopack team for created-by label

<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the PR.
- Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See: https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. (A discussion must be opened, see https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added (https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to understand the PR)
- When linking to a Slack thread, you might want to share details of the conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->


Closes PACK-4249

Changed files:
filename: .github/labeler.json
patch: @@ -49,6 +49,7 @@
     ],
     "created-by: Turbopack team": [
       { "type": "user", "pattern": "bgw" },
+      { "type": "user", "pattern": "Cy-Tek" },
       { "type": "user", "pattern": "kdy1" },
       { "type": "user", "pattern": "mischnic" },
       { "type": "user", "pattern": "padmaia" },
Repository: huggingface/transformers
Pull request: Fixing _pre_quantization_dtype when torch_dtype is None

# What does this PR do?

Sets `_pre_quantization_dtype` to the default dtype (`float32`) when `torch_dtype` is set to None. It was causing the `casting_dtype` to be None for `bitnet` for example


Changed files:
filename: src/transformers/modeling_utils.py
patch: @@ -4454,7 +4454,7 @@ def from_pretrained(
             # once the weights have been quantized
             # Note that once you have loaded a quantized model, you can't change its dtype so this will
             # remain a single source of truth
-            config._pre_quantization_dtype = torch_dtype
+            config._pre_quantization_dtype = torch_dtype if torch_dtype is not None else torch.get_default_dtype()
 
         # Prepare the full device map
         if device_map is not None:
Repository: nodejs/node
Pull request: test: improve test coverage for child process message sending

This patch will include this uncovered fraction of code: https://app.codecov.io/gh/nodejs/node/blob/main/lib%2Finternal%2Fchild_process.js#L807

Changed files:
filename: test/parallel/test-child-process-send-type-error.js
patch: @@ -4,10 +4,10 @@ const common = require('../common');
 const assert = require('assert');
 const cp = require('child_process');
 
-function fail(proc, args) {
+function fail(proc, args, code = 'ERR_INVALID_ARG_TYPE') {
   assert.throws(() => {
     proc.send.apply(proc, args);
-  }, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' });
+  }, { code, name: 'TypeError' });
 }
 
 let target = process;
@@ -25,5 +25,6 @@ fail(target, ['msg', null, '']);
 fail(target, ['msg', null, 'foo']);
 fail(target, ['msg', null, 0]);
 fail(target, ['msg', null, NaN]);
+fail(target, ['msg', 'meow', undefined], 'ERR_INVALID_HANDLE_TYPE');
 fail(target, ['msg', null, 1]);
 fail(target, ['msg', null, null, common.mustNotCall()]);
Repository: facebook/react
Pull request: [Fabric] Add `flex: 1` to Offscreen view container

Without this style property, the layout of the children is messed up.

The goal is for the container view to have no layout at all. It should be a completely transparent wrapper, except for when we set `display: none` to hide its contents. On the web, the equivalent (at least in the spec) is `display: contents`.

After some initial testing, this seems to be close enough to the desired behavior that we can ship it. We'll try rolling it out behind a flag.

Changed files:
filename: packages/react-native-renderer/src/ReactFabricHostConfig.js
patch: @@ -453,6 +453,9 @@ export function getOffscreenContainerProps(
   } else {
     return {
       children,
+      style: {
+        flex: 1,
+      },
     };
   }
 }
Repository: denoland/deno
Pull request: fix(lsp): Fix display of JSDoc named examples

We were wrapping the display string in an unnecessary pair of triple backticks, breaking highlighting

Before:
![Screenshot 2024-05-21 at 12 16 12 PM](https://github.com/denoland/deno/assets/17734409/1cf5a3ce-56dd-443d-9d1a-bd33625ff1f2)

After:
![Screenshot 2024-05-21 at 12 16 36 PM](https://github.com/denoland/deno/assets/17734409/646c4c48-9b5a-4326-bb95-b1374627d969)


Changed files:
filename: cli/lsp/tsc.rs
patch: @@ -93,7 +93,7 @@ static BRACKET_ACCESSOR_RE: Lazy<Regex> =
   lazy_regex!(r#"^\[['"](.+)[\['"]\]$"#);
 static CAPTION_RE: Lazy<Regex> =
   lazy_regex!(r"<caption>(.*?)</caption>\s*\r?\n((?:\s|\S)*)");
-static CODEBLOCK_RE: Lazy<Regex> = lazy_regex!(r"^\s*[~`]{3}");
+static CODEBLOCK_RE: Lazy<Regex> = lazy_regex!(r"^\s*[~`]{3}"m);
 static EMAIL_MATCH_RE: Lazy<Regex> = lazy_regex!(r"(.+)\s<([-.\w]+@[-.\w]+)>");
 static HTTP_RE: Lazy<Regex> = lazy_regex!(r#"(?i)^https?:"#);
 static JSDOC_LINKS_RE: Lazy<Regex> = lazy_regex!(

filename: tests/integration/lsp_tests.rs
patch: @@ -12979,3 +12979,55 @@ fn lsp_semantic_token_caching() {
 
   assert_eq!(res, res_cached);
 }
+
+#[test]
+fn lsp_jsdoc_named_example() {
+  let context = TestContextBuilder::new().use_temp_cwd().build();
+  let temp_dir = context.temp_dir().path();
+  let mut client = context
+    .new_lsp_command()
+    .set_root_dir(temp_dir.clone())
+    .build();
+  client.initialize_default();
+
+  let main = source_file(
+    temp_dir.join("main.ts"),
+    r#"
+    /**
+     * @example Example1
+     * ```ts
+     * foo();
+     * ```
+     */
+    export function foo(): number {
+      return 1;
+    }
+    "#,
+  );
+
+  let diagnostics = client.did_open_file(&main);
+  assert_eq!(diagnostics.all().len(), 0);
+
+  let hover = client.write_request(
+    "textDocument/hover",
+    json!({
+      "textDocument": main.identifier(),
+      "position": main.range_of_nth(1, "foo").start,
+    }),
+  );
+
+  assert_json_subset(
+    hover,
+    json!({
+      "contents": [
+        {
+          "language": "typescript",
+          "value": "function foo(): number"
+        },
+        "",
+        // The example name `Example1` should not be enclosed in backticks
+        "\n\n*@example*  \nExample1\n```ts\nfoo();\n```"
+      ]
+    }),
+  );
+}
Repository: huggingface/transformers
Pull request: Disallow Offload to disk for gguf files

# What does this PR do?

Disallow offload to disk for gguf files. It was introduced in this pr https://github.com/huggingface/transformers/pull/35628. 
We can't have offload to disk in the case of gguf files because we need to modify the state_dict to be compatible with transformers.



Changed files:
filename: src/transformers/modeling_utils.py
patch: @@ -4327,6 +4327,12 @@ def from_pretrained(
                 "You cannot combine Quantization and loading a model from a GGUF file, try again by making sure you did not passed a `quantization_config` or that you did not load a quantized model from the Hub."
             )
 
+        if gguf_file and device_map is not None and "disk" in device_map.values():
+            raise RuntimeError(
+                "One or more modules is configured to be mapped to disk. Disk offload is not supported for models "
+                "loaded from GGUF files."
+            )
+
         checkpoint_files, sharded_metadata = _get_resolved_checkpoint_files(
             pretrained_model_name_or_path=pretrained_model_name_or_path,
             subfolder=subfolder,
Repository: ggml-org/llama.cpp
Pull request: SYCL: disable Q4_0 reorder optimization by default

Disable reorder optimization for Q4_0 tensors(commit 08d5986290cc42d2c52739e046642b8252f97e4b) for now as it is currently seems to be broken.

It should be re-enabled once the kernels are fixed.




Changed files:
filename: ggml/src/ggml-sycl/ggml-sycl.cpp
patch: @@ -191,7 +191,7 @@ static void ggml_check_sycl() try {
 
     if (!initialized) {
         g_ggml_sycl_debug = get_sycl_env("GGML_SYCL_DEBUG", 0);
-        g_ggml_sycl_disable_optimize= get_sycl_env("GGML_SYCL_DISABLE_OPT", 0);
+        g_ggml_sycl_disable_optimize= get_sycl_env("GGML_SYCL_DISABLE_OPT", 1);
         g_ggml_sycl_disable_graph = get_sycl_env("GGML_SYCL_DISABLE_GRAPH", 1);
         GGML_SYCL_DEBUG("[SYCL] call ggml_check_sycl\n");
         GGML_LOG_INFO("Running with Environment Variables:\n");