sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: proxy settings for AI 
Labels: Idea-Enhancement,Needs-Triage,Product-Advanced Paste

### Description of the new feature / enhancement

Hello, can you please make work via proxy or vpn in "Advanced Paste" parameters, because OpenAI is the most open and free that closed access from some countries. I have an api key and can buy the pro version. Even in JavaGPT there is a proxy related parameter

### Scenario when this would be used?

Menu where you can use proxy only for OpenAI requests. In short, don't force to enable system vpn for the sake of just one function

### Supporting information

https://platform.openai.com/docs/supported-countries Unfortunately the country I live in is not on the list, but I use daily using proxy or vpn on different devices
![AdvancedPasteAInotWork](https://github.com/microsoft/PowerToys/assets/90134163/c1759d43-b85b-407a-95aa-7f6ae84392a7)
Repository: PowerToys
Issue: Advanced Paste - Implement EMACS style kill-ring
Labels: Idea-Enhancement,Product-Advanced Paste

### Description of the new feature / enhancement

EMACS kill-rings allow you to access your clipboard history with multiple invocations of the paste command. 

While you can get the same functionality now, this feature means that I can do it with one keyboard shortcut rather than having to navigate a menu to select the item i want to paste.

### Scenario when this would be used?

This would allow me to quickly paste in data from clipboard history with few keystrokes.

### Supporting information

_No response_
Repository: pytorch
Issue: [dynamo] Trace through chunk jacrev error properly.
Labels: triaged,oncall: pt2,module: functorch,module: dynamo,module: pt2-dispatcher

Discovered with https://github.com/pytorch/pytorch/pull/126341.

Repro command: `PYTORCH_TEST_WITH_DYNAMO=1 pytest test/functorch/test_eager_transforms.py::TestJacCPU::test_chunk_jacrev_chunksize_one__preallocate_and_copy_False_cpu` and `PYTORCH_TEST_WITH_DYNAMO=1 pytest test/functorch/test_eager_transforms.py::TestJacCPU::test_chunk_jacrev_chunksize_one__preallocate_and_copy_True_cpu`.

Fails on this line: `jacrev(f, chunk_size=2, _preallocate_and_copy=_preallocate_and_copy)(x)` due to `RuntimeError: vmap: We do not support batching operators that can output dynamic shape. Attempted to vmap over aten::nonzero.`. Dynamo should encounter this error during tracing, rather than at runtime.

cc @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang @zou3519 @Chillee @samdow @kshitij12345 @janeyx99 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng
Repository: ollama
Issue: Enable concurrency by default for AMD GPU on windows - requires ROCm v6.2 windows release
Labels: bug,windows,amd

### What is the issue?

When running model concurrency, the scheduler is unaware of WDDM KMD memory allocations on system memory and just looks like GPU reported memory usage, which can lead to loading too many models and layers, resulting in thrashing and poor performance.

### OS

Windows

### GPU

Nvidia, AMD

### CPU

Intel

### Ollama version

_No response_
Repository: transformers
Issue: Trainer should throw a warning if max_sequence_length < number of tokens in dataset sample record.
Labels: trainer,Feature request

### Feature request

If the samples in the training dataset exceeds max_sequence_length the trainer should throw a warning.

### Motivation

Without warning devs are scratching their heads trying to understand why finetuning doesn't work for them.

### Your contribution

Willing to review the change.
Repository: next.js
Issue: outputFileTracing increases export build time by 1.5-2x
Labels: Upstream,bug,Performance

### Link to the code that reproduces this issue

https://github.com/lnewson/nextjs-reproduction

### To Reproduce

1. Run `yarn build` and take note of the time (~5s for me)
2. Edit `next.config.ts` and change `outputFileTracing` to `true` (or just delete it)
3. Run `yarn build` and take note of the time (~8s for me)
4. Attempt to exclude all files from being traced by adding the following and run `yarn build`, but note it makes little to no difference.

```
  experimental: {
    outputFileTracingExcludes: {
      '**/*': ['./**/*'],
    },
  },
```

### Current vs. Expected behavior

We've not long upgraded to Next.js 14 and logging this issue per the following warning added in Next.js 14:

>  ⚠ Disabling outputFileTracing will not be an option in the next major version. Please report any issues you may be experiencing to https://github.com/vercel/next.js/issues

The expected behaviour would be that the file tracing can either be disabled still or that having it enabled does not drastically reduce export build performance. Ideally for export builds, as I cannot see a reason for it in that case, it would be good if it didn't run at all.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
Binaries:
  Node: 20.11.1
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.3
Next.js Config:
  output: export
```


### Which area(s) are affected? (Select all that apply)

Performance, Upstream

### Which stage(s) are affected? (Select all that apply)

next build (local)

### Additional context

For our use case we are just using Next.js as a static site generator and then hosting the generated output using a webserver. So having the file tracing done does not help us in anyway I'm aware of and I'm not sure it even makes sense for it to be running in `export` mode?

In our production system the file tracing performance issue is much worse (~2000 mdx pages). Build times go from ~6mins to ~10-12mins (these run on linux/ubuntu AWS EC2 instances).

This issue also occurred throughout various versions of Next.js 13. I also tested this using Next.js 14.1.4 as an early upgrade PoC. I'm not sure if it ever didn't cause an issue with export performance as we've only used Next 13.2 or higher.

I've left all dependencies in package.json in case that helps to debug issues (excluding 2 internal only ones as those cannot be included).

Note: I've made each build clear any caches to reproduce the issue more clearly. Having a cache does not impact the file tracing time though in testing and in fact just makes the proportions worse as the webpack build part takes less time.
Repository: PowerToys
Issue: Mouse without borders - Primary button swap
Labels: Issue-Bug,Product-Mouse Without Borders

### Microsoft PowerToys version

0.70.0

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

Both PC's (Win 11) have mouse primary buttons set as right.

Setup Mouse Without Borders. Mouse functions normally on master PC, but buttons are switched on the slave PC without any alerts.

### ✔️ Expected Behavior

Mouse buttons will function on both PC's with PC native primary mouse button setup or alternatively with primary mouse setup derived from the master PC.

### ❌ Actual Behavior

Mouse button function is swapped to left mouse button as the primary button although it is not setup that way for both the PC's.

### Other Software

_No response_
Repository: rust
Issue: Issue with static functions when using feature effects
Labels: A-diagnostics,T-compiler,C-bug,D-incorrect,F-const_trait_impl,S-has-mcve,requires-incomplete-features,F-effects

The file structure:

```
src/
├── const_value.rs
├── lib.rs
└── main.rs
```

I tried this code:

in const_value.rs
```rust
pub struct Assert<const CHECK: bool>;
pub trait IsTrue {}
impl IsTrue for Assert<true> {}

pub struct ConstValue<const VALUE: u16>;

impl<const VALUE: u16> ConstValue<VALUE> {
    pub const fn new() -> Self {
        Self
    }
    
    pub const fn test<const OTHER: u16>()
    where
        Assert<{VALUE == OTHER}> : IsTrue
    {

    }

    pub const fn self_test<const OTHER: u16>(self)
    where
        Assert<{VALUE == OTHER}> : IsTrue
    {

    }
}
```

in lib.rs
```rust
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]
#![feature(effects)]

