helloadhavan/github_issues huggingface dataset:
Repository: facebook/react
Pull request: Send notification to Discord if automated publish fails

## Summary

Only enabled for the nightly releases not manual releases to avoid spam in case of testing.

It's easy to miss if automated publish fails e.g. due to expired tokens. This will send a notification to the same channel PR notifications are sent.

## How did you test this change?

yolo


Changed files:
filename: .github/workflows/runtime_prereleases.yml
patch: @@ -13,7 +13,14 @@ on:
       dist_tag:
         required: true
         type: string
+      enableFailureNotification:
+        description: 'Whether to notify the team on Discord when the release fails. Useful if this workflow is called from an automation.'
+        required: false
+        type: boolean
     secrets:
+      DISCORD_WEBHOOK_URL:
+        description: 'Discord webhook URL to notify on failure. Only required if enableFailureNotification is true.'
+        required: false
       GH_TOKEN:
         required: true
       NPM_TOKEN:
@@ -58,3 +65,11 @@ jobs:
           GH_TOKEN=${{ secrets.GH_TOKEN }} scripts/release/prepare-release-from-ci.js --skipTests -r ${{ inputs.release_channel }} --commit=${{ inputs.commit_sha }}
           cp ./scripts/release/ci-npmrc ~/.npmrc
           scripts/release/publish.js --ci --tags ${{ inputs.dist_tag }}
+      - name: Notify Discord on failure
+        if: failure() && inputs.enableFailureNotification == true
+        uses: tsickert/discord-webhook@86dc739f3f165f16dadc5666051c367efa1692f4
+        with:
+          webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
+          embed-author-name: "GitHub Actions"
+          embed-title: 'Publish of $${{ inputs.release_channel }} release failed'
+          embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}

filename: .github/workflows/runtime_prereleases_nightly.yml
patch: @@ -21,7 +21,9 @@ jobs:
       commit_sha: ${{ github.sha }}
       release_channel: stable
       dist_tag: canary,next
+      enableFailureNotification: true
     secrets:
+      DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
       NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
       GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
@@ -40,6 +42,8 @@ jobs:
       commit_sha: ${{ github.sha }}
       release_channel: experimental
       dist_tag: experimental
+      enableFailureNotification: true
     secrets:
+      DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
       NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
       GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Repository: nodejs/node
Pull request: tools: update nixpkgs-unstable to 59b6c96beacc898566c9be1052ae806f383

This is an automated update of nixpkgs-unstable to 59b6c96beacc898566c9be1052ae806f383.

Changed files:
filename: tools/nix/pkgs.nix
patch: @@ -1,10 +1,10 @@
 arg:
 let
   repo = "https://github.com/NixOS/nixpkgs";
-  rev = "a8d610af3f1a5fb71e23e08434d8d61a466fc942";
+  rev = "59b6c96beacc898566c9be1052ae806f3835f87d";
   nixpkgs = import (builtins.fetchTarball {
     url = "${repo}/archive/${rev}.tar.gz";
-    sha256 = "0q3m5y6gz2mcmmgf5bvxamjrm6wxzcckqbj4yj1yrzp7p2c9z5mz";
+    sha256 = "1b8j0xs1z1d13qrb2l5kmrrl5pydwf56a097jyla65f9218n52aj";
   }) arg;
 in
 nixpkgs
Repository: ollama/ollama
Pull request: ci: adjust windows compilers for lint/test


Changed files:
filename: .github/workflows/test.yaml
patch: @@ -269,6 +269,15 @@ jobs:
       - uses: actions/checkout@v4
         with:
           submodules: recursive
+      - name: Add msys paths
+        if: ${{ startsWith(matrix.os, 'windows-') }}
+        run: |
+          echo "c:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+          echo "C:\msys64\clang64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+      - name: Install msys2 tools
+        if: ${{ startsWith(matrix.os, 'windows-') }}
+        run: |
+          Start-Process "c:\msys64\usr\bin\pacman.exe" -ArgumentList @("-S", "--noconfirm", "mingw-w64-clang-x86_64-gcc-compat", "mingw-w64-clang-x86_64-clang") -NoNewWindow -Wait
       - uses: actions/setup-go@v5
         with:
           go-version-file: go.mod
@@ -300,6 +309,15 @@ jobs:
       - uses: actions/checkout@v4
         with:
           submodules: recursive
