sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: `torch.accelerator` cross-device utilities and properties
Labels: triaged,module: accelerator

### 🚀 The feature, motivation and pitch

as suggested by @albanD [here](https://pytorch.slack.com/archives/C3PDTEV8E/p1735120754479929?thread_ts=1735017298.875249&cid=C3PDTEV8E) opening an issue to discuss which cross-device utilities and device property fields should pytorch support.

1. properties report at the moment is inconsistent 
- `torch.cuda.get_device_properties` does work for CUDA and ROCm but not other accelerators, e.g. one needs to use `torch.hpu.get_device_properties` for Gaudi.
- depending on whether it's CUDA or ROCm - the fields it outputs aren't the same - so a programmer can't reliably write cross-device applications 
- a lot of info is missing, e.g. to get CUDA cores count I have to use `nvidia-settings -q CUDACores -t` or `cuda.bindings.runtime.cudaGetDeviceProperties()` - need to depend on other libs/utils and again this is not cross-device (albeit one could argue that this is a cuda-specific setting, so there is no cross-device cuda-core count - not sure)
- @albanD mentioned that `torch.accelerator` API should be overcoming the above issues 

2. then let's discuss which cross-device utils should be there.

### cache clearing

- one that I started the discussion on is cache clearing - this is important for benchmarking - currently various hacks are used to perform that e.g. see for example how a hardcoded 256MB tensor is used by triton's `do_bench` - [init](https://github.com/triton-lang/triton/blob/a2b398e0bb1b120f31cf386d6ae3261c3ab84207/third_party/nvidia/backend/driver.py#L555-L556), [clearing](https://github.com/triton-lang/triton/blob/6ad95ee4fd9b1e172717323460fd54c250dd7d65/python/triton/testing.py#L120-L127) - so that anybody using that either wastes compute on clearing more cache than there is or as accelerators get bigger 256MB will be not enough and the benchmark will return flawed results. 

The other complication is that which cache are we clearing? In the NVIDIA world it's L1+L2, but for AMD it's L1+L2+AMD Infinity cache (Last Level Cache).

You will find the table of high end accelerator caches here https://github.com/stas00/ml-engineering/tree/master/compute/accelerator#caches - it's very inconsistent across accelerators - e.g. Intel Gaudi3 cache can be either L3 or L2 depending on the use case!



cc @albanD @guangyey @EikanWang
Repository: ui
Issue: [bug]: login and authentication blocks are the same
Labels: bug

### Describe the bug

At home page we have the block tabs with some shadcn components examples and I notice that we have the tab "login" and also "authentication". They are the same, they have just a different tab name but the content is the same. This was probably merged by mistake in some PR.

### Affected component/components

blocks

### How to reproduce

1. Go to [https://ui.shadcn.com/blocks/authentication](https://ui.shadcn.com/blocks/authentication)
2. Go to [https://ui.shadcn.com/blocks/login](https://ui.shadcn.com/blocks/login)
3. Notice how they are the same.

Screenshots:
![image](https://github.com/user-attachments/assets/9f442eea-acf4-4193-9e9a-edeb05c13bea)
![image](https://github.com/user-attachments/assets/be0e5b76-d2e6-4705-a39b-95a72f644524)


### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Happens in any browser or operational system.
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: godot
Issue: [Godot 4.3-4.4beta1] GPUParticle2D animation bug while re-enter the camera frame
Labels: bug,topic:2d,topic:particles

### Tested versions

 - Reproducible in 4.3 - 4.4beta1, Windows + Linux, AMD and Nvidia

### System information

(Forward+) Godot 4.3 - 4.4beta1, Windows 11, Linux KDE NEON, AMD and Nvidia gpu

### Issue description

GPU Particles animate just fine if they are ON SCREEN. If they exit the screen and then return "on camera", the animation goes wrong (start jumping values), and abruptly ends.
I create a video showing the problem:

https://www.youtube.com/watch?v=e-aD5Sclv_M&ab_channel=FrancoGast%C3%B3nPellegrini

1) at 0:0, you can see a normal particle fading out (particle animations using alpha values). A normal animation should FADE until disappear, smoothly.
2) at 0:24, I move the camera until the particles disappear. Then I focus on them BEFORE they finish their animations.
3) at 0:30 you can see them "killing themselves" because "the animation finished"
4) at 0:34 I create another particles again and ensure that they work just fine "while ON camera"
5) at 0:42 I create lots of particles BUT only move half of them out of the camera. The particles that re-enter the camera get "bugged" and finish abruptly (at least, the degradation is not smooth)

### Steps to reproduce