pub mod const_value;
```

in main.rs
```rust
use project_name::ranged_value::ConstValue;

pub fn main() {
    ConstValue::<1>::test::<1>();
    ConstValue::<1>::new().self_test::<1>();
}
```

There is a compiler error: 
```
error[E0277]: the trait bound `Assert<testing::::const_value::{impl#1}::test::{constant#0}>: IsTrue` is not satisfied
  --> src/main.rs:4:29
   |
4  |     ConstValue::<1>::test::<1>();
   |                             ^ the trait `IsTrue` is not implemented for `Assert<testing::::const_value::{impl#1}::test::{constant#0}>`
   |
   = help: the trait `IsTrue` is implemented for `Assert<true>`
note: required by a bound in `ConstValue::<VALUE>::test`
  --> /home/river/Desktop/Projects/testing/src/const_value.rs:14:36
   |
12 |     pub const fn test<const OTHER: u16>()
   |                  ---- required by a bound in this associated function
13 |     where
14 |         Assert<{VALUE == OTHER}> : IsTrue
   |                                    ^^^^^^ required by this bound in `ConstValue::<VALUE>::test`
```

This error is out of place, because the bounds are be met, as proven by the line 5 working.  In fact, once you remove !#[feature(effects)], the code compiles correctly.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.78.0-nightly (381d69953 2024-02-24)
binary: rustc
commit-hash: 381d69953bb7c3390cec0fee200f24529cb6320f
commit-date: 2024-02-24
host: x86_64-unknown-linux-gnu
release: 1.78.0-nightly
LLVM version: 18.1.0

```
Repository: opencv
Issue: Replacing the Lena image from the documentation
Labels: category: documentation

### Describe the doc issue

I propose to replace the Lena image of the tutorials by another image of set of images. Following the [Losing Lena movement](https://youtu.be/GIknIiOOFWo).

There is several problems with this image including:

 - Sexualization: The Playboy magazine context implies that the original purpose of the image was to objectify and commodify women's bodies. Using this image as a benchmark may perpetuate these problematic attitudes towards women and their bodies
 - Objectification and gender bias: The fact that the original image is of a woman in a sexualized pose raises concerns about objectification and gender bias. Using an image that perpetuates harmful gender stereotypes can reinforce existing power imbalances.
 - Inclusivity: Related to the previous point, if it can avoid greasy laugh and display a better image of computer science, it's a winning change for everybody.
 - It's not modern. The image is fifty years old now but the main problem is that it's *de facto* not a standard anymore. Many publishers systematically refuses articles with the image of Lena (including Nature, IEEE, Arxiv, a lot of US universities). Not using the Lena image is so more modern than using it, I think it's relevant considering the upcoming release of OpenCV 5. 


### Fix suggestion


To do this, I think it's more effective to remove it first from the tutorials then remove it from the tests (it's why I set this as a documentation issue).
I can do it myself and will publish a PR tomorrow about it (I already started it).

