sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: ollama
Issue: on https://www.ollama.com/library add sort filter by model strengths
Labels: feature request

Hello,
   on https://www.ollama.com/library it would be great to have some additional categories where you can sort models by their strengths based on various benchmarks. That way novices like me can figure out which models are good at what right from the ollama webpage.

Thanks,
Arjun
Repository: stable-diffusion-webui
Issue: [Bug]:  Torch is not able to use GPU
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

I've reinstalled VENV it didn't help

### Steps to reproduce the problem

Installed the Automatic WebUI. and it just showed this problem.
By the documentation I've been instructed to post the enviroment. I've attached it in system info.

### What should have happened?

The webUI should've started

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

python -m torch.utils.collect_env

Output@

PyTorch version: 2.1.2+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Home
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22631-SP0
Is CUDA available: False
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3050 Laptop GPU
Nvidia driver version: 511.69
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=3201
DeviceID=CPU0
Family=107
L2CacheSize=4096
L2CacheSpeed=
Manufacturer=AuthenticAMD
MaxClockSpeed=3201
Name=AMD Ryzen 7 5800H with Radeon Graphics
ProcessorType=3
Revision=20480

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==2.1.2+cu121
[pip3] torchvision==0.16.2+cu121
[conda] Could not collect

### Console logs

```Shell
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
```


### Additional information

_No response_
Repository: flutter
Issue: Add sample code for 2D chart plotter
Labels: f: scrolling,d: api docs,d: examples,P3,team-framework,triaged-framework

