Load recommended model metadata from JSON
This commit is contained in:
@@ -86,12 +86,18 @@ python -c "import torch; print(torch.__version__, torch.cuda.is_available())"
|
||||
|
||||
If you get `ModuleNotFoundError: No module named 'torch'` even though `pip install torch`
|
||||
says "already satisfied", the `torch/` package directory is missing while the metadata
|
||||
stub remains (can happen after a conda-managed install). Force-reinstall via pip:
|
||||
stub remains (can happen after a conda-managed install). Force-reinstall all three
|
||||
PyTorch packages together so their versions stay in sync:
|
||||
|
||||
```powershell
|
||||
pip install --force-reinstall torch --index-url https://download.pytorch.org/whl/cu118
|
||||
pip install --force-reinstall torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
||||
```
|
||||
|
||||
> **Important:** always reinstall `torch`, `torchvision`, and `torchaudio` as a group.
|
||||
> Upgrading only `torch` leaves `torchvision` on an incompatible version, which causes
|
||||
> `RuntimeError: operator torchvision::nms does not exist` and makes transformers fail
|
||||
> to import any model class (the error surfaces as `Could not import module 'Qwen2ForCausalLM'`).
|
||||
|
||||
Then re-run the verify step above.
|
||||
|
||||
If that prints `True` but `meshnet-node` still can't find torch, the venv entry point
|
||||
|
||||
Reference in New Issue
Block a user