sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Buffers that are completely ignored by FSDP
Labels: triaged,module: fsdp

### 🚀 The feature, motivation and pitch

For implementing things like Alibi, we need a tensor in our model that is the same on each rank, is small, and never changes. This is very hard to do in FSDP.

It would be easiest if I could write this:

```Python
class MyModel(nn.Module):
    my_static_tensor = torch.randn(1,2,3)
```

Or maybe a little more practical:
```Python
class MyModel(nn.Module):
    my_static_tensor = MyModel.make_my_static_Tensor()

    @staticmethod
    def make_my_static_tensor():
        # do whatever
        return torch.randn(1,2,3)
```

I need to somehow indicate that `my_static_tensor` should never be touched by FSDP.

### Alternatives

In the OLMo codebase we did this to hide these tensors from FSDP: https://github.com/allenai/OLMo/blob/922db6aa17ec05de9f4d8e6e9799f80384021dc4/olmo/model.py#L91

This is annoying and required us to pass around an instance of `BufferCache` everywhere.

### Additional context

There is some helpful context in the doc string for our `BufferCache` class:
```
    """
    Cache for attention biases and other things that would normally be stored as buffers.
    We avoid using buffers because we've run into various issues doing so with FSDP.
    In general it appears the way FSDP handles buffers is not well-defined.
    It doesn't shard them but apparently it does synchronize them across processes, which we want to avoid
    since (A) it isn't necessary, and (B) we sometimes have `-inf` in these biases which might get turned into
    NaNs when they're synchronized due to casting or some other issue.
    """
```

cc @zhaojuanmao @mrshenli @rohan-varma @awgu @fegin @penguinwu @kwen2501
Repository: storybook
Issue: [Bug]: `vue-component-meta` does not work in monorepo
Labels: bug,help wanted,vue3,docgen

### Describe the bug

I'm using the new storybook `8.0.0-beta.5` but I'm not being able to get inference of more complex props and events provided by `vue-component-meta`. *My guess* is that it has something to do with the typescript config in my project:

```
apps
  storybook
    tsconfig.json
  web
    src
      components
        Button.vue
  tsconfing.json
```

If you want I could provide a repro in case you don't have an idea already how to fix this. It's just a bit of work to rip out all the unrelated parts. Just let me know :)

### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: TypeScript
Issue: Inconsistent error between different versions of the same function with required parameter following an optional one
Labels: Suggestion,Awaiting More Feedback

### 🔎 Search Terms

error function optional required rest

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.5.0-dev.20240227#code/GYVwdgxgLglg9mABAIwIYCcAUqBciwgC2yApugDQoD8eBxZlEtRpFiAdJxgOYDOevKOhhhuAbQC6ASkQBvAL4AoRWnSKA9OsQA9KolCRYCFBmzN6bZDXwsGiJjYuVO7Hv0SDhoyVLwA3OBgAE2VVTABGKQBuRE1EAFEADwAHEmgSIMRUKEQAGxJUQUQAZiz0biISMCheSmQQHO44HPD2TAAmAFZuqWUDaHgkNAAvM0dWOus6CY4ucvcxB2m7FzcBIRFxCWk5JRVUYY0tXX1wAeMRseXLKds2JbvnOb51ry3fRADg0IOI6NitElUulMtk8gUiqUeJVqrUUA1EE0Wm0uj1FEA

### 💻 Code

```ts
function bar(a: number, b?: number, c: number, ...args: string[]) {}

bar
// ^? function bar(a: number, b?: number, c: number, ...args: string[]): void

bar(1); // Expected at least 3 arguments, but got 1.(2555)

function baz(a: number, b?: number, ...args: [c: number, ...args: string[]]) {}

baz
// ^? function baz(a: number, b?: number, c: number, ...args: string[]): void

baz(1); // Expected at least 3 arguments, but got 1.(2555)
```


### 🙁 Actual behavior

We get an error within the `bar` declaration ("'c' is declared but its value is never read.(6133)") but we get none in `baz`. They are pretty much equivalent.

### 🙂 Expected behavior

I'd expect this error to be raised consistently here (or not raised consistently).

