mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
The Python side of the product no longer knows DeepSeek-V4.1-Flash (the refusal of commit 2 answers every way
it can still come in):
- setup.py: MULTI_FILE_FAMILIES / the DSV41_* pins, install_dsv41, mac_dsv41_setup, the engine package fetch and
its helpers, the --check line, the menu row and --family deepseek41 go; model_alias is the identity; a hidden
--dsv41-package answers the "no longer offers" line; the AMD one-card widening and the per-start card memory,
which acted on DeepSeek configs only, go; setup_config.py loses Dsv41Inputs / dsv41_config_for.
- strata_control: dsv41_{context,engine,fit,flags,parallel,paths,sets}.py and gpu_pick.py are deleted;
folder_use.in_use is dsv41_paths.in_use (every package kind used it); updater: no DeepSeek engine step, report
or notice (discover_run_config leaves DeepSeek configs out through retired.py); engine_library: the Qwen family
and the shape engines only ("deepseek" answers the "no longer offers" line); engine_component / engine_update:
no DeepSeek offer; feed.py does not read the dsv41 member (it may stay in the feed for older Strata);
cfg_paths / runtime: no engine-dsv41 repair; models.py: no DeepSeek import preview; the one-line deepseek41
guards in vram_fit, amd_four_card, split_engine, replica_profile go (pictures.py keeps a retired.py guard).
- strata launch: no DeepSeek rows, Speed step, tuner, context list, picture tower, --parallel words or engine
package; --dsv41-package, --speed, --full-quality and --dspark stay hidden and answer the "no longer offers"
line. The --context help loses its DeepSeek parenthesis ([DRAFT] until the owner reads it).
- tools/strata_mcp.py (the catalog of the app, the Terminal and the MCP tools): no DeepSeek rows or plans; rows keep
"multi_file": False, "disk_gb" / "rdna4_faster": None as every Qwen size had them.
- tests: the DeepSeek-only files go (tests/terminal 21 + the launch speed file, tools 4, fixtures); the DeepSeek
cases leave the shared ones; the snapshot matrix loses its DeepSeek set and its 8 goldens (every Qwen golden is
unchanged byte for byte); new: each dropped launch flag answers the line, an engine-dsv41 folder is neither
listed nor touched, a DeepSeek config is left as it was by the path repair.
28 lines
1.1 KiB
Python
28 lines
1.1 KiB
Python
"""Is a program of one of Strata's own folders running (an engine package, a Control bundle, a shape engine)? Local only.
|
|
|
|
A folder in use is never removed: on Windows the removal would take its libraries from under the running engine. (This was
|
|
dsv41_paths.in_use; it never depended on DeepSeek's engine, and every package folder kind uses it.)
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
from pathlib import Path
|
|
|
|
|
|
def in_use(folder) -> bool:
|
|
"""True when any running process's program or working folder lies in `folder` (psutil; without psutil: False)."""
|
|
folder = Path(folder)
|
|
try:
|
|
import psutil
|
|
except ImportError:
|
|
return False
|
|
here = os.path.normcase(os.path.abspath(folder)) + os.sep
|
|
for p in psutil.process_iter(["exe", "cwd"]):
|
|
try:
|
|
for where in (p.info.get("exe"), p.info.get("cwd")): # the program, or the folder a Python server runs in (a Control)
|
|
if where and os.path.normcase(os.path.abspath(where) + os.sep).startswith(here):
|
|
return True
|
|
except (psutil.Error, OSError, ValueError):
|
|
continue
|
|
return False
|