What do you think ?
Repository: ant-design
Issue: Automatic configuration of the dropdown list location in Dropdown 
Labels: help wanted,Inactive

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/react-wcw7f4-fsvtmv?file=demo.tsx)

### Steps to reproduce

I want to set up my drop-down list so that it always unfolds downwards. Using the autoAdjustOverflow={false} property, I get it. But how do I get the same behavior for the second nesting level?

### What is expected?

I expect a drop-down list to open.

### What is actually happening?

The "submenu" opens up

| Environment | Info |
| --- | --- |
| antd | undefined |
| React | "react": "^18.2.0" |
| System | Windows 10 |
| Browser | Yandex 24.4.3.1012 (64-bit) |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ollama
Issue: Fast-copy files on `ollama create` if accessible
Labels: feature request

`ollama create` given a model file which references a local .gguf file currently does a regular copy of the .gguf file.

A copy on write would save disk space and be faster, allowing people to have gguf files in multiple places without paying the disk space penalty.

This is only possible on a few different file systems.  APFS is one (on all modern Macs), Btrfs, zfs, etc.

Changing `cp` to `cp -c` should do it on Macs.  `cp --reflink=auto` should work on linux.
Repository: pytorch
Issue: Choose better configs for `tuned_mixed_mm`
Labels: triaged,oncall: pt2,module: inductor

### 🚀 The feature, motivation and pitch

https://github.com/pytorch/pytorch/blob/27594be3ed602c28ae285923cf852d82603587a8/torch/_inductor/kernel/mm.py#L371

`tuned_mixed_mm` (i.e. int8 matmuls) have pretty bad perf, largely due to poor tile sizes chosen. Choose better tile sizes for it, particularly for cases where the batch size (e.g. `A.shape[0]`) is pretty small.

In this case, it only achieves 350 GB/s.
```
import torch
import time
from triton.testing import do_bench
import torch._inductor.config as config

torch.set_default_device("cuda")
A = torch.randn(16, 8192, dtype=torch.float16)
B = torch.randn(8192, 8192).t().to(dtype=torch.int8)

config.force_mixed_mm = True
@torch.compile(mode="max-autotune-no-cudagraphs")
def f(A, B):
    return torch.mm(A, B.to(A.dtype))

ms = do_bench(lambda: f(A, B))
print(f"{(1e3/ms) * B.dtype.itemsize * B.numel() / 1e9} GB/s")
```

### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire
Repository: godot
Issue: Font.is_language_supported always returns true
Labels: enhancement,topic:core,documentation

### Tested versions

v4.3.dev6.official [89850d553]

### System information

Godot v4.3.dev6 - Windows 10.0.26217 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (NVIDIA; 32.0.15.6038) - Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz (8 Threads)

### Issue description

Font.is_language_supported always return true no matter what language code I give and what font I set.

```gdscript
var language_codes = ["zh", "en", "ja", "ko", "th", "ar", "ru", "id", "tl", "de", "es"]

func support_language(language_code: String):
	var font = load("res://OpenSans-Regular.ttf")
	var result = font.is_language_supported(language_code)
	print(language_code, " ", result)
```

Output
```
zh true
en true
ja true
ko true
th true
ar true
ru true
id true
tl true
de true
es true
```

### Steps to reproduce

See above.

### Minimal reproduction project (MRP)

