[Engine] Qwen UD-IQ4_XS-v31 decodes 15-25% slower on engines 0.1.69 and 0.1.70 than on 0.1.65 (single RTX 4090, Windows, rollback test); 0.1.70 also fails to start twice with pinned-memory-exhausted

Đang mở
#7,323 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend, performance

Hướng nghiên cứu

Start by comparing engine changes between 0.1.65 and 0.1.69/0.1.70, then run the reported strata launch and strata bench run commands on a Windows CUDA system with an RTX 4090. The report points to slower decode and intermittent pinned-memory allocation failures, but does not identify the responsible files or tests. Done means reproducing and explaining both regressions, with decode results and startup behavior checked against 0.1.65.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

First, to be clear: this is not a complaint. I'm only sharing the numbers I measured, in case they help track something down. Even at the slower speed, Strata is a huge step for local AI: a few weeks ago I started at about 25 tok/s with this 4-bit model on this PC, and now it runs at 60 to 90 tok/s. That's amazing work for a free project.

Engine (strata-engine 0.1.69 and 0.1.70, Windows CUDA 13)

What happened
After updating from 0.2.19 (engine 0.1.65) to 0.2.22 (engine 0.1.69) and then 0.2.23 (engine 0.1.70), decode speed of Qwen3.8-Flash-Next UD-IQ4_XS-v31 is clearly lower than on 0.1.65. Rolling the engine back to 0.1.65 with strata components rollback brings the speed back right away. All runs were made on the same evening and boot, same settings, same pack, with no other GPU apps open.

standard-v1 engine 0.1.65 (rollback) engine 0.1.69 engine 0.1.70
Decode short 88.6 (74.5-89.2) 70.3 (61.6-79.5) 77.2 (68.3-78.6)
Decode 4k 82.5 (78.7-86.9) 62.5 (60.6-68.3) 65.4 (61.2-72.4)
Decode 16k 80.2 (69.8-84.0) 62.5 (61.0-67.2) 65.7 (62.3-68.6)
Prompt 4k 1058 1101 1079
Prompt 16k 1951 1929 1902
Sanity 12/12 12/12 12/12
Prompt reading is the same; only decode is slower (0.1.69 about 22%, 0.1.70 about 13-20%).

Clean pair with every other program closed (no browser, no tools, a fresh model start for each, run from a plain PowerShell window, back to back):
standard-v1, all apps closed engine 0.1.65 engine 0.1.70


Decode short 80.7 (75.4-88.4) 62.2 (59.2-64.2)
Decode 4k 72.2 (66.5-74.2) 59.0 (55.3-67.3)
Decode 16k 86.6 (68.4-90.5) 58.1 (51.3-59.8)

So 0.1.70 decodes about 18-33% slower than 0.1.65 here. 4k prompt reading is faster on 0.1.70, 16k is a bit slower. Draft acceptance on the 0.1.70 run was about 75%, and its warm-up line was normal (1:189 2:109 3:71 4:28 5:31 6:35 7:39 8:44).

DFlash2 draft acceptance is about the same on 0.1.65 and 0.1.69 (around 77%), and the warm-up line looks normal on all of them, so the drafter and the GPU state look fine:

0.1.65: window warm-up: ms per width 1:146 2:93 3:25 4:28 5:36 6:38 7:41 8:45, total 520 ms 0.1.69: window warm-up: ms per width 1:161 2:22 3:24 4:29 5:31 6:35 7:39 8:44, total 454 ms 0.1.70: window warm-up: ms per width 1:120 2:95 3:25 4:29 5:32 6:36 12:56, total 464 ms

0.1.70 start failures: the first two starts of 0.1.70 stopped while loading with: strata serve: verify: mapped staging allocation failed [pinned-memory-exhausted] the OS gave no more page-locked memory About 52 GB of RAM was free and nothing else used the card. The third start (the launcher's retry) worked. 0.1.65 and 0.1.69 never showed this.

(A first 0.1.69 run with a Twitch stream open in Firefox gave 58/52/50; I left it out of the table because it wasn't a fair comparison.)

I went straight from 0.1.65 to 0.1.69, so I can't say whether 0.1.66 or 0.1.67 introduced the decode drop.

Possibly related: #7286 (RTX 3090, Windows + CUDA 13, 0.1.66 decodes 4-5% slower than 0.1.62) and #7195 (0.1.69 decode slower on a 5060 Ti + RTX 3070 split). Mine is a single RTX 4090 with no layer split, and the gap is bigger.

Smallest steps or command that reproduce it
strata launch --family unsloth --model ud-iq4_xs-v31 --data-dir "G:\Strata\Strata-data" --context 128k --kv int8 --vision gpu --mtp on --no-tui
strata bench run --url http://127.0.0.1:8080 --suite standard-v1 --skip-model-hash
strata launch --stop, then strata components rollback --model-config "G:\Strata\Strata-data\install\strata-unsloth-ud-iq4_xs-v31.json" (back to 0.1.65)
Repeat steps 1 and 2: decode is back to about 80-89 tok/s.
Reproduction status
Two runs on 0.1.69 and two on 0.1.70 (all slower), two on 0.1.65 the same evening, including a clean pair with all other programs closed. Earlier 0.1.65 runs (22 Nov) gave 82/75/76, so 0.1.65 is consistent. The 0.1.70 start failure happened 2 of 3 starts.

Strata version
0.2.23 (Control 0.1.70), engines 0.1.69 / 0.1.70 vs rolled-back 0.1.65, cuda13

Graphics card, memory and system
RTX 4090 24 GB (PCIe 4.0 x8), Ryzen 9 7950X3D, 64 GB DDR5-6200, Windows 11 Pro, driver 621.35. Models on 2x Optane P5800X RAID.

Model, size and settings
Qwen3.8-Flash-Next UD-IQ4_XS-v31, 128K context, KV int8, DFlash2 on (--mtp on), 1 slot.

For now I simply use 0.1.65, so nothing is blocking me. I'm happy to test a fix or a debug build whenever it helps.

Thanks again for all the work and the fast updates. It's great to see local AI getting this good!

Ngôn ngữ chính
C++
Star
11.6k
Fork
1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Niko1221/Strata

Tất cả issue của Niko1221/Strata

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.