In the example, use ASDW to move the camera, scroll wheel to zoom, and RIGHT CLICK to spawn particles, like the video.

### Minimal reproduction project (MRP)

[bug-gpu-particle-2d.zip](https://github.com/user-attachments/files/18445736/bug-gpu-particle-2d.zip)
Repository: vscode
Issue: 粘贴的时候一直转圈圈，要等半天，还不如自己手动输入来的快
Labels: info-needed,*english-please,translation-required-chinese-simplified


Type: <b>Bug</b>

随便复制个东西，然后粘贴就开始转圈了，很少时候是可以直接粘贴上去的

VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|13th Gen Intel(R) Core(TM) i9-13980HX (32 x 2419)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.63GB (10.79GB free)|
|Process Argv|--crash-reporter-id 197511d7-6e6e-4ef3-9519-d06e56f1ea95|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (8)</summary>

Extension|Author (truncated)|Version
---|---|---
tongyi-lingma|Ali|2.0.1
vue-peek|dar|1.0.2
vscode-eslint|dba|3.0.10
prettier-vscode|esb|11.0.0
vue-alias-skip|lih|0.0.25
vscode-language-pack-zh-hans|MS-|1.96.2024121109
vue-helper|she|4.3.2
volar|Vue|2.1.8


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

```

</details>

<!-- generated by issue reporter -->
Repository: deno
Issue: The requested module `http2` does not provide an export named `Http2ServerRequest`
Labels: needs investigation

Version: Deno 2.1.4

This bug is still happening on gh actions. latest version of deno and same problem. same as #23326

<img width="902" alt="image" src="https://github.com/user-attachments/assets/9eae5d45-cfc8-4522-bfec-93f17b8a2e5e" />
<img width="541" alt="image" src="https://github.com/user-attachments/assets/a6c1f772-bba0-4da9-a214-3b1f30bc680e" />
> [!NOTE]
> I'm using @hono/node-server, and this error is happening on gh action.
Repository: pytorch
Issue: The in-place version of unsqueezed is not supported by TorchDynamo when used in a specific way
Labels: triaged,oncall: pt2,module: dynamo

### 🐛 Describe the bug

If I directly call `torch.Tensor.unsqueeze_(x,y)` in my function, torch.compile fails with InternalTorchDynamoError. However, if I change the code to `x.unsqueeze_(y) format, torch.compile works.

code:

```python
import torch

@torch.compile
def f1(x, y):
    return x.unsqueeze(y)

@torch.compile
def f2(x, y):
    return torch.Tensor.unsqueeze_(x, y)

x = torch.tensor([1, 2, 3, 4])
y = 0
print(f1(x, y))
print(f2(x, y))

```
When running `f2`, pytorch throws the following error:
```
torch._dynamo.exc.InternalTorchDynamoError: IndexError: list index out of range

You can suppress this exception and fall back to eager by setting:
    import torch._dynamo
    torch._dynamo.config.suppress_errors = True
```

### Versions

[pip3] numpy==1.26.2
[pip3] nvidia-cublas-cu12==12.4.5.8
[pip3] nvidia-cuda-cupti-cu12==12.4.127
[pip3] nvidia-cuda-nvrtc-cu12==12.4.127
[pip3] nvidia-cuda-runtime-cu12==12.4.127
[pip3] nvidia-cudnn-cu12==9.1.0.70
[pip3] nvidia-cufft-cu12==11.2.1.3
[pip3] nvidia-curand-cu12==10.3.5.147
[pip3] nvidia-cusolver-cu12==11.6.1.9
[pip3] nvidia-cusparse-cu12==12.3.1.170
[pip3] nvidia-nccl-cu12==2.21.5
[pip3] nvidia-nvjitlink-cu12==12.4.127
[pip3] nvidia-nvtx-cu12==12.4.127
[pip3] optree==0.13.1
[pip3] torch==2.5.1
[pip3] triton==3.1.0
[conda] numpy                     1.26.2                   pypi_0    pypi
[conda] nvidia-cublas-cu12        12.4.5.8                 pypi_0    pypi
[conda] nvidia-cuda-cupti-cu12    12.4.127                 pypi_0    pypi
[conda] nvidia-cuda-nvrtc-cu12    12.4.127                 pypi_0    pypi
[conda] nvidia-cuda-runtime-cu12  12.4.127                 pypi_0    pypi
[conda] nvidia-cudnn-cu12         9.1.0.70                 pypi_0    pypi
[conda] nvidia-cufft-cu12         11.2.1.3                 pypi_0    pypi
[conda] nvidia-curand-cu12        10.3.5.147               pypi_0    pypi
[conda] nvidia-cusolver-cu12      11.6.1.9                 pypi_0    pypi
[conda] nvidia-cusparse-cu12      12.3.1.170               pypi_0    pypi
[conda] nvidia-nccl-cu12          2.21.5                   pypi_0    pypi
[conda] nvidia-nvjitlink-cu12     12.4.127                 pypi_0    pypi
[conda] nvidia-nvtx-cu12          12.4.127                 pypi_0    pypi
[conda] optree                    0.13.1                   pypi_0    pypi
[conda] torch                     2.5.1                    pypi_0    pypi
[conda] triton                    3.1.0                    pypi_0    pypi

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames
Repository: godot
Issue: (C#, Tool) overriden _Get(property_name)/_Set(property_name) are ignored if the class has a field named `property_name`
Labels: bug,topic:dotnet

### Tested versions

v4.3.stable.mono.official [77dcf97d8]

### System information

Godot v4.3.stable.mono - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (nvidia; 560.35.03) - AMD Ryzen 9 9900X 12-Core Processor (24 Threads)

### Issue description

I have a class annotated with [Tool]:
```csharp
[Tool]
public partial class ToolShape: Resource {
	...
}
```

In that class, I have a field that is "manually" exported:
```csharp
enum ShapeType: long {
	Sphere = 0,
	Box = 1,
	Cylinder = 2,
	Capsule = 3,
}
	
ShapeType ty = ShapeType.Sphere;

public override Array<GdDictionary> _GetPropertyList() {
	GdDictionary type_property = new() {
		["name"] = nameof(this.ty),
		["type"] = (long) Variant.Type.Int,
		["hint"] = (long) PropertyHint.Enum,
		["hint_string"] = "Sphere:0,Box:1,Cylinder:2,Capsule:3",
		["usage"] = (long) (PropertyUsageFlags.Editor | PropertyUsageFlags.Storage | PropertyUsageFlags.ScriptVariable),
	};

	return [type_property];
}
```

Which is *supposed* to be handled by `_Get`/`_Set`:
```csharp
public override bool _Set(StringName property, Variant value) {
	GD.Print($"Setting {property} to {value}");

	string property_name = property.ToString();

	switch (property_name) {
		case nameof(this.ty): {
			this.ty = value.As<ShapeType>();
			return true;
		}
		default: return false;
	}
}

public override Variant _Get(StringName property) {
	string property_name = property.ToString();

	if (property_name is not ("script" or "resource_local_to_scene" or "resource_name" or "resource_path")) {
		GD.Print($"Getting {property}");
	}

	return property_name switch {
		nameof(this.ty) => Variant.From(this.ty),
		_ => default,
	};
}
```

In the Editor, `_Get`/`_Set` are never called for the property `ty`.
I haven't tested the behavior in exported builds.


### Steps to reproduce

- Open the project
- Build the solution
- Select the resource `tool_shape.res`
- Modify its fields in the inspector

Note that modifying the fields `Ty`, `String Name` and `Res` does not trigger any of the manual `GD.Print()` calls. 

Also note that modifying the property "fictional" which has no "backing field", does cause `_Set` and `_Get` to be called.

### Minimal reproduction project (MRP)

[set_bug.zip](https://github.com/user-attachments/files/18256775/set_bug.zip)
Repository: excalidraw
Issue: Add triangle shape
Labels: enhancement

I downloaded the source code and added the triangle, but when I want to use the elbow to connect to the triangle, the frame to connect it is a rectangle, how can I change it to a triangle. Thanks a lot
Repository: PowerToys
Issue: AutoHotKey like Feature
Labels: Needs-Triage

### Description of the new feature / enhancement

Add a feature to PowerToys that lets users type a shortcut to expand text and optionally open a file, template, or application.

### Scenario when this would be used?

It would be a valuable addition to PowerToys, catering to users who frequently type repetitive text. By providing this functionality natively, PowerToys can simplify workflows and enhance productivity without requiring third-party software.

**Key Features**

**Customizable Text Triggers:**
Define text shortcuts that trigger both text expansion and additional actions.
**Example:** Typing !report could insert "Monthly Sales Report" and open a preformatted Excel file.

**File and Template Automation:**
Configure shortcuts to open files (e.g., Word templates, Excel sheets, PDFs).
Include support for linking cloud-hosted files via URLs or mapped drives.

**Application Launching:**
Allow shortcuts to open specific applications with optional arguments.
Example: Typing !email could open Outlook ready to compose a new email.

**Multi-Action Macros:**
Enable shortcuts to perform multiple actions, such as expanding text and opening a template simultaneously.

### Supporting information

_No response_
Repository: ant-design
Issue: popover设置placement后弹出可能存在遮挡
Labels: unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/ji-ben-antd-5-22-5-forked-5rt6sj?file=%2Fdemo.tsx%3A13%2C27)

### Steps to reproduce

https://codesandbox.io/p/sandbox/ji-ben-antd-5-22-5-forked-5rt6sj?file=%2Fdemo.tsx%3A13%2C27
并且打开控制台，滑动到最下面

### What is expected?

各个分辨率下没有遮挡

### What is actually happening?

滚动到底部打开popover会遮挡一部分
![image](https://github.com/user-attachments/assets/24af5119-636e-41a2-8258-9cb035b00e49)

| Environment | Info |
| --- | --- |
| antd | 5.21.6 |
| React | 17 |
| System | macos |
| Browser | google latest version |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: create-react-app
Issue: Unable to create react app with typescript
Labels: needs triage

Hi,
            So I have been trying to create a react app with the following command 
            "npx create-react-app my-app --template typescript"
           
             However, upon running the command I am getting the following set of errors

             Installing template dependencies using npm...
              npm ERR! code ERESOLVE
              npm ERR! ERESOLVE unable to resolve dependency tree
              npm ERR!
              npm ERR! While resolving: box-retail@0.1.0
              npm ERR! Found: react@19.0.0
              npm ERR! node_modules/react
              npm ERR!   react@"^19.0.0" from the root project
              npm ERR!
              npm ERR! Could not resolve dependency:
              npm ERR! peer react@"^18.0.0" from @testing-library/react@13.4.0
              npm ERR! node_modules/@testing-library/react
              npm ERR!   @testing-library/react@"^13.0.0" from the root project
              npm ERR!
              npm ERR! Fix the upstream dependency conflict, or retry
              npm ERR! this command with --force or --legacy-peer-deps
              npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
              npm ERR!
  
             Could you please suggest on how to move ahead from here.

Thanks
Repository: pytorch
Issue: TORCH_NCCL_ENABLE_TIMING break nccl/matmul overlapping
Labels: oncall: distributed,module: nccl

### 🐛 Describe the bug

I am using Megatron-LM for training, I found that if I set `TORCH_NCCL_ENABLE_TIMING=1`, all overlaping kernels in Megatron-LM will not overlapped, including dw/dx backward in layer norm and zero1 reduce scatter/allgather not overlapping with matmul.

I have submit a issue to `TransformerEngine`
https://github.com/NVIDIA/TransformerEngine/issues/1353, maybe it relates to `CUDA_DEVICE_MAX_CONNECTIONS=1`

### Versions

I am using 4 A100-SXM4 with pytorch2.4.0+cu124 and mcore0.9.0 with transformer engine(0.11.0+fc03478)

### update1

I use fsdp1 with 8 A100-SXM4 with pytorch2.4.0+cu124, and I tracing 3 configurations
- TORCH_NCCL_ENABLE_TIMING=1
not break overlapping of NCCL and matmul
- CUDA_DEVICE_MAX_CONNECTIONS=1
break reduce scatter in `FullyShardedDataParallel._post_backward_hook`
![image](https://github.com/user-attachments/assets/42f3fae0-9554-400b-8ef0-ca0b99541c4c)

- CUDA_DEVICE_MAX_CONNECTIONS=1 TORCH_NCCL_ENABLE_TIMING=1
break all overlap, including allgather in forward
![forward allgather overlap](https://github.com/user-attachments/assets/a608c054-8c64-4a0d-9f7f-198fe145b03e)
![backward allgather/reduce scatter](https://github.com/user-attachments/assets/495b07a1-99c2-47ef-90d1-a16b386894b4)

I upload timeline and reproduce code, just set different env and run 
```bash
CUDA_DEVICE_MAX_CONNECTIONS=1 TORCH_NCCL_ENABLE_TIMING=1 python -m torch.distributed.run --master-addr localhost --master-port 5555 --nnodes 1 --nproc-per-node 8 --node-rank 0 
```

[timeline.tar.gz](https://github.com/user-attachments/files/18326850/timeline.tar.gz)


cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: flutter
Issue: [google_maps_flutter] [web] Support disableAutoPan
Labels: c: new feature,p: maps,platform-web,package,c: proposal,P2,team-web,triaged-web

### Use case

I would like to use [InfoWindowOptions.disableAutoPan](https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions.disableAutoPan) in flutter web. Mobile does not have autopan behaviour by default, which is good. But web automatically pans the map if the info window is too close to the edge of the map. I would love to opt out of that behaviour. `disableAutoPan` was made for this purpose. 

### Proposal

Add a mapping from flutter to the google maps javascript sdk property: `disableAutoPan`. Pass in `disableAutoPan: true` to the `InfoWindow` constructor.
Repository: godot
Issue: Web editor not building with Emscripten 3.1.64
Labels: bug,platform:web,topic:buildsystem

### Tested versions

- Reproducible in: 4.4.dev [99a8ab7]

### System information

macOS Sequoia 15.2, Emscripten 3.1.64

### Issue description

Building the editor using [the steps described in the documentation](https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_web.html#building-the-editor):
```
scons platform=web target=editor
```
Results in an error like the following:
```
Unknown option '--enable-bulk-memory-opt'
em++: error: '/Users/malcolmanderson/emsdk/upstream/bin/wasm-opt --strip-target-features --post-emscripten -Os --low-memory-unused --zero-filled-memory --pass-arg=directize-initial-contents-immutable --no-stack-ir bin/godot.web.editor.dev.wasm32.wasm -o bin/godot.web.editor.dev.wasm32.wasm -g --mvp-features --enable-threads --enable-bulk-memory --enable-bulk-memory-opt --enable-call-indirect-overlong --enable-exception-handling --enable-multivalue --enable-mutable-globals --enable-reference-types --enable-sign-ext' failed (returned 1)
scons: *** [bin/godot.web.editor.dev.wasm32.js] Error 1
scons: building terminated because of errors.
```

As someone noted on the comments for the documentation page, adding `production=yes` seems to allow the compilation to progress further. It seems to have gotten stuck in a caching step, though – these are the last lines it has printed, and (so far) it has not yet returned control to the shell, after a long amount of time:
```
cache:INFO: generating system asset: symbol_lists/05684251a2ff21b52145c66272b434cba942070b.json... (this will be cached in "/Users/malcolmanderson/emsdk/upstream/emscripten/cache/symbol_lists/05684251a2ff21b52145c66272b434cba942070b.json" for subsequent builds)
cache:INFO:  - ok
```

**EDIT: It *finally* finished on my computer - the overall process was 00:58:05.41.**

This may be related to https://github.com/godotengine/godot/issues/99818, although the main subject of that issue was a different error encountered when using a latest version of Emscripten, not 3.1.64 specifically.

### Steps to reproduce

Using Emscripten 3.1.64, build the editor using the command
```
scons platform=web target=editor
```
You should receive an error like `Unknown option '--enable-bulk-memory-opt'`.

If you instead use the command
```
scons platform=web target=editor production=yes
```
the compilation process will take a *very* long time, with
```
cache:INFO: generating system asset: symbol_lists/05684251a2ff21b52145c66272b434cba942070b.json... (this will be cached in "/Users/malcolmanderson/emsdk/upstream/emscripten/cache/symbol_lists/05684251a2ff21b52145c66272b434cba942070b.json" for subsequent builds)
cache:INFO:  - ok
```
as the final output for a while.

### Minimal reproduction project (MRP)

N/A
Repository: transformers
Issue: cannot custom `warmup_min_lr` of deepspeed lr scheduler
Labels: DeepSpeed,bug

### System Info

4.45 version

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

[link](https://github.com/huggingface/transformers/blob/4eb17b26e77611d4fbcdcbbc20c7bf275eb015c9/src/transformers/integrations/deepspeed.py#L171)

idk why it's hardcoded

### Expected behavior

warmup_min_lr value is not working
Repository: transformers
Issue: `GPT2Attention()` class with `_attn()` method when `add_cross_attention=True` and therefore `is_cross_attention=True`.
Labels: Feature request,bug

### Feature request

### Model description

It seems like `GPT2Attention()` class allows`_attn()` method with `causal_mask` only when `is_cross_attention=False`, but not when `is_cross_attention=True`. 

It would be more productive if `GPT2Attention()` supports `_attn()` method with `causal_mask` even with `is_cross_attention=True`.

### Motivation

When developing `EncoderDecoderModel` where the encoder is `ViTModel` and the decoder is`GPT2Model`, the current `GPT2Model` class does not support `causal_mask` if `add_cross_attention=True` and therefore `is_cross_attention=True`.

### Your contribution

No contribution.
Repository: ant-design
Issue: ConfigProvider.useConfig可以获取到来自Space.Compact的size prop
Labels: unconfirmed

### What problem does this feature solve?

目前在Space.Compact下的组件会接收其size，但useConfig获取不到

### What does the proposed API look like?

ConfigProvider.useConfig可以获取到来自Space.Compact的size prop

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->