In addition to that, `b` comes with the question mark in both quick infos here. TypeScript understands that at least 3 arguments are required here. It means that **effectively** `b` is required in both cases and `?` is somewhat misleading here. I think it would be good to normalize this. It already is normalized with tuples:
```ts
type A = [a: number, b?: number, ...[c: number, ...args: string[]]]
//   ^? type A = [a: number, b: number | undefined, c: number, ...args: string[]]
```

### Additional information about the issue

_No response_
Repository: pytorch
Issue: [C10D] coalesced op hang does not respect timeout
Labels: oncall: distributed,module: c10d

adding this test case for example (first discovered this in debugging pipeline parallelism)
- originally observed the coalesced recv hang when matched with an allreduce on the other rank (due to user error..)
- interestingly the same thing happens if pairing up with a non-coalesced send op as in the test below

This might be tough to fix, but it would really be nice to convert this hang to a timeout or a crash.

```
diff --git a/test/distributed/test_c10d_nccl.py b/test/distributed/test_c10d_nccl.py
index a5b8c3f21a4..2aadb2d66c6 100644
--- a/test/distributed/test_c10d_nccl.py
+++ b/test/distributed/test_c10d_nccl.py
@@ -1097,6 +1097,37 @@ class ProcessGroupNCCLTest(MultiProcessTestCase):
             dist.recv(recv_tensor, 0)
             self.assertEqual(send_tensor, recv_tensor)
 
+
+    @requires_nccl()
+    @skip_but_pass_in_sandcastle_if(not TEST_MULTIGPU, "NCCL test requires 2+ GPUs")
+    def test_coalesced_recv_vs_allreduce(self):
+        store = c10d.FileStore(self.file_name, self.world_size)
+        pg = self._create_process_group_nccl(store, self.opts())
+        torch.distributed.distributed_c10d._set_pg_timeout(timedelta(seconds=2), pg)
+        device = self.rank_to_GPU[self.rank][0]
+
+        # Generate the same random tensor
+        torch.manual_seed(0)
+        send_tensor = torch.rand(10, 10, device=device)
+
+        # Setup phase- makes the communicator lazily initialize
+        if self.rank == 0:
+            dist.send(send_tensor, 1)
+        if self.rank == 1:
+            recv_tensor = torch.rand(10, 10, device=device)
+            dist.recv(recv_tensor, 0)
+            self.assertEqual(send_tensor, recv_tensor)
+
+        # Test phase- hangs
+        if self.rank == 0:
+            recv_tensor = torch.rand(10, 10, device=device)
+            op = dist.P2POp(dist.irecv, recv_tensor, 1)
+            dist.batch_isend_irecv([op]).pop().wait()
+            self.assertEqual(send_tensor, recv_tensor)
+        if self.rank == 1:
+            dist.send(send_tensor, 0)
+
+
```

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @yf225 @chauhang @shuqiangzhang
Repository: stable-diffusion-webui
Issue: [Bug]: Segmentation fault when launching on Apple Silicon
Labels: bug-report

### Checklist

- [X] 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
- [X] The issue has not been reported before recently
- [X] The issue has been reported before but has not been fixed yet

### What happened?

When I try to run `webui.sh`, I get a segmentation fault. 

### Steps to reproduce the problem

1. Install stable-diffusion-webui
2. Open `webui.sh` and add in the line `python_cmd="python3"`

### What should have happened?

It should open

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

Not applicable 

### Console logs

```Shell
$ ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on admin user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
python venv already activate or run without venv: /Users/admin/Documents/AI/stable-diffusion-webui/stable-diffusion
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 16:36:46)
[Clang 16.0.6 ]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --skip-torch-cuda-test --no-half --use-cpu interrogate
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Style database not found: /Users/admin/Documents/AI/stable-diffusion-webui/styles.csv
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
./webui.sh: line 256: 17932 Segmentation fault: 11  "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
```


### Additional information

_No response_
Repository: opencv
Issue: python - can't call fastnlmeansdenoisingmulti on 16 bit frames from video
Labels: bug

### System Information

OpenCV python version: 4.9.0-dev
Operating System / Platform: Windows 10 build 19045
Python version: 3.11.7

