helloadhavan/github_issues huggingface dataset:
Repository: ollama/ollama
Pull request: Remove go server debug logging


Changed files:
filename: llama/Makefile
patch: @@ -140,6 +140,7 @@ CUDA_FLAGS := \
 	-DGGML_SHARED=1 \
 	-DGGML_BUILD=1 \
 	-DGGML_USE_LLAMAFILE \
+	-DNDEBUG \
 	-D_GNU_SOURCE \
 	-DCMAKE_POSITION_INDEPENDENT_CODE=on \
 	-Wno-deprecated-gpu-targets \

filename: llm/llm.go
patch: @@ -13,7 +13,6 @@ import "C"
 
 import (
 	"fmt"
-	"log/slog"
 	"unsafe"
 )
 
@@ -46,14 +45,12 @@ type loadedModel struct {
 
 func loadModel(modelfile string, vocabOnly bool) (*loadedModel, error) {
 	// TODO figure out how to quiet down the logging so we don't have 2 copies of the model metadata showing up
-	slog.Info("XXX initializing default model params")
 	params := C.llama_model_default_params()
 	params.vocab_only = C.bool(vocabOnly)
 
 	cmodelfile := C.CString(modelfile)
 	defer C.free(unsafe.Pointer(cmodelfile))
 
-	slog.Info("XXX loading model", "model", modelfile)
 	model := C.llama_load_model_from_file(cmodelfile, params)
 	if model == nil {
 		return nil, fmt.Errorf("failed to load model %s", modelfile)
@@ -76,7 +73,6 @@ func tokenize(model *loadedModel, content string) ([]int, error) {
 		&tokens[0], C.int32_t(tokenCount), true, true))
 	if tokenCount < 0 {
 		tokenCount = -tokenCount
-		slog.Info("XXX got negative response", "count", tokenCount)
 		tokens = make([]C.int32_t, tokenCount)
 		tokenCount = int(C.llama_tokenize(model.model, ccontent, C.int32_t(len(content)), &tokens[0],
 			C.int32_t(tokenCount), true, true))
@@ -91,12 +87,11 @@ func tokenize(model *loadedModel, content string) ([]int, error) {
 	for i := range tokenCount {
 		ret[i] = int(tokens[i])
 	}
-	slog.Debug("XXX tokenized", "tokens", tokens, "content", content)
+
 	return ret, nil
 }
 
 func detokenize(model *loadedModel, tokens []int) string {
-	slog.Info("XXX in CGO detokenize")
 	var resp string
 	for _, token := range tokens {
 		buf := make([]C.char, 8)
@@ -108,6 +103,6 @@ func detokenize(model *loadedModel, tokens []int) string {
 		tokString := C.GoStringN(&buf[0], nTokens)
 		resp += tokString
 	}
-	slog.Debug("XXX detokenized", "tokens", tokens, "content", resp)
+
 	return resp
 }
Repository: ollama/ollama
Pull request: adding Archyve to community integrations list


Changed files:
filename: README.md
patch: @@ -311,6 +311,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Claude Dev](https://github.com/saoudrizwan/claude-dev) - VSCode extension for multi-file/whole-repo coding
 - [Cherry Studio](https://github.com/kangfenmao/cherry-studio) (Desktop client with Ollama support)
 - [ConfiChat](https://github.com/1runeberg/confichat) (Lightweight, standalone, multi-platform, and privacy focused LLM chat interface with optional encryption)
+- [Archyve](https://github.com/nickthecook/archyve) (RAG-enabling document library)
 
 ### Terminal
Repository: vuejs/vue
Pull request: compiler codegen improvement

<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->
Inside genChildren function, not need to invoke getNormalizationType() when checkSkip is false.


Changed files:
filename: src/compiler/codegen/index.js
patch: @@ -310,11 +310,9 @@ function genChildren (el: ASTElement, checkSkip?: boolean): string | void {
         el.tag !== 'slot') {
       return genElement(el)
     }
-    const normalizationType = getNormalizationType(children)
+    const normalizationType = checkSkip ? getNormalizationType(children) : 0
     return `[${children.map(genNode).join(',')}]${
-      checkSkip
-        ? normalizationType ? `,${normalizationType}` : ''
-        : ''
+      normalizationType ? `,${normalizationType}` : ''
     }`
   }
 }
Repository: huggingface/transformers
Pull request: Allow fallback to loading from Auto"SubProcessor".from_pretrained when model_type can't be inferred from config

# What does this PR do?

Fixes https://github.com/huggingface/transformers/issues/41846

Also remove some dead code in `processing_auto.py`

Cc @tomaarsen ;) 

Changed files:
filename: src/transformers/models/auto/processing_auto.py
patch: @@ -317,7 +317,6 @@ def from_pretrained(cls, pretrained_model_name_or_path, **kwargs):
                     processor_class = config_dict.get("processor_class", None)
                     if "AutoProcessor" in config_dict.get("auto_map", {}):
                         processor_auto_map = config_dict["auto_map"]["AutoProcessor"]
-
             # Saved as feature extractor
             if preprocessor_config_file is None:
                 preprocessor_config_file = cached_file(
@@ -345,16 +344,24 @@ def from_pretrained(cls, pretrained_model_name_or_path, **kwargs):
                     processor_auto_map = config_dict["auto_map"]["AutoProcessor"]
 
         if processor_class is None:
-            # Otherwise, load config, if it can be loaded.
-            if not isinstance(config, PreTrainedConfig):
-                config = AutoConfig.from_pretrained(
-                    pretrained_model_name_or_path, trust_remote_code=trust_remote_code, **kwargs
-                )
+            # Last resort: try loading the model config to get processor_class.
+            # This handles cases where processor info is only in config.json (not in any
+            # preprocessor/tokenizer config files). AutoConfig.from_pretrained may raise
+            # ValueError if the model_type is unrecognized or the config is invalid -
+            # we catch and ignore this to allow fallback to AutoTokenizer/AutoImageProcessor.
+            try:
+                if not isinstance(config, PreTrainedConfig):
+                    config = AutoConfig.from_pretrained(
+                        pretrained_model_name_or_path, trust_remote_code=trust_remote_code, **kwargs
+                    )
 
-            # And check if the config contains the processor class.
-            processor_class = getattr(config, "processor_class", None)
-            if hasattr(config, "auto_map") and "AutoProcessor" in config.auto_map:
-                processor_auto_map = config.auto_map["AutoProcessor"]
+                processor_class = getattr(config, "processor_class", None)
+                if hasattr(config, "auto_map") and "AutoProcessor" in config.auto_map:
+                    processor_auto_map = config.auto_map["AutoProcessor"]
+            except ValueError:
+                # Config loading failed (unrecognized model_type, invalid config, etc.)
+                # Continue to fallback logic below (AutoTokenizer, AutoImageProcessor, etc.)
+                pass
 
         if processor_class is not None:
             processor_class = processor_class_from_name(processor_class)
Repository: ollama/ollama
Pull request: readme: add Plasmoid Ollama Control to community integrations

![Screenshot1](https://github.com/user-attachments/assets/f6c40de2-0a2a-49b1-8c39-0805889ceeb3)
![Screenshot2](https://github.com/user-attachments/assets/2722c3b8-cf45-4803-90e8-4fc7a892fe0e)


Changed files:
filename: README.md
patch: @@ -418,6 +418,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [twinny](https://github.com/rjmacarthy/twinny) (Copilot and Copilot chat alternative using Ollama)
 - [Wingman-AI](https://github.com/RussellCanfield/wingman-ai) (Copilot code and chat alternative using Ollama and Hugging Face)
 - [Page Assist](https://github.com/n4ze3m/page-assist) (Chrome Extension)
+- [Plasmoid Ollama Control](https://github.com/imoize/plasmoid-ollamacontrol) (KDE Plasma extension that allows you to quickly manage/control Ollama model)
 - [AI Telegram Bot](https://github.com/tusharhero/aitelegrambot) (Telegram bot using Ollama in backend)
 - [AI ST Completion](https://github.com/yaroslavyaroslav/OpenAI-sublime-text) (Sublime Text 4 AI assistant plugin with Ollama support)
 - [Discord-Ollama Chat Bot](https://github.com/kevinthedang/discord-ollama) (Generalized TypeScript Discord Bot w/ Tuning Documentation)
Repository: electron/electron
Pull request: ci: add more fields to Slack payload for backport requested message

#### 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
-->

Add more fields to the Slack payload so we can render a richer message on that side of things.

#### 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/pull-request-labeled.yml
patch: @@ -19,7 +19,10 @@ jobs:
           webhook-type: webhook-trigger
           payload: |
             {
-              "url": "${{ github.event.pull_request.html_url }}"
+              "base_ref": ${{ toJSON(github.event.pull_request.base.ref) }},
+              "title": ${{ toJSON(github.event.pull_request.title) }},
+              "url": ${{ toJSON(github.event.pull_request.html_url) }},
+              "user": ${{ toJSON(github.event.pull_request.user.login) }}
             }
   pull-request-labeled-deprecation-review-complete:
     name: deprecation-review/complete label added
Repository: vuejs/vue
Pull request: Fix comment typo

Fix comment typo in normalize-children.js
Ignoring this typo that also appears in `dist` and `packages`.

Changed files:
filename: src/core/vdom/helpers/normalize-children.js
patch: @@ -24,7 +24,7 @@ export function simpleNormalizeChildren (children: any) {
   return children
 }
 
-// 2. When the children contains constrcuts that always generated nested Arrays,
+// 2. When the children contains constructs that always generated nested Arrays,
 // e.g. <template>, <slot>, v-for, or when the children is provided by user
 // with hand-written render functions / JSX. In such cases a full normalization
 // is needed to cater to all possible types of children values.
Repository: nodejs/node
Pull request: win: upgrade Visual Studio workload from 2019 to 2022

Fixes: https://github.com/nodejs/node/issues/59031
<!--
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: tools/msvs/install_tools/install_tools.bat
patch: @@ -61,6 +61,6 @@ cls
     -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command ^
     [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ^
     iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); ^
-    choco upgrade -y python visualstudio2019-workload-vctools; ^
+    choco upgrade -y python visualstudio2022-workload-vctools; ^
     Read-Host ''Type ENTER to exit'' ' ^
     -Verb RunAs
Repository: vuejs/vue
Pull request: Add esm-files to package.json

Add missed vue.esm.js and vue.runtime.esm.js to files section package.json

Changed files:
filename: package.json
patch: @@ -13,6 +13,8 @@
     "dist/vue.runtime.min.js",
     "dist/vue.common.js",
     "dist/vue.runtime.common.js",
+    "dist/vue.esm.js",
+    "dist/vue.runtime.esm.js",
     "src",
     "types/index.d.ts",
     "types/options.d.ts",
Repository: ggml-org/llama.cpp
Pull request: Server: log when converting requests to chat completions format

Emit info/debug when oai responses / anthropic requests are converted

Changed files:
filename: tools/server/server-context.cpp
patch: @@ -3584,6 +3584,8 @@ void server_routes::init_routes() {
         auto res = create_response();
         std::vector<raw_buffer> files;
         json body = convert_responses_to_chatcmpl(json::parse(req.body));
+        SRV_DBG("%s\n", "Request converted: OpenAI Responses -> OpenAI Chat Completions");
+        SRV_DBG("converted request: %s\n", body.dump().c_str());
         json body_parsed = oaicompat_chat_params_parse(
             body,
             meta->chat_params,
@@ -3600,6 +3602,8 @@ void server_routes::init_routes() {
         auto res = create_response();
         std::vector<raw_buffer> files;
         json body = convert_anthropic_to_oai(json::parse(req.body));
+        SRV_DBG("%s\n", "Request converted: Anthropic -> OpenAI Chat Completions");
+        SRV_DBG("converted request: %s\n", body.dump().c_str());
         json body_parsed = oaicompat_chat_params_parse(
             body,
             meta->chat_params,
@@ -3616,6 +3620,8 @@ void server_routes::init_routes() {
         auto res = create_response();
         std::vector<raw_buffer> files;
         json body = convert_anthropic_to_oai(json::parse(req.body));
+        SRV_DBG("%s\n", "Request converted: Anthropic -> OpenAI Chat Completions");
+        SRV_DBG("converted request: %s\n", body.dump().c_str());
         json body_parsed = oaicompat_chat_params_parse(
             body,
             meta->chat_params,
Repository: ollama/ollama
Pull request: Fix "presence_penalty_penalty" typo, add test.

Fixes: https://github.com/ollama/ollama/issues/6640

Changed files:
filename: openai/openai.go
patch: @@ -79,7 +79,7 @@ type ChatCompletionRequest struct {
 	Stop             any             `json:"stop"`
 	Temperature      *float64        `json:"temperature"`
 	FrequencyPenalty *float64        `json:"frequency_penalty"`
-	PresencePenalty  *float64        `json:"presence_penalty_penalty"`
+	PresencePenalty  *float64        `json:"presence_penalty"`
 	TopP             *float64        `json:"top_p"`
 	ResponseFormat   *ResponseFormat `json:"response_format"`
 	Tools            []api.Tool      `json:"tools"`

filename: openai/openai_test.go
patch: @@ -22,7 +22,10 @@ const (
 	image  = `iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=`
 )
 
-var False = false
+var (
+	False = false
+	True  = true
+)
 
 func captureRequestMiddleware(capturedRequest any) gin.HandlerFunc {
 	return func(c *gin.Context) {
@@ -70,6 +73,44 @@ func TestChatMiddleware(t *testing.T) {
 				Stream: &False,
 			},
 		},
+		{
+			name: "chat handler with options",
+			body: `{
+				"model": "test-model",
+				"messages": [
+					{"role": "user", "content": "Hello"}
+				],
+				"stream":            true,
+				"max_tokens":        999,
+				"seed":              123,
+				"stop":              ["\n", "stop"],
+				"temperature":       3.0,
+				"frequency_penalty": 4.0,
+				"presence_penalty":  5.0,
+				"top_p":             6.0,
+				"response_format":   {"type": "json_object"}
+			}`,
+			req: api.ChatRequest{
+				Model: "test-model",
+				Messages: []api.Message{
+					{
+						Role:    "user",
+						Content: "Hello",
+					},
+				},
+				Options: map[string]any{
+					"num_predict":       999.0, // float because JSON doesn't distinguish between float and int
+					"seed":              123.0,
+					"stop":              []any{"\n", "stop"},
+					"temperature":       6.0,
+					"frequency_penalty": 8.0,
+					"presence_penalty":  10.0,
+					"top_p":             6.0,
+				},
+				Format: "json",
+				Stream: &True,
+			},
+		},
 		{
 			name: "chat handler with image content",
 			body: `{
@@ -186,6 +227,8 @@ func TestChatMiddleware(t *testing.T) {
 			req, _ := http.NewRequest(http.MethodPost, "/api/chat", strings.NewReader(tc.body))
 			req.Header.Set("Content-Type", "application/json")
 
+			defer func() { capturedRequest = nil }()
+
 			resp := httptest.NewRecorder()
 			router.ServeHTTP(resp, req)
 
@@ -202,7 +245,6 @@ func TestChatMiddleware(t *testing.T) {
 			if !reflect.DeepEqual(tc.err, errResp) {
 				t.Fatal("errors did not match")
 			}
-			capturedRequest = nil
 		})
 	}
 }
Repository: facebook/react
Pull request: [ci] Only notify discord on core team label


Rather than notify on every label event on a PR by a core team member, only do so for the specific core team label event.


Changed files:
filename: .github/workflows/compiler_discord_notify.yml
patch: @@ -14,7 +14,7 @@ jobs:
       actor: ${{ github.event.pull_request.user.login }}
 
   notify:
-    if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
+    if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
     needs: check_maintainer
     runs-on: ubuntu-latest
     steps:

filename: .github/workflows/runtime_discord_notify.yml
patch: @@ -14,7 +14,7 @@ jobs:
       actor: ${{ github.event.pull_request.user.login }}
 
   notify:
-    if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
+    if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' && github.event.label.name == 'React Core Team' }}
     needs: check_maintainer
     runs-on: ubuntu-latest
     steps:
Repository: facebook/react
Pull request: [ci] Parse inputs for maintainer check workflow


I forgot that workflow calls stringify their inputs


Changed files:
filename: .github/workflows/shared_check_maintainer.yml
patch: @@ -33,7 +33,13 @@ jobs:
           script: |
             const fs = require('fs');
             const actor = '${{ inputs.actor }}';
-            const isRemote = ${{ inputs.is_remote }};
+            let isRemote = ${{ inputs.is_remote }};
+            if (typeof isRemote === 'string') {
+              isRemote = isRemote === 'true';
+            }
+            if (typeof isRemote !== 'boolean') {
+              throw new Error(`Invalid `isRemote` input. Expected a boolean, got: ${isRemote}`);
+            }
 
             let content = null;
             if (isRemote === true) {
Repository: electron/electron
Pull request: ci: add more fields to Slack payload for backport requested message

Backport of #48148

See that PR for details.


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/pull-request-labeled.yml
patch: @@ -19,7 +19,10 @@ jobs:
           webhook-type: webhook-trigger
           payload: |
             {
-              "url": "${{ github.event.pull_request.html_url }}"
+              "base_ref": ${{ toJSON(github.event.pull_request.base.ref) }},
+              "title": ${{ toJSON(github.event.pull_request.title) }},
+              "url": ${{ toJSON(github.event.pull_request.html_url) }},
+              "user": ${{ toJSON(github.event.pull_request.user.login) }}
             }
   pull-request-labeled-deprecation-review-complete:
     name: deprecation-review/complete label added
Repository: ollama/ollama
Pull request: Improve logging on GPU too small

When we determine a GPU is too small for any layers, it's not always clear why. This will help troubleshoot those scenarios.

Changed files:
filename: llm/memory.go
patch: @@ -167,7 +167,21 @@ func EstimateGPULayers(gpus []gpu.GpuInfo, ggml *GGML, projectors []string, opts
 		}
 		// Only include GPUs that can fit the graph, gpu minimum, the layer buffer and at least more layer
 		if (gpus[i].FreeMemory - overhead) < gzo+max(graphPartialOffload, graphFullOffload)+gpus[i].MinimumMemory+2*layerSize {
-			slog.Debug("gpu has too little memory to allocate any layers", "gpu", gpus[i])
+			slog.Debug("gpu has too little memory to allocate any layers",
+				"id", gpus[i].ID,
+				"library", gpus[i].Library,
+				"variant", gpus[i].Variant,
+				"compute", gpus[i].Compute,
+				"driver", fmt.Sprintf("%d.%d", gpus[i].DriverMajor, gpus[i].DriverMinor),
+				"name", gpus[i].Name,
+				"total", format.HumanBytes2(gpus[i].TotalMemory),
+				"available", format.HumanBytes2(gpus[i].FreeMemory),
+				"minimum_memory", gpus[i].MinimumMemory,
+				"layer_size", format.HumanBytes2(layerSize),
+				"gpu_zer_overhead", format.HumanBytes2(gzo),
+				"partial_offload", format.HumanBytes2(graphPartialOffload),
+				"full_offload", format.HumanBytes2(graphFullOffload),
+			)
 			continue
 		}
 		gpusWithSpace = append(gpusWithSpace, gs{i, &gpus[i]})
Repository: vuejs/vue
Pull request: improve Vue.config.keyCode typing

I found it, when I'm working flowtype definition of vue into [`flow-typed`](https://github.com/flowtype/flow-typed). (registration soon 😉 ) 

`Vue.config.keyCodes` allow the `Array<number>`.
https://github.com/vuejs/vue/blob/0e2dafa74ccecf57fbbac6f828884558a8fbd794/test/unit/features/directives/on.spec.js#L272

related:
https://vuejs.org/v2/api/#keyCodes



Changed files:
filename: src/core/config.js
patch: @@ -11,7 +11,7 @@ export type Config = {
   devtools: boolean;
   errorHandler: ?(err: Error, vm: Component, info: string) => void;
   ignoredElements: Array<string>;
-  keyCodes: { [key: string]: number };
+  keyCodes: { [key: string]: number | Array<number> };
   // platform
   isReservedTag: (x?: string) => boolean;
   parsePlatformTagName: (x: string) => string;
Repository: vuejs/vue
Pull request: remove unnecessary code

<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->


Changed files:
filename: src/compiler/parser/index.js
patch: @@ -251,7 +251,7 @@ export function parse (
             text
           })
         } else if (text !== ' ' || !children.length || children[children.length - 1].text !== ' ') {
-          currentParent.children.push({
+          children.push({
             type: 3,
             text
           })