sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: torch.compiler docstrings can be derived from _dynamo and _inductor docs
Labels: module: docs,triaged,topic: docs,oncall: pt2

### 📚 The doc issue

The existing `torch.compiler` namespace was created to house public functions that are useful for end users leveraging `torch.compile` https://github.com/pytorch/pytorch/blob/main/torch/compiler/__init__.py

All of the functions in the namespace mimic exactly functions that exist in the `_dynamo` or `_inductor` namespaces but the docstrings differ and because devs iterate more on the internal functions then the public function is more likely to remain stale

For example

```python
# in torch.compiler
def reset() -> None:
    """
    This function clears all compilation caches and restores the system to its initial state.
    It is recommended to call this function, especially after using operations like `torch.compile(...)`
    to ensure a clean state before another unrelated compilation
    """
    import torch._dynamo

    torch._dynamo.reset()
```

```python
# in torch/_dynamo

def reset() -> None:
    """Clear all compile caches and restore initial state"""
    with convert_frame.compile_lock:
        reset_code_caches()
        convert_frame.input_codes.clear()
        convert_frame.output_codes.clear()
        orig_code_map.clear()
        guard_failures.clear()
        graph_break_reasons.clear()
        resume_execution.ContinueExecutionCache.cache.clear()
        _reset_guarded_backend_cache()
        reset_frame_count()
        torch._C._dynamo.compiled_autograd.clear_cache()
        convert_frame.FRAME_COUNTER = 0
        convert_frame.FRAME_COMPILE_COUNTER.clear()
        callback_handler.clear()
        GenerationTracker.clear()
```

However docstrings are just an attribute of python functions for example `reset.__doc__`. Same approach should work for classes as well.

### Suggest a potential alternative/fix

_No response_

cc @svekars @brycebortree @ezyang @bdhirsh @anijain2305 @chauhang
Repository: flutter
Issue: [flutter_engprod] ☂️ Schedule CI Builds from LUCI Scheduler
Labels: team-infra,P3,triaged-infra

- [ ] Schedule presubmit checks from GitHub actions https://github.com/flutter/flutter/pull/148724
Repository: pytorch
Issue: Avoid Having to Register Op For ExternKernelChoice of Aten Refs
Labels: triaged,oncall: pt2,module: inductor

### 🚀 The feature, motivation and pitch

See comment and pr here: https://github.com/pytorch/pytorch/pull/105153/files#r1619704563. 

Ideally we could figure out a way of compiling the decomposed reference here instead of requiring new op registry. This would make the api for registering templates with aten references more ergonomic.

### 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: excalidraw
Issue: chore: update translations
Labels: i18n

Hi!

Some time ago I opened #6291 to translate the "help" button in the menu.