[mrp.zip](https://github.com/godotengine/godot/files/15426693/mrp.zip)
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
- [ ] 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?

no

### Steps to reproduce the problem

no

### What should have happened?

no

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

no

### Console logs

```Shell
Collecting environment information...
PyTorch version: 1.13.1+cu117
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.3 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.17.20200320-g6bea0b2
Libc version: glibc-2.27

Python version: 3.10.9 (main, Mar  1 2023, 18:23:06) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.10.0-60.70.0.94.oe2203.bclinux.x86_64-x86_64-with-glibc2.27
Is CUDA available: True
CUDA runtime version: 11.7.99
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: Tesla V100S-PCIE-32GB
Nvidia driver version: 515.105.01
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.23.5
[pip3] numpydoc==1.5.0
[pip3] torch==1.13.1+cu117
[pip3] torchaudio==0.13.1+cu117
[pip3] torchvision==0.14.1+cu117
[conda] blas                      1.0                         mkl  
[conda] mkl                       2021.4.0           h06a4308_640  
[conda] mkl-service               2.4.0           py310h7f8727e_0  
[conda] mkl_fft                   1.3.1           py310hd6ae3a3_0  
[conda] mkl_random                1.2.2           py310h00e6091_0  
[conda] numpy                     1.23.5          py310hd5efca6_0  
[conda] numpy-base                1.23.5          py310h8e6c178_0  
[conda] numpydoc                  1.5.0           py310h06a4308_0  
[conda] torch                     1.13.1+cu117             pypi_0    pypi
[conda] torchaudio                0.13.1+cu117             pypi_0    pypi
[conda] torchvision               0.14.1+cu117             pypi_0    pypi
```





Traceback (most recent call last):
  File "/root/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/root/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/root/stable-diffusion-webui/modules/launch_utils.py", line 386, in prepare_environment
    raise RuntimeError(
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: pytorch
Issue: T5 -small Dynamic quantization in graviton3 
Labels: oncall: quantization

I am trying dynamic quantization for Hugging face T5-small model in graviton3 .I have used 
``` torch.quantization.quantize_dynamic(model, qconfig_spec={torch.nn.Linear}, dtype=torch.qint8) ```

In oneDNN log I observed only 2D matmuls are using quantized kernels and 3D matmuls are using FP32 kernels. How we can enable these kernels for int8.



cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel
Repository: ant-design
Issue: DatePicker renderExtraFooter on the right side of dropdown calendar
Labels: Inactive,unconfirmed

### What problem does this feature solve?

This feature enables developer to customize the position of extra component shown along with a dropdown calendar.

### What does the proposed API look like?

renderExtra = {mode => React.ReactNode}
renderExtraPosition = "top" || "down" || "left" || "right"

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ollama
Issue: /THUDM/CogVLM2
Labels: model request

https://github.com/THUDM/CogVLM2


thanks!
Repository: ui
Issue: [bug]: Wrong gap in select filed when value overflows
Labels: bug

### Describe the bug

When a Select Option has long value and it's selected, there is a big gap (padding) on the left. It seems value center aligned. It looks awkward and inconsistent.
<img width="231" alt="Screenshot 2024-05-24 at 07 47 22" src="https://github.com/shadcn-ui/ui/assets/1269330/b7b026ed-a98d-4c20-9610-8461e1ce54ce">

Other option:

<img width="228" alt="Screenshot 2024-05-24 at 07 50 09" src="https://github.com/shadcn-ui/ui/assets/1269330/64b3cb15-57eb-41c9-8cae-b3f587a9665f">



### Affected component/components

Select

### How to reproduce

Add long value to a Select's Option

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
MacOS, ReactJS 18
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: pytorch
Issue: PyTorch DataLoader improvements for Iterable Dataset
Labels: module: dataloader,triaged

### 🚀 The feature, motivation and pitch

Currently, the PyTorch DataLoader makes it hard to design properly IterableDataset that correctly function.

The main reason is that the IterableDataset needs to know about the num_workers, batch_size and shuffle argument provided to the DataLoader in order to work properly. One could argue to expose them on the IterableDataset, but this isn't intuitive for new users and leads to more issues. Some could provide the same batch_size to both the dataset and DataLoader.

I am thinking a simple solution would be to have a protocol for IterableDataset. If they have a `setup` function, it would be called in the DataLoader __init__ function to pass down the arguments of the user (num_workers, batch_size, shuffle).

Interestingly, this is already done for DataPipes: https://github.com/pytorch/pytorch/blob/main/torch/utils/data/dataloader.py#L305 but only with shuffling.

In the framework LitData: https://github.com/Lightning-AI/litdata, I had to override the PyTorch DataLoader to support this properly: https://github.com/Lightning-AI/litdata/blob/main/src/litdata/streaming/dataloader.py#L479. So the length of the iterable dataset doesn't cause issues with DDP.
  

### Alternatives

Subclass the PyTorch DataLoader

### Additional context

_No response_

cc @andrewkho @gokulavasan @SsnL @VitalyFedyunin @dzhulgakov
Repository: ant-design
Issue: Watermark component is not working on the iPad
Labels: help wanted,Inactive

### Reproduction link

[https://github.com/ant-design/ant-design/tree/master/components/watermark](https://github.com/ant-design/ant-design/tree/master/components/watermark)

### Steps to reproduce

Open Watermark Example from iPad（ https://ant-design.antgroup.com/components/watermark-cn ）You can see that

### What is expected?

Displaying watermarks normally on iPad

### What is actually happening?

No watermark displayed

| Environment | Info |
| --- | --- |
| antd | 5.17.3 |
| React | 17.0.45 |
| System | iPadOS 15.2（Ninth generation iPad） |
| Browser | Safari |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->