mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2635] Error install: UD-Q5_K_XL 5-bit (Unsloth Dynamic) #1049
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1049
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lavren1974 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2635
PS D:\github\Strata> .\START-HERE.bat --setup
Strata - Qwen3.8-Flash-Next on a normal PC (a GPU + system RAM + CPU)
=== Step 1: checking your PC ===
[ok] GPU: NVIDIA GeForce RTX 4080, 16.0 GB VRAM, compute capability 8.9, driver 610.88
[ok] RAM: 128 GB
[ok] CPU: Intel(R) Core(TM) i7-14700K (AVX2)
[ok] PCIe: 4.0 x16
=== Step 2: your choices ===
Qwen3.8-Flash-Next Qwen; GSQ-RCO quants by ISTA-DASLab - the original model
Swift 1.5 UkisAI's fine-tune of Qwen3.8-Flash-Next - thinks much shorter (-63% thinking tokens, 1.8x sooner answers by its authors' numbers)
Qwen3.8-Flash-Next Coder ISTA-DASLab's coding version - half the experts (code, tools, images kept): needs ~32 GB of RAM, faster; weaker outside coding
Qwen3.8-Flash-Next (Unsloth) Unsloth's 4- to 8-bit quantizations - UD-IQ4_XS, UD-Q4_K_XL, UD-Q5_K_XL, UD-Q6_K_XL or Q8_0 (94 to 188 GB downloads): every expert in RAM from ~80 GB (UD-IQ4_XS) to ~136 GB (Q8_0) of RAM, else part of them read from the SSD
Qwen3.8-Flash-Next (NVFP4) NVFP4 packs by sergqwer (strata-nvfp4) - 4-bit NVFP4 experts, NVIDIA cards; a 128 GB download, ~80 GB of RAM to keep every expert in RAM [runs, but UD-IQ4_XS is faster on this card; 128 GB download, ~80 GB of RAM keeps every expert in RAM]
Qwen3.6-35B-A3B Qwen; GGUFs with the MTP layer by Unsloth - 35B mixture of experts with 3B active (256 experts, top-8): a smaller cousin of Qwen3.8-Flash-Next with the same tokenizer [new]
Which model? [1]: 4
[ok] model: Qwen3.8-Flash-Next (Unsloth)
UD-IQ4_XS (recommended) ~4-bit i-quant (Unsloth Dynamic), between IQ3_S and UD-Q4_K_XL in quality; on a PC with less than ~80 GB of RAM part of its experts are read from the SSD; download 94 GB, keeps all of its 60 GB of experts in RAM
UD-Q4_K_XL (recommended, installed) 4-bit (Unsloth Dynamic): K-quant experts, between UD-IQ4_XS and UD-Q5_K_XL in quality; download 111 GB, keeps all of its 77 GB of experts in RAM
UD-Q5_K_XL 5-bit (Unsloth Dynamic): Q5_K experts with Q8_0 downs, close to Q8_0 in quality; download 158 GB, keeps all of its 98 GB of experts in RAM
UD-Q6_K_XL 6-bit (Unsloth Dynamic): Q6_K experts with Q8_0 downs; download 169 GB, keeps all of its 109 GB of experts in RAM
Q8_0 8-bit, the reference quality (every expert Q8_0); for a 192 GB PC; download 188 GB, keeps ~104 GB of its 128 GB of experts in RAM <- needs 136 GB RAM, you have 128
Which size? [2]: 3
[ok] all 98 GB of UD-Q5_K_XL's experts in RAM (they and 16 GiB more fit this PC's 128 GB; --resident-budget-gib N keeps only N GiB of them)
[ok] size: UD-Q5_K_XL
Context length = how much text the model can see at once (your chat, files, tool output).
Longer needs more VRAM for it, so fewer experts fit on the GPU:
Context? [3]: 4
[ok] context: 131072 tokens
KV cache precision (the model's memory of the conversation):
documents; long-context lookups (needle tests) still pass
KV cache? [1]:
[ok] KV cache: 8-bit
Images: the model can also read pictures (screenshots, photos, scanned pages). This adds a 0.9 GB
download and keeps ~1.4 GB of VRAM free for the image encoder, so text is a few % slower.
Do you want images? [y]: n
[ok] images: off
=== Step 3: Python packages ===
[ok] numpy, jinja2, regex, pyyaml, tqdm, requests, cmake, ninja, pillow, psutil already installed
=== Step 4: the Strata engine ===
[ok] llama.cpp 3cf0325 (gguf-py, ggml, mtmd)
[ok] ready-made engine already installed
[ok] NVIDIA CUDA libraries (cuBLAS, CUDA runtime; ~0.4 GB) already installed
[ok] engine: D:\github\Strata\engine\strata.exe
=== Step 5: downloading Qwen3.8-Flash-Next (Unsloth) UD-Q5_K_XL ===
[ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf already downloaded
[ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00002-of-00006.gguf already downloaded
[ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00003-of-00006.gguf already downloaded
[ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00004-of-00006.gguf already downloaded
[ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00005-of-00006.gguf already downloaded
[ok] Qwen3.8-Flash-Next-UD-Q5_K_XL-00006-of-00006.gguf already downloaded
[X] Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf is short: 10,946,618 of 10,946,624 bytes (6 missing)
delete it and run setup again (or copy the whole file into --gguf-dir)
Setup stopped. Fix the item above and run it again - everything already done is kept and skipped.
Для продолжения нажмите любую клавишу . . .
Причина найдена! На твоих скриншотах есть всё необходимое для диагностики.
Сравним локальный файл с оригиналом на Hugging Face:
610922CD...E1B6AE4BB69F610922cdb1af...e1b6ae4bb69fФайл скачан полностью и не повреждён. Его SHA256 совпадает с контрольной суммой оригинала.
Ошибка находится в проверке размера Strata: установщик ожидает
10 946 624байта, тогда как официальный файл содержит10 946 618байт — разница ровно шесть байт.Повторно скачивать файл не нужно.
Как исправить Strata
Я проверил исходный код
setup.pyв репозитории Strata. Проблема находится в функцииcheck_shards(): она сравнивает размер файла с вычисленным концом области тензоров.image
GitHub
У твоей первой части GGUF, согласно метаданным на скриншоте:
tensor_count = 0— файл содержит метаданные, а не веса модели.То есть проверка ошибочно требует наличие выравнивающих байтов, хотя в этом файле нет тензоров.
Предлагаю точечное исправление с резервной копией.
В
D:\github\Strataвыполни:Изменение означает: проверять ожидаемый размер области тензоров только в файлах, где эти тензоры действительно присутствуют. Для остальных частей модели защита от обрезанных данных сохраняется.
После успешной проверки синтаксиса повтори:
Выбирай те же настройки:
4 → 3 → 4 → 1 → n.Это локальный обход ошибки установщика, а не официальное исправление. Если Strata всё-таки остановится на следующем этапе, пришли новый вывод — проверим уже конкретную причину, не меняя сами GGUF-файлы.
Также имеет смысл сообщить об ошибке автору через GitHub Issues Strata: с приложенным SHA256 и разницей в 6 байт её можно воспроизвести и исправить для остальных пользователей.
Причина найдена! На твоих скриншотах есть всё необходимое для диагностики.
Сравним локальный файл с оригиналом на Hugging Face:
610922CD...E1B6AE4BB69F610922cdb1af...e1b6ae4bb69fФайл скачан полностью и не повреждён. Его SHA256 совпадает с контрольной суммой оригинала.
Ошибка находится в проверке размера Strata: установщик ожидает
10 946 624байта, тогда как официальный файл содержит10 946 618байт — разница ровно шесть байт.Повторно скачивать файл не нужно.
Как исправить Strata
Я проверил исходный код
setup.pyв репозитории Strata. Проблема находится в функцииcheck_shards(): она сравнивает размер файла с вычисленным концом области тензоров.image
GitHub
У твоей первой части GGUF, согласно метаданным на скриншоте:
tensor_count = 0— файл содержит метаданные, а не веса модели.То есть проверка ошибочно требует наличие выравнивающих байтов, хотя в этом файле нет тензоров.
Предлагаю точечное исправление с резервной копией.
В
D:\github\Strataвыполни:Изменение означает: проверять ожидаемый размер области тензоров только в файлах, где эти тензоры действительно присутствуют. Для остальных частей модели защита от обрезанных данных сохраняется.
После успешной проверки синтаксиса повтори:
Выбирай те же настройки:
4 → 3 → 4 → 1 → n.Это локальный обход ошибки установщика, а не официальное исправление. Если Strata всё-таки остановится на следующем этапе, пришли новый вывод — проверим уже конкретную причину, не меняя сами GGUF-файлы.
Также имеет смысл сообщить об ошибке автору через GitHub Issues Strata: с приложенным SHA256 и разницей в 6 байт её можно воспроизвести и исправить для остальных пользователей.
@endurance-hk commented on GitHub (Oct 15, 2026):
FYI I encounter the same problem. Q4 is fine.
Thanks
@RenZekta commented on GitHub (Oct 15, 2026):
Бро ну ты бы хоть немного усилий приложил в написании ищью. Тупо скопировал логи и ответ ии. Хотя бы на английском что-ли сделал бы.
@Niko1221 commented on GitHub (Oct 15, 2026):
Thanks for the clear report and for checking the hash. Your file is fine. The first UD-Q5_K_XL shard holds only metadata and no tensors. Unsloth's file ends right after its header, with no padding at the end. Setup expected that padding and so counted the shard as 6 bytes short. It's the same bug as #2346.
The fix is in the next release: setup now accepts a metadata-only shard that ends at its header. Until it's out, UD-Q4_K_XL or IQ3_S install normally on your 5060 Ti.
I'll keep this open until the release is out.
@DrLove73 commented on GitHub (Oct 15, 2026):
I have this localy fixed and it passed.
AI I used located 3 location with issues, 2 from some PR and one additional.
whole_shard)verify_sha256) ← this addition finaly solved the holdup, together with other twocheck_shards)Thinking process and patch (sorry, I am not a developer and do not have enough time now to learn how to post properly):
Everything is now confirmed. Two key findings:
Finding 1: Pinned size/sha in
MODELSare incorrect10,946,618— actual:10,946,624→ +6 bytes610922...— actual:6c5370...→ mismatchThis means that the pinned SHA is not for this file at all. It is likely for the original version before Unsloth re-generated the file (the HF LFS pointer is outdated). So not only does the size mismatch — the SHA mismatches as well. This is why the "just check GGUF header" logic from PR #2632 is the only correct approach: we cannot rely on either the size or the SHA for this shard.
Finding 2: The call from
setup.py:5618fam["sha256"]comes directly from theMODELSdict. Since the pinned SHA is wrong, there is no way to bypass this without a patch. You cannot even modify the.donefile, because it stores thesha256 <hex>from the last successful run — and this file has never passed.Patch — skip for metadata-only GGUF
Identical pattern as PR #2632. Backup + patch:
Then:
Expected diff:
Why this approach instead of fixing the pinned SHA
You could modify
MODELS["sha256"][...]to insert the correct SHA6c5370...and size10946624. However:verify_sha256should be consistent withwhole_shard/check_shards.@lavren1974 commented on GitHub (Oct 16, 2026):
Я исправлюсь! Была проблема и она решена с помощью ии, но так как я общаюсь с ней по русски (chatgpt astra), то и ответ получился на русском! Я боялся искажения записи при использовании переводчика! (что довольно часто бывает - ещё не всё совершенно!!!), кроме того несмотря на публикации на английском - многие разработчики неплохо говорят на русском. В любом случае - была решена проблема и может она кому либо может помочь до исправления (с помощью ИИ, и это не стоит скрывать! Мы все этим пользуемся, и даже профи!). У меня всё работает на карте 4080 (16 гб), и я даже у же неделю не заглядываю в ollama и lmstudio. Я тестирую, использую свой комп в тестах и результаты на уровне (chatgpt, cloude sonnet, deepsek)!!!
Model Score
Sonnet 5.5 29
DeepSeek 29
UD-Q5_K_XL 27
UD-IQ4_XS 26
UD-Q4_K_XL 23
Qwen3.8 Max 22
@RenZekta commented on GitHub (Oct 16, 2026):
Ну, да, главное, что разработчик понял и баг получилось исправить.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for the report. The UD-Q5_K_XL install error (setup counted the metadata-only first shard as 6 bytes short) is fixed since 0.1.45, so setup on 0.2.0-beta accepts the file. We're closing this as part of the tracker reset.
If it still fails on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment
/reopen. A check runs and reopens it.