As requested in the comments of the PR, I added the translation at [crowdin](https://crowdin.com/editor/excalidraw/10/en-ptbr?view=comfortable&filter=basic&value=0#q=help):

![image](https://github.com/excalidraw/excalidraw/assets/66224956/61db81a0-f595-4442-b5f2-eb882b8a71d6)

However, it hasn't been changed yet.

I look out how to do it, and found #3858 & #2790, but it isn't clear what should I do to make the changes...

Also read the docs on "[how to contribute](https://docs.excalidraw.com/docs/introduction/contributing)" and "[translate](https://docs.excalidraw.com/docs/introduction/contributing#translating)" and it didn't show exactly what I needed. 

I'm thinking about exporting the files from crowdin and open a PR directly making the changes, and maybe update some other translation lost in the last updates.

How can I proceed?
Repository: angular
Issue: AngularJS  structural directives doesn't render Angular web components created using Angular elements
Labels: area: elements

### Which @angular/* package(s) are the source of the bug?

elements

### Is this a regression?

Yes

### Description

Custom web components created using Angular's 'createCustomElement' do not render inside AngularJs's structural directives like ng-repeat and ng-if etc.

Web components created using native APIs work fine inside AngularJs's structural directives, **only angular's web components are not rendering.**

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/typescript-ufccb5?file=index.ts,index.html

### Please provide the exception or error you saw

```true
In the provided stackblitz link, the Angular's web component renders correctly for the first time.

Now click on the ADD button.

The Angular's web component is removed completely from the DOM. In contrast, the web component created using just the native HTML works fine.
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
The issue can be replicated with Angular 15 as well
```


### Anything else?

_No response_
Repository: node
Issue: Failed to build node in windows because dependency openssl.lib didn't build
Labels: windows,build,openssl

### Version

_No response_

### Platform

Microsoft Windows NT 10.0.22631.0 x64

### Subsystem

_No response_

### What steps will reproduce the bug?

Following instruction in windows section of BUILDING.md.
`./vcbuild debug'

### How often does it reproduce? Is there a required condition?

It happens every time I try to build node.

### What is the expected behavior? Why is that the expected behavior?

I should built successfully

### What do you see instead?

The log is in Chinese, I have search and translated into english.
```
C:\Users\xiongmao86\projects\nodejs\deps\openssl\openssl\crypto\cversion.c(75,33): error C2153: hex constants must have at least one hex digit [C:\Users\xiongmao86\projects\nodejs\deps\openssl\openssl.vcxproj]

C:\Users\xiongmao86\projects\nodejs\deps\openssl\openssl\crypto\cversion.c(75,33): warning C4129: “p”: unrecognized character escape sequence [C:\Users\xiongmao86\projects\nodejs\deps\openssl\openssl.vcxproj]

C:\Users\xiongmao86\projects\nodejs\deps\openssl\openssl\crypto\cversion.c(75,33): warning C4129: “$”: unrecognized character escape sequence [C:\Users\xiongmao86\projects\nodejs\deps\openssl\openssl.vcxproj]
```

### Additional information

The reason why this is broken is because the `<(PRODUCT_DIR_ABS)>` of  `openssl.gyp` evaluate to `C:\Users\xiongmao86\projects\nodejs\$(ConfigurationName)`, and this string is used to define `MODULESDIR` macro,  and because `\` is use to escape character in string literal, c does not recognize this path, causing the openssl build to fail. After I added a new variable set by `C:/Users/xiongmao86/projects/nodejs/$(ConfigurationName)`, and replace the `PRODUCT_DIR_ABS` with it in the else section in the condition `GENERATOR == "ninja"`, The build is successful.

I am not familliar with the code base, if you feel like to fix the bug, I would be thankful.
Repository: ant-design
Issue: New component: Toolbar
Labels: ☘️ New Component,Inactive,unconfirmed

https://ui.shadcn.com/docs/components/menubar
https://primereact.org/toolbar/
https://fluent2.microsoft.design/components/web/react/toolbar/usage
Repository: tauri
Issue: [feat] Provide a way to configure macos Dock Menu
Labels: type: feature request

### Describe the problem

Right now, as far as I'm aware there's no way to customize the macos dock menu. 

### Describe the solution you'd like

Something identical to electron would be perfect.

https://www.electronjs.org/docs/latest/tutorial/macos-dock

### Alternatives considered

_No response_

### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: [Feature Request]: Should be easy enough to add a temperature setting with latest pytorch update
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 ?

torch.nn.functional.scaled_dot_product_attention now accepts a scale parameter!

I suppose this would fit here:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/modules/sd_hijack_optimizations.py#L635


Something like this:
scale = 1 / (q.size(-1)**.5 * temperature)
torch.nn.functional.scaled_dot_product_attention(q, k, v, dropout_p=0.0, is_causal=False, scale=scale)

"temperature" referring to something accessible from the UI or if you want to try, just set a number like 0.9 or 1.2. That should do the trick. The CLIP should have a separate temperature setting as well.

I implemented it in a [Comfy node](https://github.com/Extraltodeus/Stable-Diffusion-temperature-settings/blob/f2828127618e6a78ba38917dd7f5604f7047b9da/nodes.py#L75)

You can find a few examples [here](https://github.com/Extraltodeus/Stable-Diffusion-temperature-settings/tree/main)


Lowering the UNET temperature helps to keep its shit together at higher resolutions. It has its limits still. A higher temp allows to generate a tiny scales too.

152x152 bottle made with a 1.5 merge:

![00272UI_00001_](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/15731540/933ab418-b05d-4fab-a3bc-fa9671014c6d)

Natively sampling at 1024*512 with SD1.5 base:

![combined_pair_2](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/15731540/1eec63f2-55e0-417f-aedc-8dc4d29c6028)

As you can see the honkers are more serious on the fixed version.

But when it breaks, it breaks harder:

![Sans titre](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/15731540/43892c31-ad7e-4f3b-94de-f6c5c215f766)

She likes to tickle

It's better to still go for a double pass at very high resolutions (above was 3072x3072, the jpeg is downscaled because I wanted to horrify a few people and its a whatsapp save).


### Proposed workflow

1. Go to .... 
2. Press ....
3. ...


### Additional information

_No response_
Repository: pytorch
Issue: With pytest8.2.0 or later, test cases under test/distributed/ execute will meet issue "object has no attribute 'runTest'. Did you mean: 'run_test'"
Labels: oncall: distributed,triaged

### 🐛 Describe the bug

This information is from "docs.pytest.org"
In pytest 8.2.0: [#12089](https://github.com/pytest-dev/pytest/pull/12089): pytest now requires that [unittest.TestCase](https://docs.python.org/3/library/unittest.html#unittest.TestCase) subclasses can be instantiated freely using MyTestCase('runTest').

1. With this pytest-8.2.1 version, when I execute:  pytest -v test_c10d_nccl.py::NCCLTraceTest
![image](https://github.com/pytorch/pytorch/assets/57210830/d26a7d89-93ed-4f32-b59a-319e4d177f93)


2. With pytest-8.1.1 version, when I execute: pytest -v test_c10d_nccl.py::NCCLTraceTest
![image](https://github.com/pytorch/pytorch/assets/57210830/d900fb4d-6a3a-433c-be4b-bec97d6c799d)

The related source code, torch/testing/_internal/common_distributed.py:
```
def __init__(self, method_name: str = "runTest") -> None:
        super().__init__(method_name)
        fn = getattr(self, method_name)
        setattr(self, method_name, self.join_or_run(fn))
```

### Versions

Any pytorch version

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k
Repository: stable-diffusion-webui
Issue: [Bug]: Failed to run on Windows 11
Labels: bug-report

### Checklist

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

### What happened?

My hardware environment is as follows:
cpu: Intel(R) Core(TM) i7-10710U
gup: No
Software environment is as follows:
python: 3.10.6
pytouch: 2.1.2 (pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu)
When I double-click webui.bat to run, the following problem is displayed
<img width="397" alt="errr" src="https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8023520/86e1b3a9-9e8f-4455-8175-0c44a3c1bd11">


### Steps to reproduce the problem

I deleted the higher version of python (3.12)

### What should have happened?

I want webui to run normally

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

Google Chrome

### Sysinfo

/usr/bin/python: No module named pip

### Console logs

```Shell
exit code: 1

stderr:
/usr/bin/python: No module named pip

Launch unsuccessful. Exiting.
```


### Additional information

_No response_
Repository: ant-design
Issue: 【bug】表格排序错误的排序出参
Labels: 🐛 Bug,Inactive

### Reproduction link

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/react-lqocor?file=demo.tsx)

### Steps to reproduce

1. 点击 age 列排序
2. 点击 change 按钮
3. 点击 foo 列的排序，并观察输出的 sorter 出参

### What is expected?

只包含 foo 列的排序出参

### What is actually happening?

排序出参包含 foo 列 和  age 列（可是由于数据的变化，数据已经没有 age 列了）

| Environment | Info |
| --- | --- |
| antd | 5.17.4 |
| React | latest |
| System | win10 |
| Browser | Chrome 126.0.6452.3 |

---
真实的场景是我的表格是动态的表头，根据数据来渲染的，所有的字段都能排序，我点击 A 排序后，重新请求表格数据，由后端进行排序，然后更改搜索条件，再次请求数据，此时返回的数据不包含 A 了，我点击 B 的排序，然而排序出参还包含 A

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: THPVariable_Check(list_elem) INTERNAL ASSERT FAILED
Labels: module: onnx,triaged

### 🐛 Describe the bug

We are converting the pth weights of a TransFusion model into an onnx file, where we replace operators that are not supported by onnx with equivalent functions. The following error has occurred: RuntimeError: THPVariable-Check (list_elem) INTERNATIONAL ASSERT FAILED at "/Pytorch/torch/csrc/jit/passes/onnx/shape_type-information. cpp": 657, please report a bug to PyTorch .
  Please give me some help.

### Versions

Collecting environment information...
PyTorch version: 1.8.0+cu111
Is debug build: False
CUDA used to build PyTorch: 11.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.6 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.3) 9.4.0
Clang version: Could not collect
CMake version: version 3.20.5
Libc version: glibc-2.31

Python version: 3.8.19 (default, Mar 20 2024, 19:58:24)  [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: 11.1.105
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 4060 Ti
Nvidia driver version: 535.146.02
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip] numpy==1.24.4
[pip] torch==1.8.0+cu111
[pip] torchaudio==0.8.0
[pip] torchvision==0.9.0+cu111
[conda] blas                      1.0                         mkl  
[conda] cudatoolkit               11.1.1              ha002fc5_10    conda-forge
[conda] ffmpeg                    4.3                  hf484d3e_0    pytorch
[conda] mkl                       2021.4.0           h06a4308_640  
[conda] mkl-service               2.4.0            py38h95df7f1_0    conda-forge
[conda] mkl_fft                   1.3.1            py38h8666266_1    conda-forge
[conda] mkl_random                1.2.2            py38h1abd341_0    conda-forge
[conda] numpy                     1.24.4                   pypi_0    pypi
[conda] torch                     1.8.0+cu111              pypi_0    pypi
[conda] torchaudio                0.8.0                    pypi_0    pypi
[conda] torchvision               0.9.0+cu111              pypi_0    pypi
Repository: material-ui
Issue: [material-ui][docs] Bug with keyboard navigation in Select and Menu
Labels: docs,accessibility,package: material-ui,browser: Safari

### Steps to reproduce

Link to live example: (required)

Steps:
1. Go to https://mui.com/material-ui/
2. Then open Components -> Inputs -> Select
3. Use the Basic Select Component and try to navigate using your keyboard.

### Current behavior
When I navigate from the main menu to go to the page where you have the MUI Select Component. Using the keyboard to navigate does not work. It only work after I refresh the page. 

### Expected behavior
Using the keyboard to navigate on the Select Component must highlight the options when the user navigates using their keyboard and select by pressing enter.

### Context

_No response_

### Your environment

<details>
<summary><code>npx @mui/envinfo</code></summary>

```
System:
OS: macOS 13.6.7
Binaries:
  Node: 18.14.2 - ~/.nvm/versions/node/v18.14.2/bin/node
  npm: 9.5.0 - ~/.nvm/versions/node/v18.14.2/bin/npm
  pnpm: Not Found
Browsers:
  Chrome: Not Found
  Edge: Not Found
  Safari: 16.6
npmPackages:
  @emotion/react:  11.11.4 
  @emotion/styled:  11.11.0 
  @mui/base:  5.0.0-beta.39 
  @mui/core-downloads-tracker:  5.15.13 
  @mui/icons-material:  5.15.13 
  @mui/lab:  5.0.0-alpha.168 
  @mui/material:  5.15.13 
  @mui/private-theming:  5.15.13 
  @mui/styled-engine:  5.15.11 
  @mui/system:  5.15.13 
  @mui/types:  7.2.13 
  @mui/utils:  5.15.13 
  @mui/x-data-grid:  6.19.6 
  @mui/x-date-pickers: ^6.18.4 => 6.19.7 
  @mui/x-date-pickers-pro: ^6.18.4 => 6.19.7 
  @mui/x-license-pro:  6.10.2 
  @types/react:  17.0.80 
  react:  17.0.2 
  react-dom:  17.0.2 
  typescript:  4.9.5
```
</details>

**Search keywords**: MUI Select, Select Highlight
Repository: pytorch
Issue: Modeling ViT does not support quantized models
Labels: oncall: quantization

I am trying to perform fine-tuning with different quantized models of ViT and it seems that modeling_vit.py does not support it.

When: 
```
train_dataloader = DataLoader(client_trainset, batch_size=128)
original_model = ViTForImageClassification.from_pretrained('google/vit-base-patch16-224-in21k')
quantization_config = torch.quantization.get_default_qconfig('fbgemm')
config = AutoConfig.from_pretrained('google/vit-base-patch16-224-in21k')
config.quantization_config = quantization_config
quantized_model = ViTForImageClassification(config)
quantized_model = torch.quantization.quantize_dynamic(quantized_model, {torch.nn.Linear}, dtype=torch.qint8)
criterion = nn.CrossEntropyLoss()
optimizer = optim.Adam(quantized_model.parameters(), lr=0.001)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
quantized_model.to(device)
quantized_model.train()
num_epochs = 10  # Example number of epochs
for epoch in range(num_epochs):
    running_loss = 0.0
    for batch in train_dataloader:
        images = batch["pixel_values"].to(device)
        labels = batch["labels"].to(device)
        optimizer.zero_grad()
        outputs = quantized_model(images)
        loss = criterion(outputs.logits, labels)
        loss.backward()
        optimizer.step()
        running_loss += loss.item()
    print(f"Epoch {epoch+1}, Loss: {running_loss/len(train_dataloader)}")
```


I have the error: 

`NotImplementedError: Could not run 'quantized::linear_dynamic' with arguments from the 'CUDA' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https://fburl.com/ptmfixes for possible resolutions. 'quantized::linear_dynamic' is only available for these backends: [CPU, Meta, BackendSelect, Python, FuncTorchDynamicLayerBackMode, Functionalize, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradMPS, AutogradXPU, AutogradHPU, AutogradLazy, AutogradMeta, Tracer, AutocastCPU, AutocastCUDA, FuncTorchBatched, BatchedNestedTensor, FuncTorchVmapMode, Batched, VmapMode, FuncTorchGradWrapper, PythonTLSSnapshot, FuncTorchDynamicLayerFrontMode, PreDispatch, PythonDispatcher].`

and if I do this other quantization: 
```
quantization_config = torch.quantization.get_default_qconfig('fbgemm')
peft_model.qconfig = quantization_config
torch.quantization.prepare(original_model, inplace=True)
```

I have:

` expected_dtype = self.embeddings.patch_embeddings.projection.weight.dtype
AttributeError: 'function' object has no attribute 'dtype'
`

I would like to be able to train a ViT model with quantization.
Thank you :)


### Alternatives

_No response_

### Additional context

_No response_

cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel
Repository: godot
Issue: Editing StringName argument adds extra `&`
Labels: bug,topic:gdscript,topic:editor

### Tested versions

4.3 dev6

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description

From #66481

https://github.com/godotengine/godot/assets/2223172/2f9de3bd-4632-4208-9587-bd03094dfa7c

Notice how quotes are correct, but the prefix is not.

### Steps to reproduce

1. Write some method with StringName argument and completion (e.g. `is_action_pressed()`) and use some argument
2. Move caret inside the string and autocomplete for different argument

### Minimal reproduction project (MRP)

N/A
Repository: angular
Issue: Support for Content-Security-Policy using HASH (sha-256)
Labels: area: core

### Which @angular/* package(s) are relevant/related to the feature request?

@angular/core

### Description

Hi. I was trying to implement the HASH approach (CSP level 2) without success.

The main problem is that when the Angular app is loaded, all styles are added inline to the index.html HEAD.
Since the styles have IDs (this Angular self-generated one) in the CSS code, I'd need to generate the hash after this CSS changed but my Content-Security-Policy header already came from the API that is generating it.
External docs: https://content-security-policy.com/hash

I haven't found anything related in the official docs. I only found info related to the 'nonce' approach. 
Angular official doc related: https://angular.dev/best-practices/security#content-security-policy 
External docs: https://content-security-policy.com/nonce/

Are you working already on a solution?

### Proposed solution

Add support for this feature (like the 'nonce' one).

### Alternatives considered

Let Angular handle generating the hashes for all scripts and styles at compile time.
Repository: transformers
Issue: SAM-HQ implementation in transformers
Labels: New model,Vision

### Model description

HQ-SAM is an upgrade SAM for high-quality zero-shot segmentation. It's design mostly repeats the design of SAM, but additionally early VisionEncoder features are used in enhanced MaskDecoder for fine-grained segmentation

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

Code is available here https://github.com/SysCV/sam-hq
Paper https://arxiv.org/abs/2306.01567

Authors @lkeab et al.