### Detailed description

when calling fastNlMeansDenoisingMulti to denoise single channel 16 bit frames from a video file cv2 raises an exception if normType is specified

### Steps to reproduce

```
cv.fastNlMeansDenoisingMulti(imgs, idx, temporalWindowSize, h, None, templateWindowSize, searchWindowSize, cv.NORM_L1)
```
raises
```
cv2.error: OpenCV(4.9.0-dev) :-1: error: (-5:Bad argument) in function 'fastNlMeansDenoisingMulti'
> Overload resolution failed:
>  - fastNlMeansDenoisingMulti() takes at most 7 arguments (8 given)
>  - fastNlMeansDenoisingMulti() takes at most 7 arguments (8 given)
>  - Can't parse 'h'. Input argument doesn't provide sequence protocol
>  - Can't parse 'h'. Input argument doesn't provide sequence protocol
```
when reading the function signature in VSCode it includes a version of fastNlMeansDenoisingMulti that takes 8 arguments
```
def fastNlMeansDenoisingMulti(
    srcImgs: Sequence[MatLike],
    imgToDenoiseIndex: int,
    temporalWindowSize: int,
    h: Sequence[float],
    dst: MatLike | None = ...,
    templateWindowSize: int = ...,
    searchWindowSize: int = ...,
    normType: int = ...
) -> MatLike: ...
```

When calling with
```
cv.fastNlMeansDenoisingMulti(imgs, idx, temporalWindowSize, h, normType=cv.NORM_L1) #removing optional arguments except for keyword arg normType
```
raises
```
cv2.error: OpenCV(4.9.0-dev) :-1: error: (-5:Bad argument) in function 'fastNlMeansDenoisingMulti'
> Overload resolution failed:
>  - 'normType' is an invalid keyword argument for fastNlMeansDenoisingMulti()
>  - 'normType' is an invalid keyword argument for fastNlMeansDenoisingMulti()
>  - Can't parse 'h'. Input argument doesn't provide sequence protocol
>  - Can't parse 'h'. Input argument doesn't provide sequence protocol
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: stable-diffusion-webui
Issue: [Feature Request]: XYZ plot QoL
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

If you use XYZ plot to try different hires checkpoints, it will always generate image that will be passed to hires thing.
It is not always needed, ie. in case you do lots of different hires checkpoints, starting image is always the same and should not be regenerated every time.

Other thing is that listing of options for plot is kinda messy, checkpoints and sampler things should be grouped together for better usability, and less useful stuff should be moved towards end of the listing.

### Proposed workflow

1. Go to XYZ plot
2. Select stuff without scrolling page and options without tripping
3. Save time by not having to wait same image to generate every singe time


### Additional information

_No response_
Repository: terminal
Issue: Korean text is not rendered properly
Labels: Area-Rendering,Issue-Bug,Product-Terminal

### Windows Terminal version

1.19.10302.0

### Windows build number

10.0.22621.3155

### Other Software

_No response_

### Steps to reproduce

Certain Korean text doesn't render properly. Example
`curl.exe https://gist.githubusercontent.com/pandaninjas/388ef63712016c853675dd33f0ab6864/raw/7c4f5b1d3107b2ee60c6a78d7c3a3e882ec2ebd2/korean-text.txt`


### Expected Behavior

