[Issue]: Vectors collapse (non-discriminative) with the xclbins shipped for ≥0.9.45
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp, linux
調査の方向性
The regression is tied to the Embedding-Gemma-300M-NPU2 xclbin kernels shipped from 0.9.45 on, so start with how flm-fetch-kernels installs them under share/flm/xclbins and how the embedding path reaches them via flm serve --embed 1 and /v1/embeddings. Reproduce with the six-text cosine check, then compare against 0.9.42 output. Done means similar pairs score higher than unrelated ones again on a current build, without an NPU hardware check you cannot run.
索引モデルが issue の本文から書いたものです。
説明
Problem Description
Summary
With FastFlowLM ≥0.9.45, embed-gemma:300m (--embed 1) returns deterministic but non-discriminative embeddings. Unrelated texts score about as high as similar ones, and the vectors are uncorrelated with
those from 0.9.42. Copying the four Embedding-Gemma-300M-NPU2 xclbins from 0.9.42 into a 1.0.8 install gives correct embeddings again. This points at the refreshed xclbins, not the host library or the
open-source embedding code. It looks like the same problem as #732 and #661.
Environment
- AMD Ryzen AI Max+ 395 (Strix Halo), NPU firmware 1.1.2.65, amdxdna 0.16, Linux 7.2.10 (Fedora 43)
- FastFlowLM from the Fedora COPR (alessandrolattao/fastflowlm). Kernels and libs come from flm-fetch-kernels, which fetches the matching release's kernel files.
- Model embed-gemma:300m, served with flm serve qwen3-it:4b --embed 1, queried through /v1/embeddings
Method
- Discrimination test: I embedded six texts and compared cosine similarity: two similar pairs (FreeIPA password reset, and Ceph/CloudStack storage full) and unrelated texts (a cake recipe, a Wazuh agent message).
- Fidelity test: I re-embedded 60 texts that already had vectors stored from an earlier run on 0.9.42 and compared them.
Results
│ FastFlowLM │ Similar pairs │ Unrelated pairs │ Cosine vs stored 0.9.42 vectors (60 texts) │
│ 0.9.42-5 │ 0.86 / 0.52 │ 0.09 / 0.08 / 0.18 │ mean 0.9998 (min 0.9996) │
│ 0.9.43-2 │ 0.86 / 0.52 │ 0.09 / 0.08 / 0.18 │ mean 0.9998 (min 0.9996) │
│ 0.9.45-2 │ 0.74 / 0.83 │ 0.79 / 0.75 / 0.72 │ mean −0.035 (min −0.129) │
│ 1.0.8-1 │ 0.75 / 0.83 │ 0.79 / 0.75 / 0.73 │ mean −0.033 (min −0.129) │
Things I ruled out
- Model weights: I re-pulled embed-gemma:300m, and the files are byte-identical (md5) to the July copy.
- Prompt format: neither a query prefix nor a document prefix fixed it, and passing dimensions: 768 made no difference. The same text embedded twice gave cosine 1.0000, so the output is deterministic, not random.
- Batching: one text at a time and a batch of six gave identical results.
- Stale libraries: I cleared /opt/fastflowlm/lib* and share/flm/xclbins and re-ran flm-fetch-kernels before each test.
Operating System
Fedora 43
CPU
AMD RYZEN AI MAX+ 395 w/ Radeon 8060S
GPU
AMD Radeon 8060S Graphics
ROCm Version
ROCm 10
Installation Method
Other (describe in Additional Information)
Installed ROCm Packages / Versions
Installed ROCm packages / versions
Paste output here
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of rocminfo --support
rocminfo --support output
Paste output here
Additional Information
No response
- 主要言語
- C++
- スター
- 2.1k
- フォーク
- 184
- 平均マージ
- 12時間 22分
- マージ済み PR(30日)
- 239
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ROCm/FastFlowLM のほかの issue
-
Update Gemma tokenizer.json after Google's recent fix対応中かも @four1er が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ROCm/FastFlowLM#1057 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ROCm/FastFlowLM#757 ·
メンテナーはふだん 1 日以内に返信
-
No valid checkpoint to restore + Max length reached on multi-turn tool calls (Qwen3.6-MoE, NPU)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ROCm/FastFlowLM#744 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Truncated tool call is emitted as a complete one (unterminated heredoc reaches the client)対応中かも @Javinator9889 が 72 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ROCm/FastFlowLM#741 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Download timeout対応中かも @stdevPavelmc が 200 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ROCm/FastFlowLM#520 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
ROCm/FastFlowLM の issue をすべて見る
似ている issue
-
bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
difficulty:easy func:gui prio:normal type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NatronGitHub/Natron#2118 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
bug difficulty:easy prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NatronGitHub/openfx-io#523 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ArduPilot/ardupilot_gazebo#195 ·