sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: kubernetes
Issue: Fine-Grained Scaling Control for DaemonSet/Deployment
Labels: sig/scalability,sig/autoscaling,kind/feature,needs-triage

### What would you like to be added?

DaemonSet/Deployment supports controlling strategy for scaling pods similar to RollingUpdate.

### Why is this needed?

Currently, DaemonSets and Deployments (via ReplicaSets) offer some level of strategy control for rolling updates, but provide almost nothing for large-range scaling, apart from limiting the request pressure for the API server. As a result, a large number of creating pods will compete simultaneously for the same resources, leading to repeated failures and retries, and very slowly scaling. 

In terms of pod scaling for DaemonSets/Deployments, the current solutions are based on various Autoscalers, but using Autoscalers to achieve specific-number scaling goals might also be inconsistent and awkward:
​	•	For Deployments, scaling relies on the Horizontal Pod Autoscaler (HPA).
​	•	For DaemonSets, scaling, that is node scaling,ctypically using the Cluster Autoscaler with Node Pools/Groups and HorizontalNodeScalingPolicy.
However, Node Pools/Groups depend on cloud provider supporting, unusable in local self-built Kubernetes clusters where manual node scaling via adding/removing labels/taints is common.

Additionally, the rolling update strategy for DaemonSets/Deployments is not flexible. It only supports a single fixed updating rate, whereas production environments often require a phased updating strategy of starting slowly and accelerating later.

