fix: pin huggingface_hub==1.3.0 in .venv_t5 (satisfies transformers 5.x)
This commit is contained in:
parent
c82e3d86bb
commit
7e59440029
5 changed files with 5 additions and 5 deletions
2
setup.sh
2
setup.sh
|
|
@ -194,7 +194,7 @@ else
|
|||
VENV_T5_DIR="$SCRIPT_DIR/.venv_t5"
|
||||
mkdir -p "$VENV_T5_DIR"
|
||||
run_quiet "pip install transformers 5.x" pip install --target "$VENV_T5_DIR" --no-deps "transformers==5.1.0"
|
||||
run_quiet "pip install huggingface_hub for t5" pip install --target "$VENV_T5_DIR" --no-deps "huggingface_hub==0.36.0"
|
||||
run_quiet "pip install huggingface_hub for t5" pip install --target "$VENV_T5_DIR" --no-deps "huggingface_hub==1.3.0"
|
||||
echo "✅ Transformers 5.x pre-installed to .venv_t5/"
|
||||
|
||||
# ── 7. WSL: pre-install GGUF build dependencies ──
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ def _activate_transformers_version(model_name: str, project_root: str) -> None:
|
|||
)
|
||||
sp.run(
|
||||
[sys.executable, "-m", "pip", "install", "--target", venv_t5,
|
||||
"--no-deps", "huggingface_hub==0.36.0"],
|
||||
"--no-deps", "huggingface_hub==1.3.0"],
|
||||
stdout=sp.PIPE, stderr=sp.STDOUT,
|
||||
)
|
||||
if os.path.isdir(venv_t5):
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ def _activate_transformers_version(model_name: str, project_root: str) -> None:
|
|||
)
|
||||
sp.run(
|
||||
[sys.executable, "-m", "pip", "install", "--target", venv_t5,
|
||||
"--no-deps", "huggingface_hub==0.36.0"],
|
||||
"--no-deps", "huggingface_hub==1.3.0"],
|
||||
stdout=sp.PIPE, stderr=sp.STDOUT,
|
||||
)
|
||||
if os.path.isdir(venv_t5):
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ def _activate_transformers_version(model_name: str, project_root: str) -> None:
|
|||
)
|
||||
sp.run(
|
||||
[sys.executable, "-m", "pip", "install", "--target", venv_t5,
|
||||
"--no-deps", "huggingface_hub==0.36.0"],
|
||||
"--no-deps", "huggingface_hub==1.3.0"],
|
||||
stdout=sp.PIPE, stderr=sp.STDOUT,
|
||||
)
|
||||
if os.path.isdir(venv_t5):
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ def _ensure_venv_t5_exists() -> bool:
|
|||
|
||||
logger.warning(".venv_t5 not found at %s — installing at runtime", _VENV_T5_DIR)
|
||||
os.makedirs(_VENV_T5_DIR, exist_ok=True)
|
||||
for pkg in (f"transformers=={TRANSFORMERS_5_VERSION}", "huggingface_hub==0.36.0"):
|
||||
for pkg in (f"transformers=={TRANSFORMERS_5_VERSION}", "huggingface_hub==1.3.0"):
|
||||
cmd = [
|
||||
sys.executable, "-m", "pip", "install",
|
||||
"--target", _VENV_T5_DIR,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue