sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: transformers
Issue: Enable Quantize KV Cache for Mistral Model
Labels: Feature request

### Feature request

Enable Quantize KV Cache for Mistral Model, as described in #30483.

### Motivation

KV cache quantization has emerged as a crucial optimization, particularly in high-throughput, multi-user scenarios, where efficiency is paramount.

Hugging Face currently leads in supporting quantization across a wide range of models (thanks to the effort of @zucchini-nlp), the widely used Mistral model remains unsupported. This gap presents an opportunity to extend quantization support to Mistral, addressing a significant need in the community.

In addition to this change, I am also interested in enabling kv cache quantization for more models, such as Qwen and Phi. Understanding the detailed requirements and best practices for these types of contributions would be incredibly helpful.

### Your contribution

I am interested in submitting a pull request but am uncertain about the best way to verify that the behavior aligns with expectations.

In short, I tried to make a modification by naively adding the `_supports_quantized=True` flag to the `MistralPreTrainedModel` class [around here](https://github.com/huggingface/transformers/blob/c24c79ebf91f6f04faf287997848ed6e64d78899/src/transformers/models/mistral/modeling_mistral.py#L587):

https://github.com/huggingface/transformers/blob/c24c79ebf91f6f04faf287997848ed6e64d78899/src/transformers/models/mistral/modeling_mistral.py#L587

When testing this change informally, it seemed to work as intended, producing slightly different (but still coherent) outputs compared to full precision at zero temperature, which I believe is expected.

I want to ensure that any modifications I make meet the expected standards and don't inadvertently cause issues. If my informal testing is sufficient for this case, I am happy to proceed with submitting the PR. If more rigorous validation is needed, any guidance or resources would be appreciated.
Repository: ollama
Issue: tool parsing issues with "'"
Labels: bug

### What is the issue?

difficult to see in the title: ' is the problem.
when i ask my ai to "execute a python example" it generates something like "print('...')" but truncates at the 1st ':

        "model": "llama3.1:8b-instruct-fp16",
        "created_at": "2024-12-02T13:26:55.1045197Z",
        "message": {
            "role": "assistant",
            "content": "",
            "tool_calls": [
                {
                    "function": {
                        "name": "execute_python",
                        "arguments": {
                            "code": "print("
                        }
                    }
                }
            ]
        },
        "done_reason": "stop",
        "done": true,
        "total_duration": 574508000,
        "load_duration": 10134500,
        "prompt_eval_count": 1371,
        "prompt_eval_duration": 3000000,
        "eval_count": 18,
        "eval_duration": 559000000


### OS

_No response_

### GPU

_No response_

### CPU

_No response_

### Ollama version

_No response_
Repository: PowerToys
Issue: Something went wrong.
Labels: Issue-Bug,Product-PowerToys Run,Needs-Triage

### Microsoft PowerToys version

0.86.0.0

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

Version: 0.86.0.0
OS Version: Microsoft Windows NT 10.0.26120.0
IntPtr Length: 8
x64: True
Date: 2/12/2024 8:32:42
Exception:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Threading.TimerQueue.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

### ✔️ Expected Behavior

Version: 0.86.0.0
OS Version: Microsoft Windows NT 10.0.26120.0
IntPtr Length: 8
x64: True
Date: 2/12/2024 8:32:42
Exception:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Threading.TimerQueue.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

### ❌ Actual Behavior

Version: 0.86.0.0
OS Version: Microsoft Windows NT 10.0.26120.0
IntPtr Length: 8
x64: True
Date: 2/12/2024 8:32:42
Exception:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Threading.TimerQueue.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

### Other Software

_No response_
Repository: vscode
Issue: Source Control Graph: support move the view panel to editor
Labels: feature-request,scm,under-discussion

The current Source Control Graph view is in the sidebar, it is limited in size, and the default size is small, it lacks some practicality.

I know it's to keep a consistent layout and interaction, but it would be more practical as a separate editor (tab).

Like [Git Graph](https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph) does:

![Image](https://github.com/user-attachments/assets/ab35c673-1878-43ac-891e-4ac06873d81a)
Repository: next.js
Issue: Link prefetch doesn't work for the initial page user lands
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/dazzling-margulis-zmc54v

### To Reproduce

1. Start the application `pnpm run build && pnpm run start`
2. Navigate to `/product/3` page and refresh so it's the initial landed page
3. Navigate to other pages using the links
4. Navigate to `Product 3` page using the link
5. Notice that all links except `Product 3` is prefetched and displayed instantly while `Product 3` page is not.


### Current vs. Expected behavior

## Current behaviour

The initial page user lands won't load instantly on later navigations with `prefetch={true}` on Links.

Example: when landing on `product/3` page first and then trying to navigate back to `product/3` later is very slow, however all other links work perfectly

https://github.com/user-attachments/assets/30fa51fa-e3d4-412b-a247-9b9f77bf54ad

## Expected behaviour

When user clicks on `Product 3` link, page should show up immediately like the other links

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.0.4-canary.34 // Latest available version is detected (15.0.4-canary.34).
  eslint-config-next: N/A
  react: 19.0.0-rc-b01722d5-20241114
  react-dom: 19.0.0-rc-b01722d5-20241114
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Which stage(s) are affected? (Select all that apply)

next start (local), Vercel (Deployed)

### Additional context

It can be reproduced both by running locally or deploying on Vercel.

Issue is also reproducible on https://github.com/vercel/commerce repo, live on https://demo.vercel.store/ which [uses RC1](https://github.com/vercel/commerce/blob/main/package.json#L20)
Repository: flutter
Issue: [Android]  After enabling autofillHints, the keyboard automatically hide after entering the first letter
Labels: a: text input,platform-android,framework,f: material design,a: internationalization,has reproducible steps,P2,team-text-input,triaged-text-input,found in release: 3.24,found in release: 3.27

### Steps to reproduce

run this code on a physical Android device (with autofill data populated), then input a letter.

### Expected results

Do not auto-hide keyboard

### Actual results

the keyboard auto hide

### Code sample

```dart
import 'package:flutter/material.dart';

void main(List<String> args) {
  runApp(
    MaterialApp(
      home: Scaffold(
        body: Center(
          child: TextField(
            autofillHints: [AutofillHints.name],
          ),
        ),
      ),
    ),
  );
}
```

### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run
flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on
    macOS 15.1.1 24B91 darwin-arm64,
    locale zh-Hans-CN)
[✓] Android toolchain - develop for
    Android devices (Android SDK version
    34.0.0)
[✓] Xcode - develop for iOS and macOS
    (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.95.3)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
```

</details>
Repository: angular
Issue: docs: search on v18 shows results from next
Labels: area: docs-infra

### Describe the problem that you experienced

Searching on https://v18.angular.dev/ shows results that are available on `next` but not in the current documentation and clicking the result doesn't do anything.


### Enter the URL of the topic with the problem

https://v18.angular.dev/

### Describe what you were looking for in the documentation

strictStandalone

### Describe the actions that led you to experience the problem

1. Go to https://v18.angular.dev/
2. Click the search icon on the left menu.
3. Search for 'strictStandalone'
4. Result comes up but it's not available in v18 documentation. 
![Image](https://github.com/user-attachments/assets/72163c21-5582-4ab2-b1c2-e8ce7bfb00e2)
Repository: next.js
Issue: Static export with a specified basePath causes request mismatch for RSC payload .txt file
Labels: bug,Output (export/standalone)

### Link to the code that reproduces this issue

https://github.com/yukiyokotani/next-static-export-404-reproduce

### To Reproduce

1. The code in the linked repository is deployed in the following github pages with static export.
   - https://yukiyokotani.github.io/next-static-export-404-reproduce/
2. This site only has a link to the root path: `/`. If you look at the network tab in the developer tools, you will see that the RSC Payload request corresponding to the root path is 404.

### Current vs. Expected behavior

Current:
- A request for the RSC Payload corresponding to the root path is being made to https://yukiyokotani.github.io/next-static-export-404-reproduce.txt?_rsc=3eatq.

Expected:
- The request for the RSC Payload corresponding to the root path should be made to https://yukiyokotani.github.io/next-static-export-404-reproduce/index.txt?_rsc=3eatq. This is because the static export outputs the RSC payload .txt file as `index.txt` and not a file like `next-static-export-404-reproduce.txt`.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112
  Available memory (MB): 16384
  Available CPU cores: 8
Binaries:
  Node: 22.2.0
  npm: 10.8.1
  Yarn: 3.2.4
  pnpm: 9.4.0
Relevant Packages:
  next: 14.2.18 // An outdated version detected (latest is 15.0.3), upgrade is highly recommended!
  eslint-config-next: 14.2.18
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.7.2
Next.js Config:
  output: export
```


### Which area(s) are affected? (Select all that apply)

Output (export/standalone)

### Which stage(s) are affected? (Select all that apply)

next build (local), Other (Deployed)

### Additional context

In the code output generated by Static Export, the request path for the RSC Payload `.txt` files is constructed by appending `.txt` to the page path if the path ends with `'/'`, and by appending `index.txt` otherwise. When `basePath` is set and `trailingSlash` is disabled (default settings), the root path `'/'` is treated as `''`, and according to the mentioned logic, the RSC Payload `.txt` file path becomes `{basePath}.txt`. However, the RSC Payload `.txt` file corresponding to `'/'` in the Static Export output is always `index.txt`. As a result, when trying to access `{basePath}.txt`, which should be `{basePath}/index.txt`, a 404 error occurs.
Repository: flutter
Issue: [Web] Composing Japanese letters disappear when shifting converting area
Labels: a: text input,a: internationalization,platform-web,has reproducible steps,P2,team-text-input,triaged-text-input,found in release: 3.24,found in release: 3.27

### Steps to reproduce

1. launch an app with `TextField` on web platform
2. type some letters in Hiragana, Japanese.
3. before committing (by hitting the Enter key), hit the Space key to convert them to Kanji.
4. press Shift and hit the left arrow key twice
5. composing Hiragana letters disappear

### Expected results

The composing Hiragana letters don't disappear, and the composing area would shift respecting the arrow key hit.

### Actual results

All the composing Hiragana letters disappear.

### Code sample

<details open><summary>Code sample</summary>

```dart
void main() => runApp(const MainApp());

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Padding(
          padding: const EdgeInsets.all(32),
          child: Container(
            width: double.infinity,
            color: Colors.white,
            child: const Padding(
              padding: EdgeInsets.all(16),
              child: TextField(),
            ),
          ),
        ),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

https://github.com/user-attachments/assets/50f5c200-8e3d-4ff1-9457-3c08224d8be6


</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
$ fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 14.3.1 23D60 darwin-arm64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.94.2)
[✓] VS Code (version 1.61.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
```

</details>
Repository: pytorch
Issue: Use Python 3.9 type annotations
Labels: module: typing,triaged,better-engineering

### 🚀 The feature, motivation and pitch

Now that pytorch has moved to Python 3.9, we can use the more concise Python 3.9 annotations.

Before:

```
from typing import List, Dict, Optional, Set, Union

a: Optional[str] = None
b: List[Dict[Set[int]] = []
c: Optional[Union[int, str, float]] = None
```

After

```
a: str | None = None
b: list[dict[set[int]] = []
c: int | str | float | None = None
```

This can be done automatically with the `pyupgrade` tool, and then checked with `ruff` (so we don't have to add a dependency on `pyupgrade`).

- [ ] https://github.com/pytorch/pytorch/pull/141870
- [x] https://github.com/pytorch/pytorch/pull/141871
- [ ] https://github.com/pytorch/pytorch/pull/141872
- [ ] https://github.com/pytorch/pytorch/pull/141873
- [ ] https://github.com/pytorch/pytorch/pull/141874




### Alternatives

Doing nothing.


cc @ezyang @malfet @xuzhao9 @gramster
Repository: go
Issue: time: Incorrect zonebounds on location based on POSIX TZ string
Labels: NeedsInvestigation

### Go version

go version go1.23.3 linux/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE='on'
GOARCH='amd64'
GOBIN='/home/wouter/go/bin/'
GOCACHE='/home/wouter/.cache/go-build'
GOENV='/home/wouter/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/wouter/go/pkg/mod'
GONOPROXY='gitlab.figonet.nl'
GONOSUMDB='gitlab.figonet.nl'
GOOS='linux'
GOPATH='/home/wouter/go'
GOPRIVATE='gitlab.figonet.nl'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib64/golang'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/lib64/golang/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.3'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/wouter/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='x86_64-solus-linux-gcc'
CXX='x86_64-solus-linux-g++'
CGO_ENABLED='1'
GOMOD='/home/wouter/Development/modules/sw_bca/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2766243939=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

My goal was to check if a posix tz string has the same time zone transitions as a given `time.Location`.
Via an empty Time zone information format string I loaded a Posix timezone string as location: 
https://go.dev/play/p/iRKJ1idPNz6.
Using the loaded location I call `ZoneBounds()`.

### What did you see happen?

As from the go.dev/play example: it returns the end of DST and the end of the year.

### What did you expect to see?

I expected to see get the end of DST and the start of the DST in the next year.

### Debugging

I dug through the time library and found [this comment](https://cs.opensource.google/go/go/+/refs/tags/go1.23.3:src/time/zoneinfo.go;l=356-359):
```golang
	// The start and end values that we return are accurate
	// close to a daylight savings transition, but are otherwise
	// just the start and end of the year. That suffices for
	// the only caller that cares, which is Date.
```
This comment predates the addition of the `ZoneBounds` method. Which is now a second caller that cares.
Repository: kubernetes
Issue: kubelet: PodRejectionStatus Kubelet should reject pod when the node didn't have enough resource test error
Labels: kind/bug,priority/backlog,sig/node,triage/accepted

### What happened?

https://github.com/kubernetes/kubernetes/pull/128403 merged to move PodRejectionStatus into e2e/node from e2e/common/node. In certain cases this test fails because the test is comparing the entire status object. The test needs to be changed to validate the fields we care about.

```
Expected
    <v1.PodStatus>: 
        conditions:
        - lastProbeTime: null
          lastTransitionTime: "2024-11-29T14:10:06Z"
          status: "False"
          type: PodReadyToStartContainers
        - lastProbeTime: null
          lastTransitionTime: "2024-11-29T14:10:06Z"
          status: "True"
          type: Initialized
        - lastProbeTime: null
          lastTransitionTime: "2024-11-29T14:10:06Z"
          reason: PodFailed
          status: "False"
          type: Ready
        - lastProbeTime: null
          lastTransitionTime: "2024-11-29T14:10:06Z"
          reason: PodFailed
          status: "False"
          type: ContainersReady
        - lastProbeTime: null
          lastTransitionTime: "2024-11-29T14:10:06Z"
          status: "True"
          type: PodScheduled
        containerStatuses:
        - image: registry.k8s.io/pause:3.10
          imageID: ""
          lastState: {}
          name: pod-out-of-cpu
          ready: false
          restartCount: 0
          started: false
          state:
            waiting:
              reason: ContainerCreating
          volumeMounts:
          - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
            name: kube-api-access-4dd6q
            readOnly: true
            recursiveReadOnly: Disabled
        hostIP: 10.0.128.3
        hostIPs:
        - ip: 10.0.128.3
        message: 'Pod was rejected: Node didn''t have enough resource: cpu, requested: 1000000000000000,
          used: 491, capacity: 3500'
        phase: Failed
        qosClass: Burstable
        reason: OutOfcpu
        startTime: "2024-11-29T14:10:06Z"
to equal
    <v1.PodStatus>: 
        message: 'Pod was rejected: Node didn''t have enough resource: cpu, requested: 1000000000000000,
          used: 491, capacity: 3500'
        phase: Failed
        qosClass: Burstable
        reason: OutOfcpu
        startTime: "2024-11-29T14:10:06Z"
```



### What did you expect to happen?

Expect the test case to run successfully.

### How can we reproduce it (as minimally and precisely as possible)?

See reproduced output.

### Anything else we need to know?

_No response_

### Kubernetes version

<details>
1.31+
</details>


### Cloud provider

<details>
N/A
</details>


### OS version

<details>
Linux
</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: go
Issue: go/types: add Info.ImplicitConversions mapping
Labels: Proposal,Proposal-Accepted

**Background:** One of the many tricky subtasks of the type checker is to compute the conversions implicitly applied to an expression that is used on the right-hand side of an assignment (or passed as an argument, etc), arithmetic, and shifts. This information is hard to compute and useful to clients. Our refactoring tools have needed this information on several occasions.

For example:
- The [golang.org/x/tools/refactor/satisfy](https://pkg.go.dev/golang.org/x/tools/refactor/satisfy) package tries to find all conversions to an interface type by reimplementing the logic from the type checker. This is necessary so that the renaming tool can detect when a method renaming would cause a type to no longer implement an interface that is necessary for compilation to succeed.
- The [inliner](https://cs.opensource.google/go/x/tools/+/master:internal/refactor/inline/inline.go;l=3180?q=inline&ss=go%2Fx%2Ftools) needs to know about implicit conversions in several places. For instance, it needs to know, in a call `f(x)` to `func f(y Y) { g(y) }`, whether it is safe to elide the implicit conversion `Y(x)`, and this depends on both the implicit conversion from x to Y and on the implicit conversion from y to g's parameter type. Ascertaining that x and y are both subject to implicit conversions in general requires logic of many cases (duplicating the type checker), and is further complicated by the [loss of untyped type information when x is a constant](https://github.com/golang/go/issues/63193).

**Proposal:** We add a new field to `types.Info` to record all implicit conversions.

```go
package types

type Info struct {
    // ImplicitConversions records, for an expression appearing in (say) an assignment
    // context, any implicit conversion applied to it.
    ImplicitConversions map[ast.Expr]ImplicitConversion
}

type ImplicitConversion struct {
    // From records the original type of the expression, and To records the type of the "hole".
    // (For historical reasons [1], 'from' is not necessarily the same as the type recorded
    // Info.Types for the expression: the latter includes untyped-to-typed conversions.)
    From, To types.Type
}
```

[1] [historical reasons](https://cs.opensource.google/go/x/tools/+/master:internal/refactor/inline/inline.go;l=1529;drc=bfcbc1b5aac19a5e4259a4759e2c5e5b9b394fd4)


Related:
- https://github.com/golang/go/issues/8970: essentially the same idea, from 10 years ago
- https://github.com/golang/go/issues/47151: the current issue is essentially a dup of "idea 1" in the earlier issue. @mdempsky makes a good point about tuples.
 
@findleyr @timothy-king @griesemer