# Quickstart — Running a node and testing inference This guide gets you from zero to a live inference request in three terminals. Tested on: AMD Ryzen AI Max (Strix Halo APU), 124 GB RAM, Linux, CPU inference. --- ## Prerequisites ```bash # Clone and enter repo cd /run/media/popov/d/DEV/repos/d-popov.com/AI # Create the virtualenv if it does not exist yet python3 -m venv .venv # Keep packaging tools current enough for editable installs .venv/bin/python -m pip install --upgrade pip setuptools wheel # Install Python packages (editable — picks up code changes immediately) .venv/bin/pip install -e packages/tracker -e packages/node -e packages/p2p -e packages/gateway # CPU-only PyTorch (skip if you have CUDA/ROCm already) .venv/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu # HuggingFace model libraries .venv/bin/pip install transformers accelerate ``` > **NVIDIA GPU (CUDA):** replace the torch line with `pip install torch` (default index). > **AMD GPU (ROCm):** `pip install torch --index-url https://download.pytorch.org/whl/rocm6.2` ### Windows / WSL2 Run the Linux commands from WSL, not Git Bash. From the repo opened in Git Bash: ```bash wsl cd /mnt/d/DEV/workspace/REPOS/git.d-popov.com/neuron-tai python3 -m venv .venv .venv/bin/python -m pip install --upgrade pip setuptools wheel .venv/bin/pip install -e packages/tracker -e packages/node -e packages/p2p -e packages/gateway .venv/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu .venv/bin/pip install transformers accelerate .venv/bin/meshnet-node --help ``` If `.venv/bin/meshnet-node` is missing, the editable install step did not finish successfully. Re-run the `.venv/bin/pip install -e ...` command above inside WSL. --- ## Step 1 — Start the tracker (Terminal 1) ```bash cd /run/media/popov/d/DEV/repos/d-popov.com/AI .venv/bin/meshnet-tracker start --port 8080 ``` Expected output: ``` Tracker listening on 0.0.0.0:8080 ``` Keep this terminal open. --- ## Step 2 — Start a node (Terminal 2) ### Recommended model: Qwen2.5-0.5B-Instruct - 0.5B parameters, ~1 GB in BF16 - No HuggingFace account or license required - Downloads once to `~/.meshnet/models/`, cached for future runs - 24 transformer layers (auto-detected — no need to specify) ```bash cd /run/media/popov/d/DEV/repos/d-popov.com/AI HF_HOME=/run/media/popov/d/DEV/models \ .venv/bin/meshnet-node start \ --model-id Qwen/Qwen2.5-0.5B-Instruct \ --quantization bfloat16 \ --tracker http://localhost:8080 \ --port 8001 ``` Shard range is **auto-detected** from the curated catalog (no network call for known models). For unknown repos, the node fetches only `config.json` (~1 KB) to read `num_hidden_layers`. You can still pass `--shard-start` / `--shard-end` explicitly to run a partial shard on one machine. Expected output (after model loads): ``` Auto-detected 24 layers → shard 0–23 ================================ meshnet-node ready Wallet:
Model ID: Qwen/Qwen2.5-0.5B-Instruct Shard: layers 0–23 Quantization: bfloat16 Endpoint: http://