We should add sample code that demonstrates a custom paint point plotter (with hover widget builder) in the 2D scrolling API
- see [this comment in the design doc](https://docs.google.com/document/d/1C2hAq-gMAIx4Cbym7EMhVAcPZ2hmNxlgijpYmgTpmUU/edit?disco=AAAAqNWEtMY)

Carried over from https://github.com/flutter/flutter/issues/126298
Repository: flutter
Issue: Support exclusion of flavors when conditonally defining assets
Labels: c: new feature,tool,a: assets,c: proposal,P3,team-tool,triaged-tool

### Use case

Imagine I have an app with 20 flavors. I want that one file to be included in 19 flavors but not one specific one.
I would need to add all 19, except for 1 in that big list.

```yaml
# pubspec.yaml
flutter:
  assets:
    - assets/normal-asset.png
    - path: assets/good-tasting.png
      flavors: 
        - vanilla
        - strawberry
        - chocolate
        - lemon
        - smurf
        - orange
        - ...more
 ```

### Proposal

How about handling it like in a .gitignore with "!" so it will be included in all other flavors, excluding the ones marked with "!"

```
# pubspec.yaml
flutter:
  assets:
    - assets/normal-asset.png
    - path: assets/good-tasting.png
      flavors: 
        - !strawberry
```
Repository: flutter
Issue: Deprecate iOS Objective-C create template `flutter create --ios-language objc`
Labels: tool,P2,team-ios,triaged-ios

We have metrics that show in 2024 Q1 less than 1% of `flutter create` apps were Objective-C.  Deprecate and remove the flag and templates.  

- [x]  IntelliJ https://github.com/flutter/flutter-intellij/issues/7439 
- [x]  VS Code https://github.com/Dart-Code/Dart-Code/issues/5145
- [ ]  https://github.com/flutter/flutter/issues/23955
- [ ] https://github.com/flutter/website/issues/11200
- [x]  Add a deprecation warning that the flag will be removed in a future release. Let that sit for a stable release or so to see if we get complaints. https://github.com/flutter/flutter/pull/155867
- [ ]  Remove the `--ios-language` flag and templates from the tool.
- [ ] Recreate packages examples with the Swift template (see comment in totally unrelated issue about doing the same for kotlin https://github.com/flutter/flutter/issues/157660#issuecomment-2441853854)
- [ ]  Optionally: recreate Objective-C sample, example apps with the Swift template


Users will still be able to open `ios/Runner.xcworkspace` and add Objective-C code or replace the Swift code that's there with Objective-C.

macOS never had a `flutter create -i objc` option and only provided a Swift template https://github.com/flutter/flutter/issues/70598#issuecomment-728281283
Repository: deno
Issue: BUG: `deno doc --lint` crash with non-ASCII ts code
Labels: bug,docs

Version: Deno 1.43.4

reproduce step:

source code `t.ts`:

```ts
// 插件描述文件 `pmimp.json`
export interface 插件描述 {
  pmim_version: string;
  插件信息: {
    名称: string;
    描述: string;
    版本: string;
    URL: string;
  };
  默认启用?: number;

  双拼方案?: string;
  键盘布局?: string;

  皮肤?: {
    入口: string;
    名称: string;
    能力: Array<string>;
  };

  服务?: {
    入口: string;
  };
}
```

run command and crash log:

```sh
> env RUST_BACKTRACE=1 ./deno doc --lint t.ts
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /home/tmp/deno-crash-20240518/t.ts:2:1
  | 
2 | export interface 插件描述 {
  | ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /home/tmp/deno-crash-20240518/t.ts:3:3
  | 
3 |   pmim_version: string;
  |   ^



============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: linux x86_64
Version: 1.43.4
Args: ["./deno", "doc", "--lint", "t.ts"]

thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-swc-ext-0.16.0/src/common/text_info.rs:190:21:
byte index 94 is not a char boundary; it is inside '插' (bytes 93..96) of `// 插件描述文件 `pmimp.json`
export interface 插件描述 {
  pmim_version: string;
  插件信息: {
    名称: string;
    描述: string;
    版本: string;
    URL: string;
  };
  默认启用?: number;

  双拼方案?: string;
  键盘布局`[...]
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::str::slice_error_fail_rt
   3: core::str::slice_error_fail
   4: dprint_swc_ext::common::text_info::SourceTextInfo::range_text
   5: deno_ast::diagnostics::print_snippet
   6: <deno_ast::diagnostics::DiagnosticDisplay<T> as core::fmt::Display>::fmt
   7: core::fmt::write
   8: core::fmt::write
   9: std::io::Write::write_fmt
  10: deno::util::logger::init::{{closure}}
  11: <env_logger::Logger as log::Log>::log::{{closure}}
  12: <env_logger::Logger as log::Log>::log
  13: log::__private_api::log_impl
  14: deno::tools::doc::doc::{{closure}}
  15: deno::spawn_subcommand::{{closure}}
  16: <deno_unsync::task::MaskFutureAsSend<F> as core::future::future::Future>::poll
  17: tokio::runtime::task::raw::poll
  18: deno::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```
Repository: excalidraw
Issue: The diamond's vertices do not line up exactly on the grid.
Labels: bug

![image](https://github.com/excalidraw/excalidraw/assets/40167269/4d6cee94-ecf4-43ce-a162-9b6d0bbbcfa1)

Excalidraw is the best. It's a great tool and I use it all the time. However, the diamond's vertices do not line up exactly on the grid. This is so inconvenient... Can this be fixed? It
Repository: vscode
Issue: Chat variables API
Labels: feature-request,api,chat

Proposal dts: https://github.com/microsoft/vscode/blob/roblou/chat-references/src/vscode-dts/vscode.proposed.chatVariableResolver.d.ts

Sample: https://github.com/microsoft/vscode-extension-samples/tree/main/chat-sample
Docs: https://code.visualstudio.com/api/extension-guides/chat#variables 

Extension authors can subscribe to this issue to get updates about the proposed Variables API. There may still be breaking changes coming, and we will post here whenever a breaking change is made.

We are very interested in feedback about how you might use this API.
Repository: neovim
Issue: remote: open file at line:column in existing or new nvim
Labels: enhancement,remote

## Request
I'd like to have an external program trigger opening neovim for a file at the given line and column, reusing any open instances of neovim or creating a new one.

Example integrations that would be benefit from this:
[Godot](https://docs.godotengine.org/en/stable/tutorials/editor/external_editor.html)
[Unity3d](https://docs.unity3d.com/Manual/Preferences.html#external-tools)
[Wezterm](https://wezfurlong.org/wezterm/config/lua/config/hyperlink_rules.html)

## What I tried

### Failed Attempt 1
Currently you can open a file in an existing instance or open a new instance with that file using:
```
nvim --server --remote-silent "/home/paul/test.txt" 
```
**Problem**: This does not support line numbers

### Failed Attempt 2
Currently you can open a file at the given line:column in an existing nvim instance using:
```
nvim --listen ~/.cache/nvim/server.pipe
nvim --server --remote-send ":e /home/paul/test.txt|100G20|<CR>" 
```
**Problem**: This does nothing if there isn't an existing instance.

### Expected behavior

Vim supported this with
```
vim --server --remote-silent +"normal 100G5|" "/home/paul/test.txt" 
```
So I expected that to work, but the `[+{cmd]]` part of `--remote-silent` is unimplemented in Neovim [as mentioned by the documentation](https://neovim.io/doc/user/remote.html). I don't need it to be implemented the same way as Vim though.
Repository: godot
Issue: Editor interpreting unsigned `uvec` shader uniform parameters as signed 
Labels: enhancement,topic:editor,topic:shaders

### Tested versions

Reproducible in v4.2.1-stable

### System information

Godot v4.2.1.stable - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M1 - Apple M1 (8 Threads)

### Issue description

The editor is refusing to let me specify integers over the 32-bit **signed** max for **unsigned** shader vector parameters. When I try to specify one over the signed max (i.e. an ARGB hexidecimal color) the editor reverts it to the **signed** 32-bit max. The max of an unsigned 32-bit integer field _should_ be 4294967295, but as you can see with the steps below it's capped at the signed 32-bit limit of 2147483647.

I'm not sure if this is a wider problem with Godot [using the signed Vector4i type for `uvec4` shader types](https://docs.godotengine.org/en/stable/tutorials/shaders/shader_reference/shading_language.html#uniforms) (which is a problem of it's own), or if this is just an issue with how the editor is interpreting the parameter limits.
![image](https://github.com/godotengine/godot/assets/28452108/2f5a0470-efec-417c-8427-62c763e02dcc)

![image](https://github.com/godotengine/godot/assets/28452108/c37bf018-d5dd-411f-b2cb-c49ab716004c)


### Steps to reproduce

1. Create a Shader with a `uvec2`, `uvec3`, or `uvec4` parameter (example using my shader):
```
// color_ramp.gd
shader_type canvas_item;

uniform uvec4 a_span; // [spanX, y, color0, color1]

varying vec4 v_rampColor;

mediump vec4 unpack_color_int(uint color) {
	// Format is ARGB
	uint r = (color >> 16u) & 0xffu;
	uint g = (color >> 8u) & 0xffu;
	uint b = (color >> 0u) & 0xffu;
	uint a = (color >> 24u) & 0xffu;

    return vec4(float(r), float(g), float(b), float(a)) / 255.0f;
}

void vertex() {
    v_rampColor = unpack_color_int((VERTEX_ID & 1) == 0 ? a_span.z : a_span.w);
}

void fragment() {
    COLOR = v_rampColor;
}
```
2. Attach the shader to a canvas item.
3. Attempt to set the Z or W parameters to a uint32 hex value, i.e. `4278255360` (`0xff00ff00`).
![image](https://github.com/godotengine/godot/assets/28452108/aee3783a-ac39-44fb-abc3-f26500cdd582)
4. Notice that after hitting enter, the value reverts to the **signed** 32-bit integer max.
![image](https://github.com/godotengine/godot/assets/28452108/39235d1c-3491-4daa-8b2e-02afcc78a417)


### Minimal reproduction project (MRP)

[unsigned_shader_parameter_issue.zip](https://github.com/godotengine/godot/files/15358931/unsigned_shader_parameter_issue.zip)
Repository: go
Issue: build: net failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- repo == "go" && pkg == "" && test == "net"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8747758503392081473)):

    FAIL	net	8.573s


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: react
Issue: [Compiler Bug]: Compiler disagrees with `exhaustive-deps` linter on whether `React.Ref<T>.current` must be in a deps array
Labels: Type: Bug,Status: Unconfirmed,Component: Optimizing Compiler

### What kind of issue is this?

- [X] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- [ ] babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- [ ] eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
- [ ] react-compiler-healthcheck (build issue installing or using the healthcheck script)

### Link to repro

https://playground.react.dev/#N4Igzg9grgTgxgUxALhAMygOzgFwJYSYAEUYCA6hDANYIwAUAlEcADrFFyFg5EDuVWjABKCNEQC8JMqLT1MUADaLGAbnbsi0hAFE0aBLnpNJAPhaat-QXVkA6OLBgJMvKZgR8ilGnXqsQOwB6AV8YOwArMAC1Sy1QoTtCAFsEMDAAQwBzBEkiegRmCXM2DitObghFBDtFCCz-EABZNMycojQYCGTrMLt+gIAaIkL1MqIAXzHy5xxYYhNii3H4mxExAH47HDpkvEwMnaZp8t6he0cYZ1c8hWUTrSnLCdjMS1n5s9sxMYmNTAw2HwhCITQytAAgj4hCZSlouJgeF91uIpKQKGtjv8tEEAFS4uK4ogASXEAE9oJwABYZTDtAAGCW+aHpRBwECIjLWFycLhw9OGOCpCEJFWSAAc8NUYPwpYoxZLqmyqXgwBUACa5LhXQw4RRkuyi0UAISgvCFuQg+jwcDwGXlCAAHjTSPgAG4IAC0mvFasU+x2Mr4cuVXS8QtVor4GRgmH2WSIhyIFKgyCNZSJogyuCIAAkIBBqEQs7g7OiAML2xQAI2zRZpatpJEwHkQ6RjZKIPpcmuwZLTGaIAHImSiHLzXEO7EQdHgLTKnXBFFBNUQ50QqERnMkIB7lSLB93ML24J2YzAMgbQWaMtWlW77VA0kR-bRh6OeTrJ6KYy4h7wH39dUuwQcUexcW1n2rQwMnRIhkhvfA6X3Hp1QgNJMH-UVnE9a5NRlC0FUIPk7DSf1XGcbMcE9KkC2oMAgidF0eDwD1vVA6JB1FMiA0o3AaLohimNgli2J9TirFxIJLARJEaWPapy39OAizRMhK2UWsVOMIoSjiZFP2uHAtnFCAeBadscnoIclxtWhgJBQjqzNdlMNeR5hgAbX0j8xEGfSgiCAyxHHL8cH8jgAF1XneBA5ljfJ9IAHmcnBXI3TAlLsiRgHk9VFOU6gJiIIJTEsV4JhACYgA

### Repro steps

I have a hook called `useWorker()` which creates and configures a WebWorker, returning it as a `React.RefObject<Worker>`, while careful to never perform a side effect during a render.

The compiler fails to compile my code as written, but succeeds if I specify `workerRef.current` as a dependency. But you're not supposed to express `Ref.current` as a dependency, per the `react-hooks/exhaustive-deps` linter:

> React Hook `React.useCallback` has an unnecessary dependency: `'workerRef.current'`. Either exclude it or remove the dependency array. Mutable values like `'workerRef.current'` aren't valid dependencies because mutating them doesn't re-render the component. eslint[react-hooks/exhaustive-deps](https://github.com/facebook/react/issues/14920)

### How often does this bug happen?

Every time

### What version of React are you using?

React Playground on 2024-05-17
Repository: godot
Issue: multiplayer.is_server() returns true by default
Labels: discussion,documentation,topic:multiplayer

### Tested versions

- Reproducable in v4.2.2.stable.official [15073afe3]

### System information

Godot v4.2.2.stable - Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.5244) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)

### Issue description

`multiplayer.is_server()` returns `true` in a fresh project. It's not stated like that in the documentation.

### Steps to reproduce

- Create a new Godot project
- in the `_ready()` function simply `print(multiplayer.is_server())`
- the returning value is `true` even though the peer is Offline

### Minimal reproduction project (MRP)

[TEst.zip](https://github.com/godotengine/godot/files/15359462/TEst.zip)
[TEst.zip](https://github.com/godotengine/godot/files/15359466/TEst.zip)
Repository: ollama
Issue: API HTTP code: 500, "error":"failed to generate embedding with langchain
Labels: bug,api

### What is the issue?

after version 0.1.32 of Ollama,there always have a bug with the api of embedding 
the embedding model I used is "smartcreation/bge-large-zh-v1.5",and dztech/bge-large-zh:v1.5 pulled from ollama

`
from langchain_community.embeddings import OllamaEmbeddings
from langchain_community.document_loaders import (
    CSVLoader,
    UnstructuredWordDocumentLoader,
)
from langchain_community.vectorstores import Qdrant
from qdrant_client import QdrantClient
base_url="http://127.0.0.1:11434")
embeddings = OllamaEmbeddings(model="dztech/bge-large-zh:v1.5",base_url=base_url)
LOADER_MAPPING = {
    ".csv": (CSVLoader, {}),
    # ".docx": (Docx2txtLoader, {}),
    ".doc": (UnstructuredWordDocumentLoader, {"mode": "elements"}),
    ".docx": (UnstructuredWordDocumentLoader, {}),}
def split(uploaded_file_name):
    # Create embeddings
    print("Creating new vectorstore")
    texts = process_documents(uploaded_file_name)
    print(f"Creating embeddings. May take some minutes...")
    db = Qdrant.from_documents(texts, embedding=embeddings,url='localhost:7541', collection_name=uploaded_file_name)
    print(uploaded_file_name)
    query = "insert"
    docs = db.similarity_search(query)
    print(docs[0].page_content)



`
 File "/Users/mac/anaconda3/envs/ag2/lib/python3.11/site-packages/langchain_community/vectorstores/qdrant.py", line 2037, in _embed_texts
    embeddings = self.embeddings.embed_documents(list(texts))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mac/anaconda3/envs/ag2/lib/python3.11/site-packages/langchain_community/embeddings/ollama.py", line 204, in embed_documents
    embeddings = self._embed(instruction_pairs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mac/anaconda3/envs/ag2/lib/python3.11/site-packages/langchain_community/embeddings/ollama.py", line 192, in _embed
    return [self._process_emb_response(prompt) for prompt in iter_]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mac/anaconda3/envs/ag2/lib/python3.11/site-packages/langchain_community/embeddings/ollama.py", line 192, in <listcomp>
    return [self._process_emb_response(prompt) for prompt in iter_]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mac/anaconda3/envs/ag2/lib/python3.11/site-packages/langchain_community/embeddings/ollama.py", line 166, in _process_emb_response
    raise ValueError(
ValueError: Error raised by inference API HTTP code: 500, {"error":"failed to generate embedding"}



### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.1.33-0.1.38
Repository: pytorch
Issue: [ONNX] export() with dynamic shapes fails where dynamo_export(dynamic_shapes=True) succeeds
Labels: needs reproduction,module: onnx,oncall: export

### 🐛 Describe the bug

Here is an example where dynamo_export() succeeds when run directly on a Module with dynamic_shapes=True, but fails if I first call export.export() on it. It happens more with partial dynamic shapes, but also happens when I set all dimensions to be fully dynamic.
  
Currently I have to call export() first due to another bug ([have to run decompositions manually](https://github.com/pytorch/pytorch/issues/125894)). 
So I am trying to pass an equivalent of 'dynamic_shapes=True' to export() and achieve the same result as when I call dynamo_export directly. This example does work if I specify all axes as dynamic, but fails if I only specify one: 
```
import torch
import torch.nn as nn

class Model(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, x):
        return nn.functional.softmax(x.view(x.size(1), -1), dim=0)

device = torch.device('cuda')
model = Model().to(device)
x = torch.rand(1024, 20, 16).to(device) 

batch = torch.export.Dim("batch")
x1 = torch.export.Dim("x1")
x2 = torch.export.Dim("x2")
# this one succeeds                                                                                                                       
dynamic_shapes={'x': {0: batch, 1: x1, 2: x2}}

# this one fails                                                                                                                          
dynamic_shapes={'x': {0: batch}}

model = torch.export.export(model, (x,), dynamic_shapes=dynamic_shapes, strict=False).run_decompositions()

options = torch.onnx.ExportOptions(dynamic_shapes=True)
onnx_program = torch.onnx.dynamo_export(model, x, export_options=options)
onnx_program.save('model.onnx')
```

### Versions

PyTorch nightly 05/15/24

cc @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4 @penguinwu