Sync from upstream: README install note, CRLF fix in gen-nvidia-reqs
gen-nvidia-reqs.py wrote requirements-nvidia.txt with os.linesep, so running it on Windows produced CRLF. Pinned to newline="\n". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -73,7 +73,7 @@ does all inference over HTTP).
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. Build everything: venv (auto-selects AMD/NVIDIA/CPU), web UI, memory DB,
|
# 1. Build everything: venv (auto-selects AMD/NVIDIA/CPU), web UI, memory DB,
|
||||||
# system packages and the Ollama binary.
|
# system packages, Ollama binary and the XFCE desktop wiring.
|
||||||
./install.sh
|
./install.sh
|
||||||
|
|
||||||
# 2. Launch (memory :8001, backend :8000 — backend also serves the built UI)
|
# 2. Launch (memory :8001, backend :8000 — backend also serves the built UI)
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ def main():
|
|||||||
suffix = wheel_suffix(major, minor)
|
suffix = wheel_suffix(major, minor)
|
||||||
print(f"PyTorch wheel: {suffix}")
|
print(f"PyTorch wheel: {suffix}")
|
||||||
|
|
||||||
|
# newline="\n": write_text() otherwise translates to os.linesep, so running
|
||||||
|
# this on the Windows box produced a CRLF requirements file that then showed
|
||||||
|
# up as a whole-file diff every time it was published.
|
||||||
NVIDIA_REQS.write_text(f"""\
|
NVIDIA_REQS.write_text(f"""\
|
||||||
# --- Force NVIDIA/CUDA Priority ---
|
# --- Force NVIDIA/CUDA Priority ---
|
||||||
--index-url https://download.pytorch.org/whl/{suffix}
|
--index-url https://download.pytorch.org/whl/{suffix}
|
||||||
@@ -54,7 +57,7 @@ def main():
|
|||||||
torch
|
torch
|
||||||
torchaudio
|
torchaudio
|
||||||
torchvision
|
torchvision
|
||||||
""")
|
""", newline="\n")
|
||||||
|
|
||||||
print(f"\nWritten: {NVIDIA_REQS}")
|
print(f"\nWritten: {NVIDIA_REQS}")
|
||||||
print("Run 'ncp backup' to push it to the router.")
|
print("Run 'ncp backup' to push it to the router.")
|
||||||
|
|||||||
Reference in New Issue
Block a user