Renders properly. Ex:
![image](https://github.com/microsoft/terminal/assets/101084582/fa2803c9-8695-42fb-b120-fd283b4fd141)


### Actual Behavior

Korean text is printed weirdly
![image](https://github.com/microsoft/terminal/assets/101084582/c4b38b2d-24b2-4b9f-8bfa-b8efb3d88c9a)
Repository: godot
Issue: AudioStreamPlaybackPolyphonic doesn't emit `finished` signal for each AudioStream neither allow get the reference from ID
Labels: enhancement,topic:audio,topic:animation

### Tested versions

Godot 4.2.1

### System information

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

### Issue description

`AudioStreamPlayer`s don't emit the `finished` signal after playing a stream from an Audio Playback track.

### Steps to reproduce

Add an animation with an Audio Playback track. Connect the `AudioStreamPlayer`'s `finished` signal to a method in a script, and do a `print()`

### Minimal reproduction project (MRP)

N/A
Repository: vscode
Issue: Can not install vscode on Debian 10
Labels: bug,linux,deb

https://code.visualstudio.com/docs/supporting/faq#_can-i-run-vs-code-on-older-linux-distributions

> Starting with VS Code release 1.86.1 (January 2024), VS Code desktop is only compatible with Linux distributions based on glibc 2.28 or later, for example, Debian 10, RHEL 8, or Ubuntu 20.04.

It seems that Debian 10 is still supported now, but when I installed it:

```
$ sudo apt install code
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 code : Depends: libxkbfile1 (>= 1:1.1.0) but 1:1.0.9-2+b11 is to be installed
E: Unable to correct problems, you have held broken packages.

```
Repository: flutter
Issue: [image_picker] Clean up PickedFile and related methods.
Labels: p: image_picker,package,team-ecosystem,P3,c: tech-debt,p: requires breaking change,triaged-ecosystem

The `image_picker` plugin used to use a precursor of `cross_file` to return multi-platform representation of files: `PickedFile`.

All the methods that return `PickedFile` were removed from the source a while ago, but the type and methods that use them still exist in the package:

* https://github.com/search?q=repo%3Aflutter%2Fpackages+PickedFile&type=code&p=1

We should clean-up `PickedFile` from everywhere.

Affected packages:

* User documentation (README), [publically exports the type](https://github.com/flutter/packages/blob/7cdcf30f8f9919dbf02865fe0c665782bf22360a/packages/image_picker/image_picker/lib/image_picker.dart#L15)
  - [ ] `image_picker`
* Contains code that uses the type:
  - [ ] `image_picker_android`
  - [ ] `image_picker_ios`
  - [ ] `image_picker_macos`
  - [ ] `image_picker_linux`
  - [ ] `image_picker_windows`
* Defines the type, and uses it in interface methods:
  - [ ] `image_picker_platform_interface`

Even though this is deprecating a publically exposed type, this probably *should* not be a breaking change (we bit that bullet on the v1.0 release: https://github.com/flutter/packages/pull/4285)
Repository: flutter
Issue: [Proposal]: When running in a TTY, give us more feedback
Labels: c: new feature,tool,c: proposal,team-tool

### Use case

The CLI should differentiate between TTY and script.
When running in a TTY, it should tell us how to deploy locally.

![image](https://github.com/flutter/flutter/assets/11139560/754f2478-023b-45ef-9924-965c09c5b68a)


for the example, the above should say:

```
You have just built the app to build/web
to deploy it locally use `flutter run -d chrome`
```

that would be nice.........

### Proposal

![image](https://github.com/flutter/flutter/assets/11139560/754f2478-023b-45ef-9924-965c09c5b68a)
Repository: node
Issue: Remove dependency on Chocolatey
Labels: feature request

### What is the problem this feature will solve?

Windows users are concerned by the check box in the installer (#30242) - why not remove the external dependency?

Chocolatey is an independent, open core (with proprietary extensions), package manager for Windows that **recreates existing functionality** included in all current versions of Windows. Chocolatey has its own set of problems, mostly stemming from the independent partially closed source for profit nature of the project.

### What is the feature you are proposing to solve the problem?

[`winget`](https://learn.microsoft.com/en-us/windows/package-manager/winget/) is an open source package manager from Microsoft and is installed by default on modern versions of Windows. It has all the packages that Chocolatey wants to install.

_This is equivalent to the checkbox, with **newer package versions**, and without Chocolatey:_

```powershell
winget install -e --id Python.Python.3.12
winget install -e --id Microsoft.VisualStudio.2022.Community --override "--quiet --add Microsoft.VisualStudio.Workload.VCTools"
```

### What alternatives have you considered?

[WiX Toolset](https://wixtoolset.org/), which is [already in use](https://github.com/nodejs/node/blob/main/tools/msvs/msi/nodemsi/nodemsi.wixproj), might have all the capabilities necessary to install these optional dependencies without using any PowerShell scripts.

### Additional Resources

- I've created a [trivial program](https://github.com/cinderblock/node-gyp-test) to test if native addons' dependencies are installed and working.
- https://github.com/nodejs/node-gyp#on-windows
Repository: stable-diffusion-webui
Issue: How to update the latest stable-diffusion's webui ,and install  localization-zh_CN?
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

How to update the latest stable-diffusion's webui ,and install  localization-zh_CN?

### Proposed workflow

How to update the latest stable-diffusion's webui ,and install  localization-zh_CN?

### Additional information

_No response_
Repository: terminal
Issue: Windows Terminal text overlaps in some GB18030-2022 Chinese Standard Code Characters 
Labels: Area-Rendering,Issue-Bug,Product-Terminal

### Windows Terminal version

1.19.10573.0

### Windows build number

10.0.22621.3155

### Other Software

_No response_

### Steps to reproduce

- Change System Locale to `Chinese (Simplified, China)` and Restart your machine
   - Control Panel -> Clock & Region -> Region (Administrative) -> Change system locale to Chinese (Simplified, China)
- New a Windows Terminal of PowerShell/cmd (The default chcp code page is 936 according to the system locale)
- Copy some GB18030-2022 Chinese Standard Code Characters `①Ⅻㄨㄩ啊阿鼾齄丂丄狚狛狜狝﨨﨩ˊˋ˙–⿻〇` to the terminal and verify if the test character set can be rendered well.

### Expected Behavior

Each character can be rendered individually in the terminal.

### Actual Behavior

Both PowerShell and cmd have some glyphs overlapping.

![image](https://github.com/microsoft/vscode/assets/14052197/d3a0955d-a2cc-4a26-9737-5ca9e6b1e0a8)
Repository: neovim
Issue: Cannot set treesitter parser for terminal buffer on `TermOpen`
Labels: bug,terminal,treesitter

### Problem

When viewing diff files in a terminal buffer, I usually open the buffer, view the diff, and immediately close the buffer. Right now I'm relying completely on the terminal for colors but it'd be great if I could just tell that buffer "Please syntax highlight this buffer as though it was a diff file". But that doesn't seem to be possible yet.

### Steps to reproduce

<details>
<summary>See reproduction.lua file</summary>

```lua
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
    {
        "nvim-treesitter/nvim-treesitter",
        build = ":TSUpdate",
        config = function()
            require("nvim-treesitter.configs").setup {
                ensure_installed = { "diff" },
                highlight = {
                    enable = true,
                },
            }
        end
    },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.api.nvim_create_user_command(
    "OpenDiff",
    "terminal cat /tmp/diff.diff",
    { nargs = 0 }
)

vim.api.nvim_create_user_command(
    'OpenDiff2',
    'execute "terminal cat /tmp/diff.diff" | lua vim.treesitter.start(0, "diff")',
    { nargs = 0 }
)

vim.api.nvim_create_autocmd(
    "TermOpen",
    { callback = function() vim.treesitter.start(0, "diff") end }
)


```
</details>

Make a diff file for `/tmp/diff.diff`

```sh
echo -e "foo\nbar" > /tmp/a
echo -e "foot\ntar\nthing" > /tmp/b
diff -u /tmp/a /tmp/b > /tmp/diff.diff
```

Open nvim with `nvim -u reproduction.lua` and call `:OpenDiff` or `:OpenDiff2`, neither will have diff highlighting. However if you're in the normal mode in the terminal buffer and manually type `:lua vim.treesitter.start(0, "diff")` then it works

### Expected behavior

Setting the terminal buffer with the "diff" parser should apply that tree-sitter parser to the buffer. Either as a part of `TermOpen` or as a follow-up command such as `execute "terminal cat /tmp/diff.diff" | lua vim.treesitter.start(0, "diff")`

### Neovim version (nvim -v)

NVIM v0.10.0-dev-2465+ga7788c2e2

### Vim (not Nvim) behaves the same?

n/a

### Operating system/version

CentOS Linux 7 (Core)

### Terminal name/version

gnome-terminal - # GNOME Terminal 3.28.2 using VTE 0.52.4 +GNUTLS

### $TERM environment variable

screen-256color

### Installation

Compiled from source