[GH-ISSUE #2] Stuck at this point.. #2

Closed
opened 2026-11-04 01:38:54 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @XeonG on GitHub (Sep 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2

options were: 2,3,4,n

The MTP draft layer (speculative decoding, ~2x faster output) comes from the original Qwen checkpoint:
  only its ~5 GB of MTP tensors are downloaded.
  > E:\Strata-main\.venv\Scripts\python.exe E:\Strata-main\tools\mtp_fetch.py fetch --out E:\Strata-main\mtp
  > E:\Strata-main\.venv\Scripts\python.exe E:\Strata-main\tools\mtp_pack.py --src E:\Strata-main\mtp --experts q2_0 --out E:\Strata-main\mtp\mtp-q2_0.gguf
Traceback (most recent call last):
  File "E:\Strata-main\tools\mtp_pack.py", line 35, in <module>
    add_gguf_py()
    ~~~~~~~~~~~^^
  File "E:\Strata-main\tools\_paths.py", line 26, in add_gguf_py
    p = gguf_py()
  File "E:\Strata-main\tools\_paths.py", line 17, in gguf_py
    ENGINE.parents[1] / ".ref" / "llama.cpp" / "gguf-py"]
    ~~~~~~~~~~~~~~^^^
  File "C:\Users\Kooglio\AppData\Local\Python\pythoncore-3.14-64\Lib\pathlib\__init__.py", line 68, in __getitem__
    raise IndexError(idx)
IndexError: 1

  [X]  command failed (exit 1): python.exe

Setup stopped. Fix the item above and run it again - everything already done is kept and skipped.
Originally created by @XeonG on GitHub (Sep 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2 options were: 2,3,4,n ``` The MTP draft layer (speculative decoding, ~2x faster output) comes from the original Qwen checkpoint: only its ~5 GB of MTP tensors are downloaded. > E:\Strata-main\.venv\Scripts\python.exe E:\Strata-main\tools\mtp_fetch.py fetch --out E:\Strata-main\mtp > E:\Strata-main\.venv\Scripts\python.exe E:\Strata-main\tools\mtp_pack.py --src E:\Strata-main\mtp --experts q2_0 --out E:\Strata-main\mtp\mtp-q2_0.gguf Traceback (most recent call last): File "E:\Strata-main\tools\mtp_pack.py", line 35, in <module> add_gguf_py() ~~~~~~~~~~~^^ File "E:\Strata-main\tools\_paths.py", line 26, in add_gguf_py p = gguf_py() File "E:\Strata-main\tools\_paths.py", line 17, in gguf_py ENGINE.parents[1] / ".ref" / "llama.cpp" / "gguf-py"] ~~~~~~~~~~~~~~^^^ File "C:\Users\Kooglio\AppData\Local\Python\pythoncore-3.14-64\Lib\pathlib\__init__.py", line 68, in __getitem__ raise IndexError(idx) IndexError: 1 [X] command failed (exit 1): python.exe Setup stopped. Fix the item above and run it again - everything already done is kept and skipped. ```
Author
Owner

@XeonG commented on GitHub (Sep 25, 2026):

`"""tools/_paths.py - where the tools find llama.cpp's gguf-py (for the MTP packer and the fixtures).

Order: $STRATA_GGUF_PY, then /third_party/llama.cpp/gguf-py (what setup.py clones), then the development
tree's ../../.ref/llama.cpp/gguf-py.
"""
from future import annotations

import os
import sys
from pathlib import Path

ENGINE = Path(file).resolve().parents[1]

def gguf_py() -> str:
cands = [os.environ.get("STRATA_GGUF_PY"), ENGINE / "third_party" / "llama.cpp" / "gguf-py"]
if len(ENGINE.parents) > 1:
cands.append(ENGINE.parents[1] / ".ref" / "llama.cpp" / "gguf-py")
for c in cands:
if c and (Path(c) / "gguf").is_dir():
return str(c)
sys.exit("llama.cpp's gguf-py was not found: run setup.py (it clones llama.cpp into third_party/), "
"or set STRATA_GGUF_PY")

def add_gguf_py() -> None:
p = gguf_py()
if p not in sys.path:
sys.path.insert(0, p)
`

<!-- gh-comment-id:5835559295 --> @XeonG commented on GitHub (Sep 25, 2026): `"""tools/_paths.py - where the tools find llama.cpp's gguf-py (for the MTP packer and the fixtures). Order: $STRATA_GGUF_PY, then <engine>/third_party/llama.cpp/gguf-py (what setup.py clones), then the development tree's ../../.ref/llama.cpp/gguf-py. """ from __future__ import annotations import os import sys from pathlib import Path ENGINE = Path(__file__).resolve().parents[1] def gguf_py() -> str: cands = [os.environ.get("STRATA_GGUF_PY"), ENGINE / "third_party" / "llama.cpp" / "gguf-py"] if len(ENGINE.parents) > 1: cands.append(ENGINE.parents[1] / ".ref" / "llama.cpp" / "gguf-py") for c in cands: if c and (Path(c) / "gguf").is_dir(): return str(c) sys.exit("llama.cpp's gguf-py was not found: run setup.py (it clones llama.cpp into third_party/), " "or set STRATA_GGUF_PY") def add_gguf_py() -> None: p = gguf_py() if p not in sys.path: sys.path.insert(0, p) `
Author
Owner

@XeonG commented on GitHub (Sep 25, 2026):

fixes it

<!-- gh-comment-id:5835567253 --> @XeonG commented on GitHub (Sep 25, 2026): fixes it
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2
No description provided.