helloadhavan/github_issues huggingface dataset:
Repository: huggingface/transformers
Pull request: Quark Quantization gated repo

# What does this PR do?
Fix the use of gated repo in quark quantization


Changed files:
filename: tests/quantization/quark_integration/test_quark.py
patch: @@ -19,6 +19,7 @@
     is_torch_available,
     require_accelerate,
     require_quark,
+    require_read_token,
     require_torch_gpu,
     require_torch_multi_gpu,
     slow,
@@ -56,6 +57,7 @@ class QuarkTest(unittest.TestCase):
     EXPECTED_RELATIVE_DIFFERENCE = 1.66
     device_map = None
 
+    @require_read_token
     @classmethod
     def setUpClass(cls):
         """
Repository: ggml-org/llama.cpp
Pull request: rpc : fix cache directory initialization

Ensure that the cache directory path is only generated when caching is enabled, improving resource usage and avoiding unnecessary file system operations when caching is disabled.

#13185 

Changed files:
filename: examples/rpc/rpc-server.cpp
patch: @@ -304,8 +304,9 @@ int main(int argc, char * argv[]) {
         get_backend_memory(&free_mem, &total_mem);
     }
     const char * cache_dir = nullptr;
-    std::string cache_dir_str = fs_get_cache_directory() + "rpc/";
+    std::string cache_dir_str;
     if (params.use_cache) {
+        cache_dir_str = fs_get_cache_directory() + "rpc/";
         if (!fs_create_directory_with_parents(cache_dir_str)) {
             fprintf(stderr, "Failed to create cache directory: %s\n", cache_dir_str.c_str());
             return 1;
Repository: denoland/deno
Pull request: perf: update deno_doc

Ref https://github.com/denoland/deno_doc/pull/616

Changed files:
filename: Cargo.lock
patch: @@ -1424,9 +1424,9 @@ dependencies = [
 
 [[package]]
 name = "deno_doc"
-version = "0.142.0"
+version = "0.144.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "16293d4ab42fdb4b499bf0bdc30def02048525c59cf268f65a66c4ab1d4520dc"
+checksum = "12e151a1f29dcea4fe698123fa9693bc77574abf51a6add54d5d39cda99dd7f5"
 dependencies = [
  "ammonia",
  "anyhow",
@@ -1439,6 +1439,7 @@ dependencies = [
  "html-escape",
  "import_map",
  "indexmap",
+ "itoa",
  "lazy_static",
  "regex",
  "serde",

filename: cli/Cargo.toml
patch: @@ -67,7 +67,7 @@ deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "proposa
 deno_cache_dir = { workspace = true }
 deno_config = { version = "=0.26.1", features = ["workspace", "sync"] }
 deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] }
-deno_doc = { version = "=0.142.0", features = ["html", "syntect"] }
+deno_doc = { version = "0.144.0", features = ["html", "syntect"] }
 deno_emit = "=0.43.1"
 deno_graph = { version = "=0.80.1", features = ["tokio_executor"] }
 deno_lint = { version = "=0.60.1", features = ["docs"] }

filename: cli/tools/doc.rs
patch: @@ -178,10 +178,10 @@ pub async fn doc(
           .into_iter()
           .map(|node| deno_doc::html::DocNodeWithContext {
             origin: short_path.clone(),
-            ns_qualifiers: Rc::new(vec![]),
+            ns_qualifiers: Rc::new([]),
             kind_with_drilldown:
-              deno_doc::html::DocNodeKindWithDrilldown::Other(node.kind),
-            inner: std::sync::Arc::new(node),
+              deno_doc::html::DocNodeKindWithDrilldown::Other(node.kind()),
+            inner: Rc::new(node),
             drilldown_parent_kind: None,
             parent: None,
           })
@@ -300,7 +300,7 @@ impl deno_doc::html::HrefResolver for DocResolver {
   }
 
   fn resolve_source(&self, location: &deno_doc::Location) -> Option<String> {
-    Some(location.filename.clone())
+    Some(location.filename.to_string())
   }
 }
 
@@ -492,9 +492,9 @@ fn print_docs_to_stdout(
   doc_flags: DocFlags,
   mut doc_nodes: Vec<deno_doc::DocNode>,
 ) -> Result<(), AnyError> {
-  doc_nodes.retain(|doc_node| doc_node.kind != doc::DocNodeKind::Import);
+  doc_nodes.retain(|doc_node| doc_node.kind() != doc::DocNodeKind::Import);
   let details = if let Some(filter) = doc_flags.filter {
-    let nodes = doc::find_nodes_by_name_recursively(doc_nodes, filter.clone());
+    let nodes = doc::find_nodes_by_name_recursively(doc_nodes, &filter);
     if nodes.is_empty() {
       bail!("Node {} was not found!", filter);
     }

filename: tests/testdata/doc/lint_success_json.out
patch: @@ -1,6 +1,5 @@
 [
   {
-    "kind": "class",
     "name": "Test",
     "isDefault": false,
     "location": {
@@ -13,6 +12,7 @@
     "jsDoc": {
       "doc": "My test class."
     },
+    "kind": "class",
     "classDef": {
       "isAbstract": false,
       "constructors": [],
Repository: vercel/next.js
Pull request: Turbopack: wait for tracing to be written before exiting

### What?

We need to wait for completion of the trace writer drop before existing the program


Closes PACK-4371

Changed files:
filename: crates/napi/src/next_api/project.rs
patch: @@ -374,7 +374,9 @@ pub async fn project_new(
         let subscriber = subscriber.with(RawTraceLayer::new(trace_writer));
 
         exit.on_exit(async move {
-            tokio::task::spawn_blocking(move || drop(trace_writer_guard));
+            tokio::task::spawn_blocking(move || drop(trace_writer_guard))
+                .await
+                .unwrap();
         });
 
         let trace_server = std::env::var("NEXT_TURBOPACK_TRACE_SERVER").ok();
Repository: huggingface/transformers
Pull request: Fix new failure reports not including anything other than `tests/models/`

# What does this PR do?

Fix new failure reports not including anything other than `tests/models/`

Changed files:
filename: utils/notification_service.py
patch: @@ -544,8 +544,11 @@ def payload(self) -> str:
                 if "https://github.com/huggingface/transformers/actions/runs" in line:
                     pattern = r"<(https://github.com/huggingface/transformers/actions/runs/.+?/job/.+?)\|(.+?)>"
                     items = re.findall(pattern, line)
-                elif "tests/models/" in line:
-                    model = line.split("/")[2]
+                elif "tests/" in line:
+                    if "tests/models/" in line:
+                        model = line.split("/")[2]
+                    else:
+                        model = line.split("/")[1]
                     if model not in new_failed_tests:
                         new_failed_tests[model] = {"single-gpu": [], "multi-gpu": []}
                     for url, device in items:
Repository: huggingface/transformers
Pull request: use `rms_norm_eps` for the L2Norm for Llama4

# What does this PR do?

It seems like this changes throughout the port, updating and will test!

Changed files:
filename: src/transformers/models/llama4/modeling_llama4.py
patch: @@ -110,7 +110,7 @@ def forward(self, x):
 
 
 class Llama4TextL2Norm(torch.nn.Module):
-    def __init__(self, dim: int = None, eps: float = 1e-6):
+    def __init__(self, eps: float = 1e-6):
         super().__init__()
         self.eps = eps
 
@@ -301,7 +301,7 @@ def __init__(self, config: Llama4TextConfig, layer_idx):
             config.num_attention_heads * self.head_dim, config.hidden_size, bias=config.attention_bias
         )
         if self.config.use_qk_norm and self.use_rope:
-            self.qk_norm = Llama4TextL2Norm()
+            self.qk_norm = Llama4TextL2Norm(config.rms_norm_eps)
 
     def forward(
         self,
Repository: nodejs/node
Pull request: test: update test-debugger-scripts to use await/async

<!--
Before submitting a pull request, please read
https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md.

Commit message formatting guidelines:
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.

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.
-->
Signed-off-by: MeenaPriya Meenakshisundaram <mmeenapriya@gmail.com>

Changed files:
filename: test/sequential/test-debugger-scripts.js
patch: @@ -13,15 +13,11 @@ const assert = require('assert');
   const script = fixtures.path('debugger', 'three-lines.js');
   const cli = startCLI([script]);
 
-  function onFatal(error) {
-    cli.quit();
-    throw error;
-  }
-
-  return cli.waitForInitialBreak()
-    .then(() => cli.waitForPrompt())
-    .then(() => cli.command('scripts'))
-    .then(() => {
+  (async () => {
+    try {
+      await cli.waitForInitialBreak();
+      await cli.waitForPrompt();
+      await cli.command('scripts');
       assert.match(
         cli.output,
         /^\* \d+: \S+debugger(?:\/|\\)three-lines\.js/m,
@@ -30,9 +26,7 @@ const assert = require('assert');
         cli.output,
         /\d+: node:internal\/buffer/,
         'omits node-internal scripts');
-    })
-    .then(() => cli.command('scripts(true)'))
-    .then(() => {
+      await cli.command('scripts(true)');
       assert.match(
         cli.output,
         /\* \d+: \S+debugger(?:\/|\\)three-lines\.js/,
@@ -41,7 +35,8 @@ const assert = require('assert');
         cli.output,
         /\d+: node:internal\/buffer/,
         'includes node-internal scripts');
-    })
-    .then(() => cli.quit())
-    .then(null, onFatal);
+    } finally {
+      await cli.quit();
+    }
+  })().then(common.mustCall());
 }
Repository: facebook/react
Pull request: DevTools: Log version in internal logger

## Summary

Log the version in our internal logger.

## How did you test this change?

- yarn flow
- yarn test-build-devtools
- version is logged correctly

![image](https://user-images.githubusercontent.com/1271509/143333631-09672c33-c290-4548-ae7c-31796fb1a801.png)



Changed files:
filename: packages/react-devtools-shared/src/registerDevToolsEventLogger.js
patch: @@ -25,6 +25,7 @@ export function registerDevToolsEventLogger(surface: string) {
             event: event,
             context: {
               surface,
+              version: process.env.DEVTOOLS_VERSION,
             },
           },
           '*',
Repository: vercel/next.js
Pull request: Turbopack: Do multiple unit test runs

### What?

This allows to test caching more aggressively

Closes PACK-4378

Changed files:
filename: turbopack/crates/turbo-tasks-testing/src/run.rs
patch: @@ -109,22 +109,26 @@ where
     let start = std::time::Instant::now();
     let first = fut(tt.clone()).await?;
     println!("Run #1 took {:?}", start.elapsed());
-    println!("Run #2 (with memory cache, same TurboTasks instance)");
-    let start = std::time::Instant::now();
-    let second = fut(tt.clone()).await?;
-    println!("Run #2 took {:?}", start.elapsed());
-    assert_eq!(first, second);
-    let start = std::time::Instant::now();
-    tt.stop_and_wait().await;
-    println!("Stopping TurboTasks took {:?}", start.elapsed());
-    let tt = registration.create_turbo_tasks(&name, false);
-    println!("Run #3 (with persistent cache if available, new TurboTasks instance)");
-    let start = std::time::Instant::now();
-    let third = fut(tt.clone()).await?;
-    println!("Run #3 took {:?}", start.elapsed());
+    for i in 2..10 {
+        println!("Run #{i} (with memory cache, same TurboTasks instance)");
+        let start = std::time::Instant::now();
+        let second = fut(tt.clone()).await?;
+        println!("Run #{i} took {:?}", start.elapsed());
+        assert_eq!(first, second);
+    }
     let start = std::time::Instant::now();
     tt.stop_and_wait().await;
     println!("Stopping TurboTasks took {:?}", start.elapsed());
-    assert_eq!(first, third);
+    for i in 10..20 {
+        let tt = registration.create_turbo_tasks(&name, false);
+        println!("Run #{i} (with persistent cache if available, new TurboTasks instance)");
+        let start = std::time::Instant::now();
+        let third = fut(tt.clone()).await?;
+        println!("Run #{i} took {:?}", start.elapsed());
+        let start = std::time::Instant::now();
+        tt.stop_and_wait().await;
+        println!("Stopping TurboTasks took {:?}", start.elapsed());
+        assert_eq!(first, third);
+    }
     Ok(())
 }
Repository: electron/electron
Pull request: ci: remove blocked/need-info label on user comment

#### Description of Change

<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Contributors guide: https://github.com/electron/electron/blob/main/CONTRIBUTING.md
-->

Improves an oversight where issues labeled https://github.com/electron/electron/labels/blocked%2Fneed-info%20%E2%9D%8C aren't being updated on user comment.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd

#### Release Notes

Notes: none <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->


Changed files:
filename: .github/workflows/issue-commented.yml
patch: @@ -9,8 +9,8 @@ permissions: {}
 
 jobs:
   issue-commented:
-    name: Remove blocked/need-repro on comment
-    if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && github.event.comment.user.type != 'Bot' }}
+    name: Remove blocked/{need-info,need-repro} on comment
+    if: ${{ (contains(github.event.issue.labels.*.name, 'blocked/need-repro') || contains(github.event.issue.labels.*.name, 'blocked/need-info ❌')) && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && github.event.comment.user.type != 'Bot' }}
     runs-on: ubuntu-latest
     steps:
       - name: Generate GitHub App token
@@ -23,4 +23,4 @@ jobs:
           GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
           ISSUE_URL: ${{ github.event.issue.html_url }}
         run: |
-          gh issue edit $ISSUE_URL --remove-label 'blocked/need-repro'
+          gh issue edit $ISSUE_URL --remove-label 'blocked/need-repro','blocked/need-info ❌'
Repository: ggml-org/llama.cpp
Pull request: sampling : when top-k <= 0 -> noop

fix #13171 

When `top_k <= 0` the sampler does nothing.

Changed files:
filename: include/llama.h
patch: @@ -1232,6 +1232,7 @@ extern "C" {
         "will be removed in the future (see https://github.com/ggml-org/llama.cpp/pull/9896#discussion_r1800920915)");
 
     /// @details Top-K sampling described in academic paper "The Curious Case of Neural Text Degeneration" https://arxiv.org/abs/1904.09751
+    /// Setting k <= 0 makes this a noop
     LLAMA_API struct llama_sampler * llama_sampler_init_top_k      (int32_t k);
 
     /// @details Nucleus sampling described in academic paper "The Curious Case of Neural Text Degeneration" https://arxiv.org/abs/1904.09751

filename: src/llama-sampling.cpp
patch: @@ -232,7 +232,7 @@ static void llama_sampler_top_k_impl(llama_token_data_array * cur_p, int32_t k)
     // }
 
     if (k <= 0) {
-        k = cur_p->size;
+        return;
     }
 
     k = std::min(k, (int) cur_p->size);
@@ -298,6 +298,7 @@ static void llama_sampler_top_k_impl(llama_token_data_array * cur_p, int32_t k)
         }
         cur_p->sorted = true;
     }
+
     cur_p->size = k;
 }
Repository: nodejs/node
Pull request: doc,test: improvements and cleanup for assert.snapshot()

General improvements and cleanup of the docs and tests recently added for `assert.snapshot()`.

Side note: it feels pretty unfortunate that `assert.snapshot()` returns a `Promise`, but that is not changed here.

Changed files:
filename: doc/node.1
patch: @@ -486,6 +486,9 @@ Track heap object allocations for heap snapshots.
 .It Fl -unhandled-rejections=mode
 Define the behavior for unhandled rejections. Can be one of `strict` (raise an error), `warn` (enforce warnings) or `none` (silence warnings).
 .
+.It Fl -update-assert-snapshot
+Updates snapshot files used by `assert.snapshot()`.
+.
 .It Fl -use-bundled-ca , Fl -use-openssl-ca
 Use bundled Mozilla CA store as supplied by current Node.js version or use OpenSSL's default CA store.
 The default store is selectable at build-time.
Repository: vercel/next.js
Pull request: Prevent typescript errors in IDE for newly generated tests

When generating a new test with `pnpm new-test`, the IDE will show the following error when opening the generated `page.tsx` or `layout.tsx` files:

```sh
'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.ts (2686)
```

This is because by default, the generated test app is covered by the root `tsconfig.json`, containing `{"jsx": "react-jsx"}` which expects there to be a `React` import that the template files don't have.

When first running `pnpm next dev` or `pnpm next build`, a local `tsconfig.json` file is generated for the test app. This config contains `{"jsx": "preserve"}`, which fixes the initial errors.

To avoid this step, and prevent the initial compiler errors, we can just copy the `tsconfig.json` as well as the `next-env.d.ts` from the CNA template files into the new test app. (Those two files are git-ignored, by the way.)

Changed files:
filename: turbo/generators/config.ts
patch: @@ -5,6 +5,7 @@ import * as helpers from './helpers'
 interface TestResponse {
   appDir: string
   type: 'e2e' | 'production' | 'development' | 'unit'
+  name: string
 }
 
 interface ErrorResponse {
@@ -61,25 +62,44 @@ export default function generator(plop: NodePlopAPI): void {
       },
     ],
     actions: function (answers) {
-      const { appDir, type } = answers as TestResponse
-      const testRoot = path.join(plop.getDestBasePath(), 'test')
-
+      const { appDir, type, name } = answers as TestResponse
+      const basePath = plop.getDestBasePath()
+      const testRoot = path.join(basePath, 'test')
       const appDirPath = appDir ? 'app-dir/' : ''
-      let templatePath = path.join(
+
+      const templatePath = path.join(
         testRoot,
         type === 'unit' ? 'unit' : 'e2e',
         appDirPath,
         'test-template'
       )
-      let targetPath = path.join(testRoot, type, appDirPath)
+
+      const targetPath = path.join(testRoot, type, appDirPath)
+
+      const cnaTemplatePath = path.join(
+        basePath,
+        'packages/create-next-app/templates',
+        appDir ? 'app-empty' : 'default-empty',
+        'ts'
+      )
 
       return [
         {
           type: 'addMany',
-          templateFiles: `${templatePath}/**/*`,
+          templateFiles: path.join(templatePath, '**/*'),
           base: templatePath,
           destination: targetPath,
         },
+        {
+          type: 'add',
+          templateFile: path.join(cnaTemplatePath, 'tsconfig.json'),
+          path: path.join(targetPath, name, 'tsconfig.json'),
+        },
+        {
+          type: 'add',
+          templateFile: path.join(cnaTemplatePath, 'next-env.d.ts'),
+          path: path.join(targetPath, name, 'next-env.d.ts'),
+        },
       ]
     },
   })
Repository: ggml-org/llama.cpp
Pull request: llama : set qwen3 model type sizes

Set all the currently released Qwen3 model type sizes.

Changed files:
filename: src/llama-model.cpp
patch: @@ -92,6 +92,10 @@ const char * llm_type_name(llm_type type) {
         case LLM_TYPE_290B:          return "290B";
         case LLM_TYPE_17B_16E:       return "17Bx16E (Scout)";
         case LLM_TYPE_17B_128E:      return "17Bx128E (Maverick)";
+        case LLM_TYPE_0_6B:          return "0.6B";
+        case LLM_TYPE_1_7B:          return "1.7B";
+        case LLM_TYPE_30B_A3B:       return "30B.A3B";
+        case LLM_TYPE_235B_A22B:     return "235B.A22B";
         default:                     return "?B";
     }
 }
@@ -793,6 +797,10 @@ void llama_model::load_hparams(llama_model_loader & ml) {
             {
                 ml.get_key(LLM_KV_ATTENTION_LAYERNORM_RMS_EPS, hparams.f_norm_rms_eps);
                 switch (hparams.n_layer) {
+                    case 28: type = hparams.n_embd == 1024 ? LLM_TYPE_0_6B : LLM_TYPE_1_7B; break;
+                    case 36: type = hparams.n_embd == 2560 ? LLM_TYPE_4B : LLM_TYPE_8B; break;
+                    case 40: type = LLM_TYPE_14B; break;
+                    case 64: type = LLM_TYPE_32B; break;
                     default: type = LLM_TYPE_UNKNOWN;
                 }
             } break;
@@ -802,6 +810,8 @@ void llama_model::load_hparams(llama_model_loader & ml) {
 
                 ml.get_key(LLM_KV_ATTENTION_LAYERNORM_RMS_EPS, hparams.f_norm_rms_eps);
                 switch (hparams.n_layer) {
+                    case 48: type = LLM_TYPE_30B_A3B; break;
+                    case 94: type = LLM_TYPE_235B_A22B; break;
                     default: type = LLM_TYPE_UNKNOWN;
                 }
             } break;

filename: src/llama-model.h
patch: @@ -88,6 +88,10 @@ enum llm_type {
     LLM_TYPE_290B,
     LLM_TYPE_17B_16E, // llama4 Scout
     LLM_TYPE_17B_128E, // llama4 Maverick
+    LLM_TYPE_0_6B,
+    LLM_TYPE_1_7B,
+    LLM_TYPE_30B_A3B,
+    LLM_TYPE_235B_A22B,
 };
 
 struct llama_layer_posnet {