+      - name: Add msys paths
+        if: ${{ startsWith(matrix.os, 'windows-') }}
+        run: |
+          echo "c:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+          echo "C:\msys64\clang64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+      - name: Install msys2 tools
+        if: ${{ startsWith(matrix.os, 'windows-') }}
+        run: |
+          Start-Process "c:\msys64\usr\bin\pacman.exe" -ArgumentList @("-S", "--noconfirm", "mingw-w64-clang-x86_64-gcc-compat", "mingw-w64-clang-x86_64-clang") -NoNewWindow -Wait
       - uses: actions/setup-go@v5
         with:
           go-version-file: go.mod
Repository: facebook/react
Pull request: Fix `Failed to execute 'measure' on 'Performance'` error

When `startTime` still has its initial value of `-1.1` we must not call `logComponentMount`. This can occur when rendering a `'next/dynamic'` component with `{ssr: false}` in a client component, for example. Unfortunately, I didn't manage to reproduce this scenario in a unit test.

Changed files:
filename: packages/react-reconciler/src/ReactFiberCommitWork.js
patch: @@ -3756,7 +3756,7 @@ function commitPassiveMountOnFiber(
           ) {
             // Log the reappear in the render phase.
             const startTime = ((finishedWork.actualStartTime: any): number);
-            if (endTime - startTime > 0.05) {
+            if (startTime >= 0 && endTime - startTime > 0.05) {
               logComponentReappeared(finishedWork, startTime, endTime);
             }
             if (
@@ -3861,7 +3861,7 @@ function commitPassiveMountOnFiber(
     if (isMount) {
       // Log the mount in the render phase.
       const startTime = ((finishedWork.actualStartTime: any): number);
-      if (endTime - startTime > 0.05) {
+      if (startTime >= 0 && endTime - startTime > 0.05) {
         logComponentMount(finishedWork, startTime, endTime);
       }
     }
Repository: facebook/react
Pull request: fix: incorrect type in getTypeSymbol

`getTypeSymbol` also returns string

Changed files:
filename: packages/react-devtools-shared/src/backend/fiber/renderer.js
patch: @@ -248,7 +248,7 @@ function createVirtualInstance(
 type DevToolsInstance = FiberInstance | VirtualInstance | FilteredFiberInstance;
 
 type getDisplayNameForFiberType = (fiber: Fiber) => string | null;
-type getTypeSymbolType = (type: any) => symbol | number;
+type getTypeSymbolType = (type: any) => symbol | string | number;
 
 type ReactPriorityLevelsType = {
   ImmediatePriority: number,
@@ -541,13 +541,12 @@ export function getInternalReactConstants(version: string): {
   // End of copied code.
   // **********************************************************
 
-  function getTypeSymbol(type: any): symbol | number {
+  function getTypeSymbol(type: any): symbol | string | number {
     const symbolOrNumber =
       typeof type === 'object' && type !== null ? type.$$typeof : type;
 
     return typeof symbolOrNumber === 'symbol'
-      ? // $FlowFixMe[incompatible-return] `toString()` doesn't match the type signature?
-        symbolOrNumber.toString()
+      ? symbolOrNumber.toString()
       : symbolOrNumber;
   }
Repository: ollama/ollama
Pull request: Update README.md

Hey Ollama builders!

That's a small update for README, I added a Minima project that use OIlama docker container.

Thank you!

Changed files:
filename: README.md
patch: @@ -359,6 +359,7 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Nosia](https://github.com/nosia-ai/nosia) (Easy to install and use RAG platform based on Ollama)
 - [Witsy](https://github.com/nbonamy/witsy) (An AI Desktop application avaiable for Mac/Windows/Linux)
 - [Abbey](https://github.com/US-Artificial-Intelligence/abbey) (A configurable AI interface server with notebooks, document storage, and YouTube support)
+- [Minima](https://github.com/dmayboroda/minima) (RAG with on-premises or fully local workflow)
 
 ### Cloud
Repository: electron/electron
Pull request: fix: showMessageDialog should center dialog to parent

#### Description of Change

Closes https://github.com/electron/electron/issues/23001.

Fixes an issue where dialog.showMessageDialog showed a window incorrectly centered to monitor instead of parent window when passed.

<details><summary>Before</summary>
<p>

<img width="939" height="667" alt="Screenshot 2025-08-27 at 10 50 56 AM" src="https://github.com/user-attachments/assets/cc2e107e-99c7-4d6f-9dee-8e14c9145f38" />

</p>
</details> 

<details><summary>After</summary>
<p>

<img width="807" height="633" alt="Screenshot 2025-08-27 at 10 53 11 AM" src="https://github.com/user-attachments/assets/9a9bc307-51b1-450c-bf71-633318a66ab5" />

</p>
</details> 

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: Fixed an issue where `dialog.showMessageDialog` showed a window incorrectly centered to monitor instead of parent window when passed.


Changed files:
filename: shell/browser/ui/message_box_win.cc
patch: @@ -160,6 +160,7 @@ DialogResult ShowTaskDialogWstr(gfx::AcceleratedWidget parent,
 
   if (parent) {
     config.hwndParent = parent;
+    config.dwFlags |= TDF_POSITION_RELATIVE_TO_WINDOW;
   }
 
   if (default_id > 0)
Repository: electron/electron
Pull request: build: automatically install git for dugite

#### Description of Change
- followup to #48243.  This adds dugite as a module that can run postinstall scripts so that we don't have to manually install git for dugite.
<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Contributors guide: https://github.com/electron/electron/blob/main/CONTRIBUTING.md
-->

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->none


Changed files:
filename: .github/actions/install-dependencies/action.yml
patch: @@ -22,6 +22,3 @@ runs:
         export npm_config_arch="ia32"
       fi
       node script/yarn.js install --immutable
-      if [ "$BUILD_TYPE" = "win" ]; then
-        node node_modules/dugite/script/download-git.js
-      fi

filename: package.json
patch: @@ -139,5 +139,10 @@
   "workspaces": [
     "spec",
     "spec/fixtures/native-addon/*"
-  ]
+  ],
+  "dependenciesMeta": {
+    "dugite": {
+      "built": true
+    }
+  }
 }

filename: yarn.lock
patch: @@ -4726,6 +4726,9 @@ __metadata:
     webpack: "npm:^5.95.0"
     webpack-cli: "npm:^6.0.1"
     wrapper-webpack-plugin: "npm:^2.2.0"
+  dependenciesMeta:
+    dugite:
+      built: true
   languageName: unknown
   linkType: soft
Repository: ggml-org/llama.cpp
Pull request: model : Update label for LFM2-24B-A2B

GGUFs will be in https://huggingface.co/LiquidAI/LFM2-24B-A2B-GGUF.

```
❯ build/bin/llama-bench -m /data/playground/checkpoints/LFM2-24B-A2B-Preview-Q4_0.gguf,/data/playground/checkpoints/LFM2-8B-A1B-Q4_0.gguf -p 1 -n 0
| model                          |       size |     params | backend    | threads |            test |                  t/s |
| ------------------------------ | ---------: | ---------: | ---------- | ------: | --------------: | -------------------: |
| lfm2moe 24B.A2B Q4_0           |  12.54 GiB |    23.84 B | CPU        |      10 |             pp1 |         30.35 ± 2.49 |
| lfm2moe 8B.A1B Q4_0            |   4.41 GiB |     8.34 B | CPU        |      10 |             pp1 |         49.24 ± 1.93 |
```


Changed files:
filename: src/llama-model.cpp
patch: @@ -123,6 +123,7 @@ const char * llm_type_name(llm_type type) {
         case LLM_TYPE_8B_A1B:        return "8B.A1B";
         case LLM_TYPE_16B_A1B:       return "16B.A1B";
         case LLM_TYPE_21B_A3B:       return "21B.A3B";
+        case LLM_TYPE_24B_A2B:       return "24B.A2B";
         case LLM_TYPE_30B_A3B:       return "30B.A3B";
         case LLM_TYPE_31B_A3_5B:     return "31B.A3.5B";
         case LLM_TYPE_35B_A3B:       return "35B.A3B";
@@ -2381,7 +2382,11 @@ void llama_model::load_hparams(llama_model_loader & ml) {
                     hparams.recurrent_layer_arr[il] = hparams.n_head_kv(il) == 0;
                 }
 
-                type = LLM_TYPE_8B_A1B;
+                switch (hparams.n_layer) {
+                    case 24: type = LLM_TYPE_8B_A1B;  break;
+                    case 40: type = LLM_TYPE_24B_A2B; break;
+                    default: type = LLM_TYPE_UNKNOWN;
+                }
             } break;
         case LLM_ARCH_SMALLTHINKER:
             {

filename: src/llama-model.h
patch: @@ -116,6 +116,7 @@ enum llm_type {
     LLM_TYPE_8B_A1B, // lfm2moe
     LLM_TYPE_16B_A1B,
     LLM_TYPE_21B_A3B, // Ernie MoE small
+    LLM_TYPE_24B_A2B, // lfm2moe
     LLM_TYPE_30B_A3B,
     LLM_TYPE_31B_A3_5B,
     LLM_TYPE_35B_A3B, // Qwen3.5
Repository: ollama/ollama
Pull request: cmd: don't rely on reading repo file for display test


Changed files:
filename: cmd/cmd_test.go
patch: @@ -8,7 +8,6 @@ import (
 	"net/http"
 	"net/http/httptest"
 	"os"
-	"path/filepath"
 	"strings"
 	"testing"
 
@@ -180,18 +179,14 @@ Weigh anchor!
 
 	t.Run("license", func(t *testing.T) {
 		var b bytes.Buffer
-		license, err := os.ReadFile(filepath.Join("..", "LICENSE"))
-		if err != nil {
-			t.Fatal(err)
-		}
-
+		license := "MIT License\nCopyright (c) Ollama\n"
 		if err := showInfo(&api.ShowResponse{
 			Details: api.ModelDetails{
 				Family:            "test",
 				ParameterSize:     "7B",
 				QuantizationLevel: "FP16",
 			},
-			License: string(license),
+			License: license,
 		}, &b); err != nil {
 			t.Fatal(err)
 		}
Repository: vuejs/vue
Pull request: fix: pass errors encountered within nextTick to Vue.config.errorHandler

**What kind of change does this PR introduce?** (check at least one)

- [x] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [x] No

If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [x] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [ ] New/updated tests are included

If adding a **new feature**, the PR's description includes:
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

**Other information:**

I've found it easier to debug my application if I use:

Vue.config.errorHandler = function(err, vm, info) {throw err};

Unfortunately, I found that my error handler wasn't being called if the error was encountered as a result of updating a reactive element.  Tracing back, I found that this was due to nextTick calling console.error directly instead of handleError.  I made this change locally and found that it fixed my problem, and didn't cause any failures with 'npm test'.


Changed files:
filename: src/core/util/env.js
patch: @@ -89,7 +89,7 @@ export const nextTick = (function () {
   /* istanbul ignore if */ // $flow-disable-line
   if (typeof Promise !== 'undefined' && isNative(Promise)) {
     var p = Promise.resolve()
-    var logError = err => { console.error(err) }
+    var logError = err => { handleError(err, null, 'nextTick') }
     timerFunc = () => {
       p.then(nextTickHandler).catch(logError)
       // in problematic UIWebViews, Promise.then doesn't completely break, but
Repository: electron/electron
Pull request: build: automatically install git for dugite

Backport of #49022

See that PR for details.


Notes: <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->none


Changed files:
filename: .github/actions/install-dependencies/action.yml
patch: @@ -22,6 +22,3 @@ runs:
         export npm_config_arch="ia32"
       fi
       node script/yarn.js install --immutable
-      if [ "$BUILD_TYPE" = "win" ]; then
-        node node_modules/dugite/script/download-git.js
-      fi

filename: package.json
patch: @@ -139,5 +139,10 @@
   "workspaces": [
     "spec",
     "spec/fixtures/native-addon/*"
-  ]
+  ],
+  "dependenciesMeta": {
+    "dugite": {
+      "built": true
+    }
+  }
 }

filename: yarn.lock
patch: @@ -4690,6 +4690,9 @@ __metadata:
     webpack: "npm:^5.95.0"
     webpack-cli: "npm:^6.0.1"
     wrapper-webpack-plugin: "npm:^2.2.0"
+  dependenciesMeta:
+    dugite:
+      built: true
   languageName: unknown
   linkType: soft
Repository: ollama/ollama
Pull request: Update README.md

added three projects

Changed files:
filename: README.md
patch: @@ -346,6 +346,9 @@ See the [API documentation](./docs/api.md) for all endpoints.
 - [Web management](https://github.com/lemonit-eric-mao/ollama-web-management) (Web management page)
 - [Promptery](https://github.com/promptery/promptery) (desktop client for Ollama.)
 - [Ollama App](https://github.com/JHubi1/ollama-app) (Modern and easy-to-use multi-platform client for Ollama)
+- [SpaceLlama](https://github.com/tcsenpai/spacellama) (Firefox and Chrome extension to quickly summarize web pages with ollama in a sidebar)
+- [YouLama](https://github.com/tcsenpai/youlama) (Webapp to quickly summarize any YouTube video, supporting Invidious as well)
+- [DualMind](https://github.com/tcsenpai/dualmind) (Experimental app allowing two models to talk to each other in the terminal or in a web interface)
 - [ollamarama-matrix](https://github.com/h1ddenpr0cess20/ollamarama-matrix) (Ollama chatbot for the Matrix chat protocol)
 - [ollama-chat-app](https://github.com/anan1213095357/ollama-chat-app) (Flutter-based chat app)
 - [Perfect Memory AI](https://www.perfectmemory.ai/) (Productivity AI assists personalized by what you have seen on your screen, heard and said in the meetings)
Repository: nodejs/node
Pull request: test: update WPT for WebCryptoAPI to 1e4933113d

This is an automated update of the WPT for WebCryptoAPI to https://github.com/web-platform-tests/wpt/commit/1e4933113d2028e092d07a9e865db8f606b21026.

Changed files:
filename: test/fixtures/wpt/README.md
patch: @@ -34,7 +34,7 @@ Last update:
 - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
 - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
 - web-locks: https://github.com/web-platform-tests/wpt/tree/10a122a6bc/web-locks
-- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/c58b6f4e0e/WebCryptoAPI
+- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/1e4933113d/WebCryptoAPI
 - webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/2f96fa1996/webidl/ecmascript-binding/es-exceptions
 - webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
 - webstorage: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/webstorage

filename: test/fixtures/wpt/WebCryptoAPI/WEB_FEATURES.yml
patch: @@ -0,0 +1,3 @@
+features:
+- name: web-cryptography
+  files: '**'

filename: test/fixtures/wpt/versions.json
patch: @@ -96,7 +96,7 @@
     "path": "web-locks"
   },
   "WebCryptoAPI": {
-    "commit": "c58b6f4e0eaf8d3b9792f7add1d3dfcbef40053f",
+    "commit": "1e4933113d2028e092d07a9e865db8f606b21026",
     "path": "WebCryptoAPI"
   },
   "webidl/ecmascript-binding/es-exceptions": {
Repository: huggingface/transformers
Pull request: Remove tied weights from internal attribute if they are not tied

# What does this PR do?

As per the title.

Changed files:
filename: src/transformers/modeling_utils.py
patch: @@ -2398,13 +2398,15 @@ def tie_weights(self, missing_keys: Optional[set[str]] = None, recompute_mapping
                 source_is_there = source_param_name not in missing_keys
                 target_is_there = target_param_name not in missing_keys
                 # Both are already present -> it means the config is wrong and do not reflect the actual
-                # checkpoint -> let's raise a warning and do nothing
+                # checkpoint -> let's raise a warning and NOT tie them
                 if source_is_there and target_is_there:
                     logger.warning(
                         f"The tied weights mapping and config for this model specifies to tie {source_param_name} to "
                         f"{target_param_name}, but both are present in the checkpoints, so we will NOT tie them. "
                         "You should update the config with `tie_word_embeddings=False` to silence this warning"
                     )
+                    # Remove from internal attribute to correctly reflect actual tied weights
+                    self.all_tied_weights_keys.pop(target_param_name)
                     # Skip to next iteration
                     continue
                 # We're missing the source but we have the target -> we swap them, tying the parameter that exists

filename: src/transformers/models/sam3_video/modeling_sam3_video.py
patch: @@ -505,8 +505,6 @@ class Sam3VideoPreTrainedModel(PreTrainedModel):
 
 @auto_docstring
 class Sam3VideoModel(Sam3VideoPreTrainedModel):
-    all_tied_weights_keys = {}
-
     def __init__(self, config: Sam3VideoConfig):
         super().__init__(config)
         self.config = config
Repository: huggingface/transformers
Pull request: Do not rely on config for inferring model dtype

# What does this PR do?

As per the title. Back to what it was before https://github.com/huggingface/transformers/pull/42805. Relying on the config is an issue in some cases, see https://github.com/huggingface/transformers/pull/42805#issuecomment-3646172797

Changed files:
filename: src/transformers/modeling_utils.py
patch: @@ -883,11 +883,7 @@ def dtype(self) -> torch.dtype:
         """
         `torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).
         """
-        # Use config dtype, if it's a proper `torch.dtype`
-        config_dtype = getattr(self.config, "dtype", None)
-        config_dtype = config_dtype if isinstance(config_dtype, torch.dtype) else None
-        dtype = config_dtype or next(param.dtype for param in self.parameters() if param.is_floating_point())
-        return dtype
+        return next(param.dtype for param in self.parameters() if param.is_floating_point())
 
     def invert_attention_mask(self, encoder_attention_mask: Tensor) -> Tensor:
         """