Support Request also: [English Version](https://discuss.kubernetes.io/t/feature-request-fine-grained-scaling-control-for-daemonsets-deployments/30759?u=unilinu)  [中文版本](https://discuss.kubernetes.io/t/daemonset-deployment/30760)

Closes [community kubernetes/kubernetes#129601](https://github.com/kubernetes/kubernetes/issues/129601)
Repository: ollama
Issue: Llama 3.3 still has metadata from Llama 3.1 
Labels: bug

### What is the issue?

Hello, 

The model of LLAMA3.3 still has metadata from LLAMA3.1

![image](https://github.com/user-attachments/assets/f915c39c-d855-4212-946c-efe1b607e716)

btw. What type of Quantization are you using? 

Thank you

### OS

Linux

### GPU

_No response_

### CPU

_No response_

### Ollama version

0.5.1
Repository: ant-design
Issue: Tag margin inline no needed
Labels: Inactive

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/ps66pv)

### Steps to reproduce

Create a list with a tag and a list item with simple text

### What is expected?

Tag should NOT have the margin if there's only 1 Tag

### What is actually happening?

Tag has margin

| Environment | Info |
| --- | --- |
| antd | 5.22.3 |
| React | 18.3 |
| System | macos |
| Browser | chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

![WhatsApp Image 2024-12-09 at 10 52 15](https://github.com/user-attachments/assets/867ac390-9f23-4ca9-a4d6-4e6b7cd774a4)
Repository: react
Issue: Bug: useOptimistic
Labels: Status: Unconfirmed

React version:19.0.0
[I got example from react.dev](https://react.dev/reference/react/useOptimistic) slightly modified it.
 
Now `key` attribute derive value from data (message)
```
        <div key={message.id}>
          {message.text}
          {!!message.sending && <small> (Sending...)</small>}
        </div>
```

## Steps To Reproduce

1.[Open link](https://codesandbox.io/p/sandbox/react-dev-forked-5hddwt)
2.Send new message
3.Open console

## The current behavior
On the image below we can see duplicating list of messages from [I got example from react.dev](https://react.dev/reference/react/useOptimistic).
![image](https://github.com/user-attachments/assets/4868e7d0-7eb1-4e29-ac11-eff9047982f7)

There was no error in [I got example from react.dev](https://react.dev/reference/react/useOptimistic) because `key` gets values from `index`, `index` is always unique.

        <div key={index}>
          {message.text}
          {!!message.sending && <small> (Sending...)</small>}
        </div>

Code that is slightly modified by me print out following (from console):

> Encountered two children with the same key, `8908d3a9-13b7-4576-bf85-e850f7ab2c1c`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version

I don't know the reason of that behaviour but I see that `updateFn` in `useOptimistic` is called with `new message` twice:
1. First time after `addOptimisticMessage` is called, 
2. Second time while `Thread` component is re-rendered.
Repository: svelte
Issue: `bind:` in a loop breaks the reference
Labels: bug

### Describe the bug

I posted this issue already on sveltekit-superforms but it seems to be a Svelte 5 issue. https://github.com/ciscoheat/sveltekit-superforms/issues/509

Apparently in Svelte 5 there is a reactivity problem when you use `bind:` with a list item in a loop it breaks reference.

- What I'm wondering about is that while the $form store is updating correctly and reactively the form param inside the onUpdate callback is not up to date

- This issue seems to only occur in Svelte 5, that's why it seems to me like a bug



``` svelte

<form use:enhance method="post">
	{#each $form.priceRules ?? [] as priceRule}
		<!-- this doesn't work (only when updating another form field afterwards: -->
		<PriceSelection bind:selectedItem={priceRule.priceCategory} />

		<!-- this works: -->
		<!-- <PriceSelection bind:selectedItem={$form.priceRules[0].priceCategory} /> -->
	{/each}

	<button type="submit">submit</button>
</form>
```



### Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-svjrzfhz?file=src%2Froutes%2F%2Bpage.svelte

### Logs

_No response_

### System Info

```shell
System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    svelte: ^5.0.0 => 5.9.0
```


### Severity

blocking an upgrade
Repository: deno
Issue: bug: `process.nextTick` changes the order of microtasks based on where it is executed
Labels: needs investigation,node compat

Deno changes the order of microtasks depending on whether it runs in a REPL or in a file. I don't think this should ever be the case. Look:

```sh
$ # Create repro file
$ echo -e 'Promise.resolve().then(() => console.log("then"))\nprocess.nextTick(() => console.log("nextTick"))' > /tmp/file.js

# Run with Node and Deno
$ node /tmp/file.js
nextTick
then
$ deno /tmp/file.js
then
nextTick

# Do the same thing in a REPL and with eval
$ deno
Deno 2.1.1
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> import '/tmp/file.js'
then
nextTick
[Module: null prototype] {  }
> function repro() {
    Promise.resolve().then(() => console.log("then"))
    process.nextTick(() => console.log("nextTick"))
}
undefined
> repro()
nextTick
then
undefined
> eval(Deno.readTextFileSync('/tmp/file.js'))
nextTick
then
undefined
> await eval(await Deno.readTextFile('/tmp/file.js'))
then
nextTick
undefined
> 
$
```

_Originally posted by @KnorpelSenf in https://github.com/denoland/deno/issues/22458#issuecomment-2500745522_
Repository: three.js
Issue: Adding a position options for the PMREM fromScene generation
Labels: Enhancement

### Description

Currently, calling a PMREM Generation is calling a cubecamera that is always default positionned at 0, 0, 0

For a few versions now, I'm hacking my way to get to generate a PMREM but from an arbitrary cubecamera position by passing a position to pmrem.fromScene, this would be useful




### Solution

Passing a position as arg to fromScene

### Alternatives

Or maybe passing a callback to be called before each render that passes the camera ?
in that case we'd be able to do anything before render of each pmrem face

### Additional context

_No response_
Repository: transformers
Issue: Calling Trainer.create_model_card() with an empty dataset list causes an IndexError
Labels: bug

### System Info

- `transformers` version: 4.46.3
- Platform: Linux-5.15.0-125-generic-x86_64-with-glibc2.35
- Python version: 3.11.10
- Huggingface_hub version: 0.26.3
- Safetensors version: 0.4.5
- Accelerate version: 1.1.0
- Accelerate config:    not found
- PyTorch version (GPU?): 2.5.1 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using distributed or parallel set-up in script?: <fill in>
- Using GPU in script?: <fill in>
- GPU type: NVIDIA H100 80GB HBM3

### Who can help?

@muellerzr @SunMarc 

### Information

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

### Tasks

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

### Reproduction

Call `trainer.create_model_card(..., datasets=[])`.
The checks at https://github.com/huggingface/transformers/blob/de8a0b7547451f8f7ef2c0ac1f338ba77c614cec/src/transformers/modelcard.py#L492-L502 do not cover this case, we end up in the `else` branch and access `datasets[-1]`.

### Expected behavior

No exception should be raised, no dataset info should be included in the model card.
Repository: PowerToys
Issue: Shortcut Guide Bug
Labels: Issue-Bug,Product-Shortcut Guide,Needs-Triage

### Microsoft PowerToys version

v0.86.0

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

Shortcut Guide

### Steps to reproduce

1. Have **Activation method** set to **Hold down Windows key**
2. Open the **start menu**
3. Hold down the Windows key for time duration before showing

### ✔️ Expected Behavior

Shortcut Guide is closing

### ❌ Actual Behavior

Shortcut Guide is not closing

### Other Software

_No response_
Repository: vscode
Issue: SCM Graph - better handle long branch names in the hover
Labels: bug,ux,scm

![Image](https://github.com/user-attachments/assets/03e0fc21-c6ef-4cb2-8645-316b61c080f4)
Repository: next.js
Issue: API Routes Responses Not Being Gzipped in Next.js App Router #73693
Labels: bug,Middleware,Performance,Runtime

### Link to the code that reproduces this issue

https://github.com/huseyinbuyukdere/temp-issue-gzip-next

### To Reproduce

**Start the application in development mode using next dev.**

**Create an API route under the App Router, e.g., /app/api/example/route.js**

Example Api Route
```javascript 
export async function GET() {
    const data = Array(5000).fill({ id: 1, name: "example" });
    return NextResponse.json(data, {
        headers: {
            "Content-Type": "application/json",
        },
    });
}
```


**Send a GET request to the API route with curl**

curl -H "Accept-Encoding: gzip" http://localhost:3000/api/example

**Observe the response headers and payload.**

### Current vs. Expected behavior

### Current vs. Expected behavior


```yaml
**Current**
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 12345
Date: Mon, 11 Dec 2024 12:34:56 GMT

**Expected**: The response should be gzipped if the **Accept-Encoding: gzip** header is present.
HTTP/1.1 200 OK
Content-Type: application/json
Content-Encoding: gzip
Content-Length: 4567
Date: Mon, 11 Dec 2024 12:34:56 GMT


### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernelroot:t-11215.1.10~2/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.17.0
  npm: 10.8.2
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.0.4 // Latest available version is detected (15.0.4).
  eslint-config-next: 15.0.4
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Middleware, Performance, Runtime

### Which stage(s) are affected? (Select all that apply)

Other (Deployed)

### Additional context

- This issue is reproducible in both development (next dev) and production (next start) modes.
- Tested with Next.js versions 14.1.0 and 15.0.4.
- Static assets are gzipped correctly by Next.js, but API route responses are not.
- There is no middleware or CDN in use during these tests. I expected gzip compression to be handled automatically by the framework.
Repository: vscode
Issue: VSCode does not open file paths while in a workspace
Labels: bug,quick-open

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.96.0-insider (Universal) Commit: b18e7a700033b39ed2c3975759b6327c8205f958
- OS Version: Darwin arm64 24.1.0

Steps to Reproduce:

1. Open a workspace that has a folder name different from its path:
```json
{
    "folders": [
        {
            "name": "Source",
            "path": "code",
        }
    ]
}
```

2. Search for a file (with `CTRL`+`P`) under the `code` directory using its full path (such as `code/main.py`)

Expected outcome:
The search menu shows the requested file

Actual outcome:
The search menu does not list the file

Note that searching just for `main.py` will still work since it categorizes it as `Source/main.py`
Repository: vscode
Issue: Deeplink to clone a repository using VS Code Desktop
Labels: under-discussion,vscode.dev

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Hi,
I would like to propose a feature added to the `vscode.dev` that would enable a user to create a link that will clone&open a repo in the local VS Code instance.

VS Code Desktop has a registered URL schema `vscode://` that can be used as such

`vscode://vscode.dev/clone?url=https://github.com/<org>/<repo>&ref=<ref>`

Pasting a link like this in a browser will open a local VS Code installation and clone the repo in a temp location, which offers a great UX for users who consume some repositories without having an intention to develop against them. Hence, they do not care where the project is cloned and don't mind it being cloned in a temp work dir.

The challenge is that this non https url can not be used in readmes, we need a service that would redirect an HTTPS URL to this `vscode://` URL.

This would allow us to have a nice button in the project readme that would offer a 1-click experience for the users:

[![Clone][clone-svg]][clone-url]

[clone-svg]: https://gitlab.com/rdodin/pics/-/wikis/uploads/f836c8b46f0789b6953961bf4ab7a05d/clone-with-vscode.svg
[clone-url]: https://vscode.dev/clone?url=https://github.com/srl-labs/srl-acl-lab&ref=main

It seems that `vscode.dev` is a perfect service to offer such redirection and it is most likely the dev effort to have this redirect is not huge.

Thanks for considering this!
Repository: PowerToys
Issue: Can't install via MS Store due to lack of integrated keyboard
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.86.0

### Installation method

Microsoft Store, WinGet

### Running as admin

No

### Area(s) with issue?

Installer

### Steps to reproduce

I am using a Windows 11 24H2 Enterprise desktop with Synergy, though I do keep a USB keyboard and mouse plugged into the system as a backup. I am trying to upgrade from PowerToys 0.84.1 to 0.86.0. 

I originally installed PowerToys through the Microsoft Store app, though I typically use winget to handle updates since it handles Microsoft Store updates, WinGet updates, and can detect some apps that I installed via standalone installers to update them as well.

### ✔️ Expected Behavior

When I do `winget upgrade XP89DCGQ3K6VLD` or `winget upgrade --all`, WinGet should upgrade the PowerToys app. When I go to the PowerToys page in the Microsoft Store app, I should be able to hit update to upgrade the package.

### ❌ Actual Behavior

When I do `winget upgrade XP89DCGQ3K6VLD` I get the following output:

```
No applicable upgrade found.
A newer package version is available in a configured source, but it does not apply to your system or requirements.
```

When I go to install via the Microsoft Store, it shows that my computer doesn't meet the requirements due to not having an integrated keyboard. See attached: ![Microsoft PowerToys page in the Microsoft Store app. It shows that my desktop does not meet the requirements, as I do not have an integrated keyboard.](https://github.com/user-attachments/assets/c7912b60-719a-4847-8ecc-30a2942e357e)

I was able to work around this issue by doing `winget remove XP89DCGQ3K6VLD && winget install Microsoft.PowerToys -s winget`

### Other Software

Microsoft Store 22410.1401.4.0
Windows Package Manager v1.9.25200
Package: Microsoft.DesktopAppInstaller v1.24.25200.0
Repository: deno
Issue: Deno cli could not initialize cache database 
Labels: bug,cli


Hi, 
I got this error while running Deno cli.

```shell 
Could not initialize cache database '{homePath}/.cache/deno/v8_code_cache_v2', deleting and retrying... (database is locked

Caused by:
    Error code 261: Another process is recovering a WAL mode database file)
Failed to open cache file '{homePath}/.cache/deno/v8_code_cache_v2', performance may be degraded.
```

I see this issue is different from the one here: https://github.com/denoland/deno/issues/20202

Just so you know, I am using Deno version 2.0.2 on an LXC container running on Debian 5.10.103-1 x86_64 x86_64 x86_64 GNU/Linux. 

Regards, 

AH
Repository: transformers
Issue: DynamicCache does not support variable lengths, except for FA2
Labels: bug,Cache

### System Info

- `transformers` version: 4.47.0
- Using GPU in script?: yes
- GPU type: NVIDIA A100-SXM4-80GB

### Who can help?

@ArthurZucker

### 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

The following code will reproduce the issue: 

```python
import torch
from transformers import AutoModelForCausalLM
from transformers.cache_utils import DynamicCache


device = "cuda:0"
ckpt = "meta-llama/Meta-Llama-3.1-8B-Instruct"
attn_implementation = "flash_attention_2"
cache = DynamicCache()
model = AutoModelForCausalLM.from_pretrained(ckpt, torch_dtype="auto", attn_implementation=attn_implementation).to(
    device
)


# Run first forward pass
inputs = model.dummy_inputs["input_ids"].to(device)
with torch.no_grad():
    model(inputs, past_key_values=cache)
    print("First forward pass")
    print(f"Layer 0: {cache.key_cache[0].shape}")
    print(f"Layer 1: {cache.key_cache[1].shape}")

# Update the cache size for the first layer
print("Removing 2 KV pairs for the first layer")
cache.key_cache[0] = cache.key_cache[0][:, :, :-2, :]
cache.value_cache[0] = cache.value_cache[0][:, :, :-2, :]

with torch.no_grad():
    model(inputs, past_key_values=cache)
    print("Second forward pass")
    print(f"Layer 0: {cache.key_cache[0].shape}")
    print(f"Layer 1: {cache.key_cache[1].shape}")
```

### Expected behavior

In the [kvpress](https://github.com/NVIDIA/kvpress) repository, we implement various KV cache compression methods. For some of these methods, the KV cache compression is not the same from one layer to the other (see for instance https://github.com/NVIDIA/kvpress/pull/28). We noticed it's not an issue when using `attn_implementation="flash_attention_2"` but raises an error for `attn_implementation="sdpa"`  or `attn_implementation="eager"`.

Here is the error from the script above:

```bash
--> [336](.../transformers/models/llama/modeling_llama.py:336)     attn_weights = attn_weights + causal_mask
    [338](.../transformers/models/llama/modeling_llama.py:338) # upcast attention to fp32
    [339](.../transformers/models/llama/modeling_llama.py:339) attn_weights = nn.functional.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query_states.dtype)

RuntimeError: The size of tensor a (10) must match the size of tensor b (9) at non-singleton dimension 3
```

The issue is that the `causal_mask` is not updated per-layer for `sdpa` and `eager` while it is for flash attention.
Repository: yt-dlp
Issue: camsoda HTTP Error 403
Labels: incomplete,NSFW

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

usa

### Provide a description that is worded well enough to be understood

showing this error

ERROR: [Camsoda] violeta-evanz: Unable to download webpage: HTTP Error 403: Forbidden (caused by  HTTPError 403: Forbidden ); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
ERROR: [Camsoda] violeta-evanz: Unable to download webpage: HTTP Error 403: Forbidden (caused by  HTTPError 403: Forbidden ); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
```