helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: doc: fix typo of built-in module specifier in worker_threads

node:: -> node:

<!--
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/worker_threads.md
patch: @@ -1990,10 +1990,10 @@ worker.on('online', async () => {
 `await using` example.
 
 ```cjs
-const { Worker } = require('node::worker_threads');
+const { Worker } = require('node:worker_threads');
 
 const w = new Worker(`
-  const { parentPort } = require('worker_threads');
+  const { parentPort } = require('node:worker_threads');
   parentPort.on('message', () => {});
   `, { eval: true });
 
@@ -2033,10 +2033,10 @@ worker.on('online', async () => {
 `await using` example.
 
 ```cjs
-const { Worker } = require('node::worker_threads');
+const { Worker } = require('node:worker_threads');
 
 const w = new Worker(`
-  const { parentPort } = require('worker_threads');
+  const { parentPort } = require('node:worker_threads');
   parentPort.on('message', () => {});
   `, { eval: true });
Repository: ollama/ollama
Pull request: API PS Documentation


Changed files:
filename: docs/api.md
patch: @@ -12,6 +12,7 @@
 - [Pull a Model](#pull-a-model)
 - [Push a Model](#push-a-model)
 - [Generate Embeddings](#generate-embeddings)
+- [List Running Models](#list-running-models)
 
 ## Conventions
 
@@ -1035,3 +1036,48 @@ curl http://localhost:11434/api/embeddings -d '{
   ]
 }
 ```
+
+## List Running Models
+```shell
+GET /api/ps
+```
+
+List models that are currently loaded into memory.
+
+\* If a model is loaded completely into system memory, `size_vram` is omitted from the response.
+
+#### Examples
+
+### Request
+```shell
+curl http://localhost:11434/api/ps
+```
+
+#### Response
+
+A single JSON object will be returned.
+
+```json
+{
+  "models": [
+    {
+      "name": "mistral:latest",
+      "model": "mistral:latest",
+      "size": 5137025024,
+      "digest": "2ae6f6dd7a3dd734790bbbf58b8909a606e0e7e97e94b7604e0aa7ae4490e6d8",
+      "details": {
+        "parent_model": "",
+        "format": "gguf",
+        "family": "llama",
+        "families": [
+          "llama"
+        ],
+        "parameter_size": "7.2B",
+        "quantization_level": "Q4_0"
+      },
+      "expires_at": "2024-06-04T14:38:31.83753-07:00",
+      "size_vram": 5137025024
+    }
+  ]
+}
+```
\ No newline at end of file
Repository: ggml-org/llama.cpp
Pull request: add YoutuVLForConditionalGeneration architectures

*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: convert_hf_to_gguf.py
patch: @@ -7212,6 +7212,7 @@ def prepare_tensors(self):
     "DeepseekV3ForCausalLM",
     "KimiVLForConditionalGeneration",
     "YoutuForCausalLM",
+    "YoutuVLForConditionalGeneration"
 )
 class DeepseekV2Model(TextModel):
     model_arch = gguf.MODEL_ARCH.DEEPSEEK2
@@ -10674,8 +10675,8 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
         return []
 
 
-@ModelBase.register("YOUTUVLForConditionalGeneration", "YOUTUVLForCausalLM")
-class YOUTUVLVisionModel(MmprojModel):
+@ModelBase.register("YoutuVLForConditionalGeneration")
+class YoutuVLVisionModel(MmprojModel):
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)
         assert self.hparams_vision is not None
Repository: ggml-org/llama.cpp
Pull request: ggml-cuda: check for srcs outside the cgraph

supersede #18561. Tested on the failing tests in #17004 and they work fine.

Changed files:
filename: ggml/src/ggml-cuda/common.cuh
patch: @@ -1065,6 +1065,7 @@ struct ggml_cuda_graph {
     int number_consecutive_updates = 0;
     bool cuda_graphs_enabled = false;
     std::vector<ggml_graph_node_properties> ggml_graph_properties;
+    std::vector<ggml_graph_node_properties> extraneous_srcs_properties;
 #endif
 };
 

filename: ggml/src/ggml-cuda/ggml-cuda.cu
patch: @@ -2973,15 +2973,16 @@ static bool is_cuda_graph_update_required(ggml_backend_cuda_context * cuda_ctx,
     }
 
     // Check if the graph size has changed
-    if (cuda_ctx->cuda_graph->ggml_graph_properties.size() != (size_t)cgraph->n_nodes) {
+    if (cuda_ctx->cuda_graph->ggml_graph_properties.size() != (size_t)cgraph->n_nodes + cgraph->n_leafs) {
         cuda_graph_update_required = true;
-        cuda_ctx->cuda_graph->ggml_graph_properties.resize(cgraph->n_nodes);
+        cuda_ctx->cuda_graph->ggml_graph_properties.resize(cgraph->n_nodes + cgraph->n_leafs);
     }
 
     // Loop over nodes in GGML graph to determine if CUDA graph update is required
     // and store properties to allow this comparison for the next token
     for (int i = 0; i < cgraph->n_nodes; i++) {
         bool has_matching_properties = true;
+
         if (!cuda_graph_update_required) {
             has_matching_properties = ggml_graph_node_has_matching_properties(cgraph->nodes[i], &cuda_ctx->cuda_graph->ggml_graph_properties[i]);
         }
@@ -2991,6 +2992,17 @@ static bool is_cuda_graph_update_required(ggml_backend_cuda_context * cuda_ctx,
         set_ggml_graph_node_properties(cgraph->nodes[i], &cuda_ctx->cuda_graph->ggml_graph_properties[i]);
     }
 
+    for (int i = 0; i < cgraph->n_leafs; i++) {
+        bool has_matching_properties = true;
+        if (!cuda_graph_update_required) {
+            has_matching_properties = ggml_graph_node_has_matching_properties(cgraph->leafs[i], &cuda_ctx->cuda_graph->ggml_graph_properties[cgraph->n_nodes + i]);
+        }
+        if (!has_matching_properties) {
+            cuda_graph_update_required = true;
+        }
+        set_ggml_graph_node_properties(cgraph->leafs[i], &cuda_ctx->cuda_graph->ggml_graph_properties[cgraph->n_nodes + i]);
+    }
+
     return cuda_graph_update_required;
 }
Repository: denoland/deno
Pull request: fix(install): all package.json aliases should be added to node_modules

## Summary
- Fix setup cache key in root node_modules symlink creation to use the alias name instead of the real package name
- When multiple aliases point to the same package+version (e.g. `typescript-6.0.2` and `typescript-next` both resolving to `typescript@6.0.2`), the setup cache would deduplicate them under the real package name key, causing subsequent aliases to be skipped on re-install
- One-line fix in `libs/npm_installer/local.rs:721`

Fixes #33059

## Test plan
- [x] Added spec test `aliases_same_pkg_node_modules` that installs one alias, then adds a second alias to the same package+version, and verifies both are importable
- [x] Verified test fails without the fix and passes with it
- [x] Manually verified against the reproduction from the issue (`ts-ast-viewer` repo)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Changed files:
filename: libs/npm_installer/local.rs
patch: @@ -717,8 +717,7 @@ impl<
           )?;
         } else {
           // symlink the package into `node_modules/<alias>`
-          if setup_cache
-            .insert_root_symlink(&remote_pkg.id.nv.name, &target_folder_name)
+          if setup_cache.insert_root_symlink(remote_alias, &target_folder_name)
           {
             symlink_package_dir(
               sys.as_ref(),

filename: tests/specs/npm/aliases_same_pkg_node_modules/__test__.jsonc
patch: @@ -0,0 +1,28 @@
+{
+  "tempDir": true,
+  "tests": {
+    "multiple_aliases_same_package": {
+      "steps": [
+        // Install with just one alias. This populates the setup cache
+        // with ("@denotest/add", "@denotest+add@1.0.0").
+        {
+          "args": "install",
+          "output": "[WILDCARD]"
+        },
+        // Add a second alias to the exact same package+version.
+        // The bug: insert_root_symlink used the real package name
+        // as the cache key, so the second alias's symlink was skipped
+        // because the cache already had an entry for "@denotest/add"
+        // with the same target folder.
+        {
+          "args": "install add-v2@npm:@denotest/add@1.0.0",
+          "output": "[WILDCARD]"
+        },
+        {
+          "args": "run main.js",
+          "output": "add-v1: 3\nadd-v2: 3\n"
+        }
+      ]
+    }
+  }
+}

filename: tests/specs/npm/aliases_same_pkg_node_modules/main.js
patch: @@ -0,0 +1,5 @@
+import { add as add1 } from "add-v1";
+import { add as add2 } from "add-v2";
+
+console.log(`add-v1: ${add1(1, 2)}`);
+console.log(`add-v2: ${add2(1, 2)}`);

filename: tests/specs/npm/aliases_same_pkg_node_modules/package.json
patch: @@ -0,0 +1,5 @@
+{
+  "dependencies": {
+    "add-v1": "npm:@denotest/add@1.0.0"
+  }
+}
Repository: facebook/react
Pull request: Fix limit without owner stacks

Move out of gate.

Changed files:
filename: packages/react-server/src/ReactFlightServer.js
patch: @@ -3465,6 +3465,8 @@ function renderConsoleValue(
         if (element._owner != null) {
           outlineComponentInfo(request, element._owner);
         }
+        doNotLimit.add(element.props);
+
         if (enableOwnerStacks) {
           let debugStack: null | ReactStackTrace = null;
           if (element._debugStack != null) {
@@ -3475,7 +3477,6 @@ function renderConsoleValue(
               doNotLimit.add(debugStack[i]);
             }
           }
-          doNotLimit.add(element.props);
           return [
             REACT_ELEMENT_TYPE,
             element.type,
Repository: huggingface/transformers
Pull request: Fix `detectron2` installation in docker files

# What does this PR do?

See the issue reported in https://github.com/facebookresearch/detectron2/issues/5495

`--no-build-isolation` fixes the issue.

Merge directly.

The effect is demonstrated in https://github.com/huggingface/transformers/actions/runs/19012508548

Changed files:
filename: docker/transformers-all-latest-gpu/Dockerfile
patch: @@ -67,7 +67,7 @@ RUN set -e; \
 
 RUN python3 -m pip install --no-cache-dir -U timm
 
-RUN [ "$PYTORCH" != "pre" ] && python3 -m pip install --no-cache-dir git+https://github.com/facebookresearch/detectron2.git || echo "Don't install detectron2 with nightly torch"
+RUN [ "$PYTORCH" != "pre" ] && python3 -m pip install --no-cache-dir --no-build-isolation git+https://github.com/facebookresearch/detectron2.git || echo "Don't install detectron2 with nightly torch"
 
 RUN python3 -m pip install --no-cache-dir pytesseract
 

filename: docker/transformers-doc-builder/Dockerfile
patch: @@ -10,7 +10,7 @@ RUN apt-get -y update && apt-get install -y libsndfile1-dev && apt install -y te
 # Torch needs to be installed before deepspeed
 RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed]
 
-RUN python3 -m pip install --no-cache-dir torchvision git+https://github.com/facebookresearch/detectron2.git pytesseract
+RUN python3 -m pip install --no-cache-dir --no-build-isolation torchvision git+https://github.com/facebookresearch/detectron2.git pytesseract
 RUN python3 -m pip install -U "itsdangerous<2.1.0"
 
 # Test if the image could successfully build the doc. before publishing the image
Repository: vercel/next.js
Pull request: Pass `startTime` to initial RSC payload stream

`startTime: 0` tells React to align the debug start time of the initial RSC stream (i.e. the one used for hydration) to the start of the document navigation. In other words, the timing information will now include the network latency of the HTML document request.

Changed files:
filename: packages/next/src/client/app-index.tsx
patch: @@ -175,7 +175,13 @@ if (
 
 const initialServerResponse = createFromReadableStream<InitialRSCPayload>(
   readable,
-  { callServer, findSourceMapURL, debugChannel }
+  {
+    callServer,
+    findSourceMapURL,
+    debugChannel,
+    // @ts-expect-error This is not yet part of the React types
+    startTime: 0,
+  }
 )
 
 function ServerRoot({
Repository: nodejs/node
Pull request: deps: update ada to 3.2.9

This is an automated update of ada to 3.2.9.

Changed files:
filename: deps/ada/ada.cpp
patch: @@ -1,4 +1,4 @@
-/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
+/* auto-generated on 2025-09-22 20:51:08 -0400. Do not edit! */
 /* begin file src/ada.cpp */
 #include "ada.h"
 /* begin file src/checkers.cpp */
@@ -15841,7 +15841,11 @@ tl::expected<std::string, errors> url_pattern_init::process_search(
   if (value.starts_with("?")) {
     value.remove_prefix(1);
   }
-  ADA_ASSERT_TRUE(!value.starts_with("?"));
+  // We cannot assert that the value is no longer starting with a single
+  // question mark because technically it can start. The question is whether or
+  // not we should remove the first question mark. Ref:
+  // https://github.com/ada-url/ada/pull/992 The spec is not clear on this.
+
   // If type is "pattern" then return strippedValue.
   if (type == process_type::pattern) {
     return std::string(value);
@@ -16282,7 +16286,10 @@ tl::expected<std::string, errors> canonicalize_search(std::string_view input) {
   url->set_search(input);
   if (url->has_search()) {
     const auto search = url->get_search();
-    return std::string(search.substr(1));
+    if (!search.empty()) {
+      return std::string(search.substr(1));
+    }
+    return "";
   }
   return tl::unexpected(errors::type_error);
 }
@@ -16302,7 +16309,10 @@ tl::expected<std::string, errors> canonicalize_hash(std::string_view input) {
   // Return dummyURL's fragment.
   if (url->has_hash()) {
     const auto hash = url->get_hash();
-    return std::string(hash.substr(1));
+    if (!hash.empty()) {
+      return std::string(hash.substr(1));
+    }
+    return "";
   }
   return tl::unexpected(errors::type_error);
 }

filename: deps/ada/ada.h
patch: @@ -1,4 +1,4 @@
-/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */
+/* auto-generated on 2025-09-22 20:51:08 -0400. Do not edit! */
 /* begin file include/ada.h */
 /**
  * @file ada.h
@@ -10515,14 +10515,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
 #ifndef ADA_ADA_VERSION_H
 #define ADA_ADA_VERSION_H
 
-#define ADA_VERSION "3.2.7"
+#define ADA_VERSION "3.2.9"
 
 namespace ada {
 
 enum {
   ADA_VERSION_MAJOR = 3,
   ADA_VERSION_MINOR = 2,
-  ADA_VERSION_REVISION = 7,
+  ADA_VERSION_REVISION = 9,
 };
 
 }  // namespace ada
Repository: huggingface/transformers
Pull request: Fix: prevent .gitignore truncation in run_clm_no_trainer.py

# What does this PR do?

This PR fixes an issue in `run_clm_no_trainer.py` where the `.gitignore` file was being truncated due to the use of `"w+"` mode when writing.  
Now, the script preserves existing `.gitignore` content, avoids duplicates, and safely appends the required ignore patterns for model outputs (`step_*` and `epoch_*`).


I have tested with:

1. no gitignore: file was created and populated with step_* and epoch_*
2. gitignore with additional content: step_* and epoch_* were added after previous content
3. blank gitignore: step_* and epoch_* were added to the file

Fixes #41896


## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

wdyt @Rocketknight1?

Changed files:
filename: examples/pytorch/language-modeling/run_clm_no_trainer.py
patch: @@ -308,11 +308,19 @@ def main():
             api = HfApi()
             repo_id = api.create_repo(repo_name, exist_ok=True, token=args.hub_token).repo_id
 
-            with open(os.path.join(args.output_dir, ".gitignore"), "w+") as gitignore:
-                if "step_*" not in gitignore:
-                    gitignore.write("step_*\n")
-                if "epoch_*" not in gitignore:
-                    gitignore.write("epoch_*\n")
+            os.makedirs(args.output_dir, exist_ok=True)
+            gitignore_path = os.path.join(args.output_dir, ".gitignore")
+            content = ""
+            if os.path.exists(gitignore_path):
+                with open(gitignore_path, "r") as f:
+                    content = f.read()
+            with open(gitignore_path, "a") as f:
+                if content and not content.endswith("\n"):
+                    f.write("\n")
+                if "step_*" not in content:
+                    f.write("step_*\n")
+                if "epoch_*" not in content:
+                    f.write("epoch_*\n")
         elif args.output_dir is not None:
             os.makedirs(args.output_dir, exist_ok=True)
     accelerator.wait_for_everyone()
Repository: ollama/ollama
Pull request: add embed model command and fix question invoke

I was following the tutorial but i couldn't run it because embedding model was not available, so i had to download the embedding model using `ollama pull nomic-embed-text`. Also the code where we are asking the LLM the question, we are not printing anything so fixed that too.

Changed files:
filename: docs/tutorials/langchainpy.md
patch: @@ -45,7 +45,7 @@ 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. We can use Ollama directly to instantiate an embedding model. We will use ChromaDB in this example for a vector database. `pip install chromadb`
-
+We also need to pull embedding model: `ollama pull nomic-embed-text`
 ```python
 from langchain.embeddings import OllamaEmbeddings
 from langchain.vectorstores import Chroma
@@ -68,7 +68,8 @@ The next thing is to send the question and the relevant parts of the docs to the
 ```python
 from langchain.chains import RetrievalQA
 qachain=RetrievalQA.from_chain_type(ollama, retriever=vectorstore.as_retriever())
-qachain.invoke({"query": question})
+res = qachain.invoke({"query": question})
+print(res['result'])
 ```
 
 The answer received from this chain was:
Repository: ggml-org/llama.cpp
Pull request: server: fix data race in to_json_anthropic

Fix https://github.com/ggml-org/llama.cpp/pull/17570#discussion_r2639514910


Changed files:
filename: tools/server/server-task.cpp
patch: @@ -1153,7 +1153,7 @@ json server_task_result_rerank::to_json() {
 json server_task_result_cmpl_partial::to_json_anthropic() {
     json events = json::array();
     bool first = (n_decoded == 1);
-    static bool text_block_started = false;
+    bool text_block_started = false;
 
     if (first) {
         text_block_started = false;
Repository: vercel/next.js
Pull request: warn: add deprecation warning of eslint config

Add a deprection warning on eslint option in next.config

```
 ⚠ `eslint` configuration in next.config.js is no longer supported. Please checkout https://nextjs.org/doc
s/app/api-reference/cli/next#next-lint-options for migration steps.
 ⚠ Invalid next.config.js options detected:
 ⚠     Unrecognized key(s) in object: 'eslint'
 ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
   ▲ Next.js 16.0.0-canary.15 (Turbopack)
   - Local:        http://localhost:3000
   - Network:      http://10.208.10.212:3000
```

Closes NEXT-4744

Changed files:
filename: packages/next/src/server/config.ts
patch: @@ -169,6 +169,13 @@ function checkDeprecations(
     silent
   )
 
+  warnOptionHasBeenDeprecated(
+    userConfig,
+    'eslint',
+    `\`eslint\` configuration in ${configFileName} is no longer supported. See more info here: https://nextjs.org/docs/app/api-reference/cli/next#next-lint-options`,
+    silent
+  )
+
   if (userConfig.images?.domains?.length) {
     warnOptionHasBeenDeprecated(
       userConfig,