helloadhavan/github_issues huggingface dataset:
Repository: ollama/ollama
Pull request: Update api.md


Changed files:
filename: docs/api.md
patch: @@ -90,7 +90,7 @@ The final response in the stream also includes additional data about the generat
 - `load_duration`: time spent in nanoseconds loading the model
 - `prompt_eval_count`: number of tokens in the prompt
 - `prompt_eval_duration`: time spent in nanoseconds evaluating the prompt
-- `eval_count`: number of tokens the response
+- `eval_count`: number of tokens in the response
 - `eval_duration`: time in nanoseconds spent generating the response
 - `context`: an encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory
 - `response`: empty if the response was streamed, if not streamed, this will contain the full response
Repository: nodejs/node
Pull request: doc: reserve NMV 140 for Electron 39

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->

Reserving NMV 140 for Electron 39.

Changed files:
filename: doc/abi_version_registry.json
patch: @@ -1,5 +1,6 @@
 {
   "NODE_MODULE_VERSION": [
+    { "modules": 140,"runtime": "electron", "variant": "electron",             "versions": "39" },
     { "modules": 139,"runtime": "electron", "variant": "electron",             "versions": "38" },
     { "modules": 138,"runtime": "node",     "variant": "v8_13.7",              "versions": "25.0.0-pre" },
     { "modules": 137,"runtime": "node",     "variant": "v8_13.6",              "versions": "24.0.0" },
Repository: ggml-org/llama.cpp
Pull request: preset: handle negated arg, reverse the meaning if needed

Fix https://github.com/ggml-org/llama.cpp/issues/18038

Should work on all these cases:

```
mmap = 0 --> disable mmap
mmap = 1 --> enable mmap
no-mmap = 0 --> enable mmap
no-mmap = 1 --> disable mmap
```


Changed files:
filename: common/preset.cpp
patch: @@ -157,6 +157,21 @@ static std::map<std::string, common_arg> get_map_key_opt(common_params_context &
     return mapping;
 }
 
+static bool is_bool_arg(const common_arg & arg) {
+    return !arg.args_neg.empty();
+}
+
+static std::string parse_bool_arg(const common_arg & arg, const std::string & key, const std::string & value) {
+    // if this is a negated arg, we need to reverse the value
+    for (const auto & neg_arg : arg.args_neg) {
+        if (rm_leading_dashes(neg_arg) == key) {
+            return common_arg_utils::is_truthy(value) ? "false" : "true";
+        }
+    }
+    // otherwise, not negated
+    return value;
+}
+
 common_presets common_presets_load(const std::string & path, common_params_context & ctx_params) {
     common_presets out;
     auto key_to_opt = get_map_key_opt(ctx_params);
@@ -173,8 +188,13 @@ common_presets common_presets_load(const std::string & path, common_params_conte
         for (const auto & [key, value] : section.second) {
             LOG_DBG("option: %s = %s\n", key.c_str(), value.c_str());
             if (key_to_opt.find(key) != key_to_opt.end()) {
-                preset.options[key_to_opt[key]] = value;
-                LOG_DBG("accepted option: %s = %s\n", key.c_str(), value.c_str());
+                auto & opt = key_to_opt[key];
+                if (is_bool_arg(opt)) {
+                    preset.options[opt] = parse_bool_arg(opt, key, value);
+                } else {
+                    preset.options[opt] = value;
+                }
+                LOG_DBG("accepted option: %s = %s\n", key.c_str(), preset.options[opt].c_str());
             } else {
                 // TODO: maybe warn about unknown key?
             }
Repository: facebook/react
Pull request: [compiler][ez] Default to using flow suppressions

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):
* __->__ #30622



Changed files:
filename: compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts
patch: @@ -101,6 +101,8 @@ function makeSuggestions(
 const COMPILER_OPTIONS: Partial<PluginOptions> = {
   noEmit: true,
   panicThreshold: 'none',
+  // Don't emit errors on Flow suppressions--Flow already gave a signal
+  flowSuppressions: false,
 };
 
 const rule: Rule.RuleModule = {
Repository: ollama/ollama
Pull request: update jetson tutorial


Changed files:
filename: docs/tutorials/nvidia-jetson.md
patch: @@ -1,38 +1,15 @@
 # Running Ollama on NVIDIA Jetson Devices
 
-With some minor configuration, Ollama runs well on [NVIDIA Jetson Devices](https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/). The following has been tested on [JetPack 5.1.2](https://developer.nvidia.com/embedded/jetpack).
+Ollama runs well on [NVIDIA Jetson Devices](https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/) and should run out of the box with the standard installation instructions. 
 
-NVIDIA Jetson devices are Linux-based embedded AI computers that are purpose-built for AI applications.
-
-Jetsons have an integrated GPU that is wired directly to the memory controller of the machine. For this reason, the `nvidia-smi` command is unrecognized, and Ollama proceeds to operate in "CPU only"
-mode. This can be verified by using a monitoring tool like jtop.
-
-In order to address this, we simply pass the path to the Jetson's pre-installed CUDA libraries into `ollama serve` (while in a tmux session). We then hardcode the num_gpu parameters into a cloned
-version of our target model.
-
-Prerequisites:
-
-- curl
-- tmux
-
-Here are the steps:
+The following has been tested on [JetPack 5.1.2](https://developer.nvidia.com/embedded/jetpack), but should also work on JetPack 6.0.
 
 - Install Ollama via standard Linux command (ignore the 404 error): `curl https://ollama.com/install.sh | sh`
-- Stop the Ollama service: `sudo systemctl stop ollama`
-- Start Ollama serve in a tmux session called ollama_jetson and reference the CUDA libraries path: `tmux has-session -t ollama_jetson 2>/dev/null || tmux new-session -d -s ollama_jetson 
-'LD_LIBRARY_PATH=/usr/local/cuda/lib64 ollama serve'`
 - Pull the model you want to use (e.g. mistral): `ollama pull mistral`
-- Create a new Modelfile specifically for enabling GPU support on the Jetson: `touch ModelfileMistralJetson`
-- In the ModelfileMistralJetson file, specify the FROM model and the num_gpu PARAMETER as shown below:
-
-```
-FROM mistral
-PARAMETER num_gpu 999
-```
+- Start an interactive session: `ollama run mistral`
 
-- Create a new model from your Modelfile: `ollama create mistral-jetson -f ./ModelfileMistralJetson`
-- Run the new model: `ollama run mistral-jetson`
+And that's it!
 
-If you run a monitoring tool like jtop you should now see that Ollama is using the Jetson's integrated GPU.
+# Running Ollama in Docker
 
-And that's it!
+When running GPU accelerated applications in Docker, it is highly recommended to use [dusty-nv jetson-containers repo](https://github.com/dusty-nv/jetson-containers).
\ No newline at end of file
Repository: huggingface/transformers
Pull request: Remove deprecated args in Trainer for v5

# What does this PR do?

This PR removes `half_precision_backend` and `include_tokens_per_second` as we move to v5. 

Changed files:
filename: src/transformers/training_args.py
patch: @@ -1013,12 +1013,7 @@ class TrainingArguments:
         default=False,
         metadata={"help": "Whether to use fp16 (mixed) precision instead of 32-bit"},
     )
-    half_precision_backend: Optional[str] = field(
-        default=None,
-        metadata={
-            "help": "The backend to be used for half precision. This argument is deprecated. We will always use CPU/CUDA AMP from torch",
-        },
-    )
+
     bf16_full_eval: bool = field(
         default=False,
         metadata={
@@ -1376,14 +1371,6 @@ class TrainingArguments:
             "help": "Which mode to use with `torch.compile`, passing one will trigger a model compilation.",
         },
     )
-
-    include_tokens_per_second: Optional[bool] = field(
-        default=None,
-        metadata={
-            "help": "This arg is deprecated and will be removed in v5 , use `include_num_input_tokens_seen` instead."
-        },
-    )
-
     include_num_input_tokens_seen: Union[str, bool] = field(
         default="no",
         metadata={
@@ -1585,11 +1572,6 @@ def __post_init__(self):
                         # gpu
                         raise ValueError(error_message)
 
-        if self.half_precision_backend is not None:
-            raise ValueError(
-                "half_precision_backend is deprecated. For mixed precision, we will always use CPU/CUDA AMP from torch"
-            )
-
         if self.fp16 and self.bf16:
             raise ValueError("At most one of fp16 and bf16 can be True, but not both")
 
@@ -1887,12 +1869,6 @@ def __post_init__(self):
                 " when --dataloader_num_workers > 1."
             )
 
-        if self.include_tokens_per_second is not None:
-            logger.warning(
-                "include_tokens_per_second is deprecated and will be removed in v5. Use `include_num_input_tokens_seen` instead. "
-            )
-            self.include_num_input_tokens_seen = self.include_tokens_per_second
-
         if isinstance(self.include_num_input_tokens_seen, bool):
             self.include_num_input_tokens_seen = "all" if self.include_num_input_tokens_seen else "no"
Repository: facebook/react
Pull request: [ci] Fix incorrect tags being pushed for compiler releases

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):
* __->__ #30620



Changed files:
filename: compiler/scripts/release/publish.js
patch: @@ -177,27 +177,29 @@ async function main() {
       spinner.succeed(`Successfully published ${pkgName} to npm`);
 
       spinner.start('Pushing tags to npm');
-      for (const tag of argv.tags.split(',')) {
-        try {
-          let opts = ['dist-tag', 'add', `${pkgName}@${newVersion}`, tag];
-          if (otp != null) {
-            opts.push(`--otp=${otp}`);
+      if (typeof argv.tags === 'string') {
+        for (const tag of argv.tags.split(',')) {
+          try {
+            let opts = ['dist-tag', 'add', `${pkgName}@${newVersion}`, tag];
+            if (otp != null) {
+              opts.push(`--otp=${otp}`);
+            }
+            if (argv.debug === true) {
+              spinner.info(`dry-run: npm ${opts.join(' ')}`);
+            } else {
+              await spawnHelper('npm', opts, {
+                cwd: pkgDir,
+                stdio: 'inherit',
+              });
+            }
+          } catch (e) {
+            spinner.fail(e.toString());
+            throw e;
           }
-          if (argv.debug === true) {
-            spinner.info(`dry-run: npm ${opts.join(' ')}`);
-          } else {
-            await spawnHelper('npm', opts, {
-              cwd: pkgDir,
-              stdio: 'inherit',
-            });
-          }
-        } catch (e) {
-          spinner.fail(e.toString());
-          throw e;
+          spinner.succeed(
+            `Successfully pushed dist-tag ${tag} for ${pkgName} to npm`
+          );
         }
-        spinner.succeed(
-          `Successfully pushed dist-tag ${tag} for ${pkgName} to npm`
-        );
       }
     }
Repository: facebook/react
Pull request: [ci] Fix dist-tag command

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):
* __->__ #30619



Changed files:
filename: compiler/scripts/release/publish.js
patch: @@ -180,22 +180,17 @@ async function main() {
       spinner.start('Pushing tags to npm');
       for (const tag of argv.tags) {
         try {
-          let opts;
+          let opts = ['dist-tag', 'add', `${pkgName}@${newVersion}`, tag];
           if (otp != null) {
-            opts = [
-              'dist-tag',
-              'add',
-              `${pkgName}@${newVersion}`,
-              tag,
-              `--otp=${otp}`,
-            ];
-          } else {
-            opts = ['dist-tag', 'add', `${pkgName}@${newVersion}`, tag];
+            opts.push(`--otp=${otp}`);
           }
           if (argv.debug === true) {
             spinner.info(`dry-run: npm ${opts.join(' ')}`);
           } else {
-            await spawnHelper('npm', opts);
+            await spawnHelper('npm', opts, {
+              cwd: pkgDir,
+              stdio: 'inherit',
+            });
           }
         } catch (e) {
           spinner.fail(e.toString());
Repository: facebook/react
Pull request: [final] Actually publish packages to npm

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):
* __->__ #30618

frfr


Changed files:
filename: .github/workflows/compiler_prereleases.yml
patch: @@ -46,6 +46,7 @@ jobs:
           path: "**/node_modules"
           key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }}
       - run: yarn install --frozen-lockfile
-      - run: |
+      - name: Publish packages to npm
+        run: |
           cp ./scripts/release/ci-npmrc ~/.npmrc
-          scripts/release/publish.js --ci --tags ${{ inputs.dist_tag }}
+          scripts/release/publish.js --frfr --ci --tags ${{ inputs.dist_tag }}
Repository: ollama/ollama
Pull request: types/model: accept former `:` as a separator in digest

This also converges the old sep `:` to the new sep `-`.

Changed files:
filename: types/model/digest.go
patch: @@ -1,6 +1,7 @@
 package model
 
 import (
+	"fmt"
 	"log/slog"
 	"strings"
 	"unicode"
@@ -47,8 +48,11 @@ var (
 // Digest.
 func ParseDigest(s string) Digest {
 	typ, digest, ok := strings.Cut(s, "-")
+	if !ok {
+		typ, digest, ok = strings.Cut(s, ":")
+	}
 	if ok && isValidDigestType(typ) && isValidHex(digest) {
-		return Digest{s: s}
+		return Digest{s: fmt.Sprintf("%s-%s", typ, digest)}
 	}
 	return Digest{}
 }
Repository: ollama/ollama
Pull request: add stablelm graph calculation


Changed files:
filename: llm/ggml.go
patch: @@ -381,6 +381,12 @@ func (llm GGML) GraphSize(context, batch uint64) (partialOffload, fullOffload ui
 		)
 
 		partialOffload = 4*batch*(2*embedding+vocab) + embedding*vocab*105/128
+	case "stablelm":
+		fullOffload = 4 * batch * (context*(1+heads) + 3*embedding + 2)
+		partialOffload = max(
+			4*batch*(vocab+2*embedding),
+			fullOffload,
+		)
 	}
 
 	return

filename: llm/server.go
patch: @@ -112,7 +112,6 @@ func NewLlamaServer(model string, adapters, projectors []string, opts api.Option
 	var memoryLayerOutput uint64
 	for k, v := range layers {
 		if !strings.HasPrefix(k, "blk.") {
-			slog.Info("aaa", "name", k, "size", format.HumanBytes2(v.size()))
 			memoryLayerOutput += v.size()
 		}
 	}
Repository: electron/electron
Pull request: fix: revert upstream MacOS mouse event routing

Backport of #47560

See that PR for details.


Notes: Fixed an issue where users on MacOS were unable to interact with a webpage loaded via loadURL.


Changed files:
filename: patches/chromium/.patches
patch: @@ -134,3 +134,4 @@ fix_win32_synchronous_spellcheck.patch
 chore_grandfather_in_electron_views_and_delegates.patch
 refactor_patch_electron_permissiontypes_into_blink.patch
 revert_views_remove_desktopwindowtreehostwin_window_enlargement.patch
+build_partial_revert_mac_fullscreen_top_chrome_mouse_events.patch

filename: patches/chromium/build_partial_revert_mac_fullscreen_top_chrome_mouse_events.patch
patch: @@ -0,0 +1,31 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Keeley Hammond <khammond@slack-corp.com>
+Date: Wed, 25 Jun 2025 10:21:31 -0400
+Subject: build: partially revert Mac fullscreen top-chrome mouse events
+
+Reverts "mac: fix missing mouse up and down event in fullscreen top-chrome".
+This CL caused all interactions to fail when loading a page via loadURL
+on Mac. This patch can be removed when upstream is fixed, or when a better
+solution is put in place.
+
+This reverts commit 8c004781dde7d42d9a3fed8cafcaa4929943dd69.
+
+diff --git a/components/remote_cocoa/app_shim/bridged_content_view.mm b/components/remote_cocoa/app_shim/bridged_content_view.mm
+index 18eaf31d8ecd65ada39746ba7e7194b82cddca36..152cccc1896a2bad8b944e8c9a37c5a2edf6f6f3 100644
+--- a/components/remote_cocoa/app_shim/bridged_content_view.mm
++++ b/components/remote_cocoa/app_shim/bridged_content_view.mm
+@@ -301,14 +301,6 @@ - (NSView*)hitTest:(NSPoint)point {
+     return nil;
+   }
+ 
+-  // Send event to views::RootView.
+-  if (hitTestResult == remote_cocoa::mojom::HitTestResult::kRootView) {
+-    // Most commonly this NSView is NSWindow's contentView. However in immersive
+-    // fullscreen, the view may be a subview of another AppKit-owned view in the
+-    // titlebar.
+-    return self;
+-  }
+-
+   return [super hitTest:point];
+ }
+
Repository: ollama/ollama
Pull request: fix padding to only return padding

follow up to #3663 to simplify padding()

Changed files:
filename: llm/gguf.go
patch: @@ -248,13 +248,17 @@ func (llm *gguf) Decode(rs io.ReadSeeker) error {
 	}
 
 	padding := llm.padding(offset, int64(alignment))
-	if _, err := rs.Seek(padding-offset, io.SeekCurrent); err != nil {
+	if _, err := rs.Seek(padding, io.SeekCurrent); err != nil {
 		return err
 	}
 
 	for _, tensor := range llm.tensors {
-		padded := (int64(tensor.size()) + int64(alignment) - 1) & ^(int64(alignment) - 1)
-		if _, err := rs.Seek(padded, io.SeekCurrent); err != nil {
+		if _, err := rs.Seek(int64(tensor.size()), io.SeekCurrent); err != nil {
+			return err
+		}
+
+		padding := llm.padding(int64(tensor.size()), int64(alignment))
+		if _, err := rs.Seek(padding, io.SeekCurrent); err != nil {
 			return err
 		}
 	}
@@ -623,8 +627,9 @@ func (llm *gguf) Encode(ws io.WriteSeeker, kv KV, tensors []Tensor) error {
 		return err
 	}
 
-	padding := llm.padding(offset, 32)
-	if err := binary.Write(ws, llm.ByteOrder, bytes.Repeat([]byte{0}, int(padding-offset))); err != nil {
+	var alignment int64 = 32
+	padding := llm.padding(offset, alignment)
+	if err := binary.Write(ws, llm.ByteOrder, bytes.Repeat([]byte{0}, int(padding))); err != nil {
 		return err
 	}
 
@@ -638,8 +643,8 @@ func (llm *gguf) Encode(ws io.WriteSeeker, kv KV, tensors []Tensor) error {
 			return err
 		}
 
-		padding := llm.padding(offset, 32)
-		if err := binary.Write(ws, llm.ByteOrder, bytes.Repeat([]byte{0}, int(padding-offset))); err != nil {
+		padding := llm.padding(offset, alignment)
+		if err := binary.Write(ws, llm.ByteOrder, bytes.Repeat([]byte{0}, int(padding))); err != nil {
 			return err
 		}
 	}
@@ -648,5 +653,5 @@ func (llm *gguf) Encode(ws io.WriteSeeker, kv KV, tensors []Tensor) error {
 }
 
 func (gguf) padding(offset, align int64) int64 {
-	return (offset + align - 1) / align * align
+	return (align - offset%align) % align
 }
Repository: nodejs/node
Pull request: src: add name for more threads

```js
const vm = require('vm');
const trace_events = require('trace_events');

trace_events.createTracing({ categories: ['node.perf'] }).enable();

new vm.Script('while(1) {}').runInThisContext({breakOnSigint: true, timeout: 100000});
```
<img width="2298" height="590" alt="5dff6e25-5eda-4c2f-8266-e9e01a97e642" src="https://github.com/user-attachments/assets/89013ff2-404a-4842-a68b-b81fd9cc9a80" />

- [x] `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes
- [x] tests and/or benchmarks are included
- [x] documentation is changed or added
- [x] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#commit-message-guidelines)


Changed files:
filename: src/node_platform.cc
patch: @@ -101,6 +101,7 @@ class WorkerThreadsTaskRunner::DelayedTaskScheduler {
 
   std::unique_ptr<uv_thread_t> Start() {
     auto start_thread = [](void* data) {
+      uv_thread_setname("DelayedTaskSchedulerWorker");
       static_cast<DelayedTaskScheduler*>(data)->Run();
     };
     std::unique_ptr<uv_thread_t> t { new uv_thread_t() };

filename: src/node_watchdog.cc
patch: @@ -80,6 +80,7 @@ Watchdog::~Watchdog() {
 
 
 void Watchdog::Run(void* arg) {
+  uv_thread_setname("Watchdog");
   Watchdog* wd = static_cast<Watchdog*>(arg);
 
   // UV_RUN_DEFAULT the loop will be stopped either by the async or the
@@ -229,9 +230,9 @@ void TraceSigintWatchdog::HandleInterrupt() {
 
 #ifdef __POSIX__
 void* SigintWatchdogHelper::RunSigintWatchdog(void* arg) {
+  uv_thread_setname("SigintWatchdog");
   // Inside the helper thread.
   bool is_stopping;
-
   do {
     uv_sem_wait(&instance.sem_);
     is_stopping = InformWatchdogsAboutSignal();

filename: src/tracing/agent.cc
patch: @@ -94,10 +94,15 @@ void Agent::Start() {
   // This thread should be created *after* async handles are created
   // (within NodeTraceWriter and NodeTraceBuffer constructors).
   // Otherwise the thread could shut down prematurely.
-  CHECK_EQ(0, uv_thread_create(&thread_, [](void* arg) {
-    Agent* agent = static_cast<Agent*>(arg);
-    uv_run(&agent->tracing_loop_, UV_RUN_DEFAULT);
-  }, this));
+  CHECK_EQ(0,
+           uv_thread_create(
+               &thread_,
+               [](void* arg) {
+                 uv_thread_setname("TraceEventWorker");
+                 Agent* agent = static_cast<Agent*>(arg);
+                 uv_run(&agent->tracing_loop_, UV_RUN_DEFAULT);
+               },
+               this));
   started_ = true;
 }
Repository: ggml-org/llama.cpp
Pull request: ggml-cpu: Don't pass `-mpowerpc64` when `-mcpu` already implies it

`-mcpu=power9` and `-mcpu=power10` already imply `-mpowerpc64` in GCC, and `-mpowerpc64` isn't accepted by Clang 19.1.7 (and probably other versions).

The latter is particularly unfortunate because Clang produces much faster code for POWER9 than GCC does.

Changed files:
filename: ggml/src/ggml-cpu/CMakeLists.txt
patch: @@ -392,9 +392,9 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
             string(REGEX REPLACE "POWER *([0-9]+)" "\\1" EXTRACTED_NUMBER "${MATCHED_STRING}")
 
             if (EXTRACTED_NUMBER GREATER_EQUAL 10)
-                list(APPEND ARCH_FLAGS -mcpu=power10 -mpowerpc64)
+                list(APPEND ARCH_FLAGS -mcpu=power10)
             elseif (EXTRACTED_NUMBER EQUAL 9)
-                list(APPEND ARCH_FLAGS -mcpu=power9 -mpowerpc64)
+                list(APPEND ARCH_FLAGS -mcpu=power9)
             elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le")
                 list(APPEND ARCH_FLAGS -mcpu=powerpc64le -mtune=native)
             else()