Update PLatour usage for the unified runtime
Browse files35 unmodified lines363738394041424344454647484950515253545556575859606162635 unmodified lines6970717273747510 unmodified lines8687888990919218 unmodified lines11111211311411511611735 unmodified lines```bashgit clone https://github.com/zhenyi4/platour.gitcd platourpython3.11 -m venv .venvsource .venv/bin/activatepython -m pip install -e . "torch==2.10.0" "transformers==5.17.0" "fla-core==0.5.2" "kernels==0.16.0"# Install the generation backend in a separate environment.python3.11 -m venv .venv-vllm.venv-vllm/bin/python -m pip install "vllm==0.17.1"export PLATOUR_VLLM_PYTHON="$PWD/.venv-vllm/bin/python""$PLATOUR_VLLM_PYTHON" scripts/check_vllm_runtime.py````--vllm-python` is the **full path to the Python executable inside the environmentthat contains vLLM 0.17.1**, not the environment directory or the `vllm` command.For an existing environment, activate it and run`python -c 'import sys; print(sys.executable)'`; assign that output to`PLATOUR_VLLM_PYTHON`, then reactivate the PLatour environment. Run the main commandwith the PLatour Python. The project starts its decoder with the specified vLLMPython. The two environments avoid the Transformers dependency conflict.The runtime check exercises a small GPU kernel; it does not load this checkpoint.For Qwen3.5 acceleration extras and FP8 sender requirements, follow the[environment guide](https://github.com/zhenyi4/platour/blob/main/AGENT.md#setup).## Generate an answer5 unmodified lines`resolve_model_input` and `ensure_weight` prepare those paths first.```pythonimport osfrom platour_exps import ensure_weight, resolve_model_inputfrom platour_api import load_session10 unmodified linesanswer = system.generate(messages=[{"role": "user", "content": "Write a Python function that returns the sum of two integers."}],backend="vllm", max_new_tokens=256,vllm_python=os.environ["PLATOUR_VLLM_PYTHON"],output="./outputs/27-custom-prompt",)print(answer["response"])18 unmodified lines--weights zen-E/PLatour-SC-Qwen3.5-4B-DeepCoder \--sender Qwen/Qwen3.5-4B \--receiver Qwen/Qwen3.5-4B \--vllm-python "$PLATOUR_VLLM_PYTHON" \--code-cases "$JUDGE_ROOT/cases" \--official-checker "$LCB_CHECKER" \--docker-image "$JUDGE_IMAGE" \35 unmodified lines36373839404142434445464748495 unmodified lines55565758596010 unmodified lines71727374757618 unmodified lines959697989910035 unmodified lines```bashgit clone https://github.com/zhenyi4/platour.gitcd platourpython3.11 -m pip install --user uvpython3.11 scripts/install_environment.pysource .venv/bin/activate```Training, generation and scoring use the active Python. The examples below needno `vllm_python` argument. See the [environment guide](https://github.com/zhenyi4/platour/blob/main/docs/ENVIRONMENT.md)for installation options, runtime checks and compatibility details.## Generate an answer5 unmodified lines`resolve_model_input` and `ensure_weight` prepare those paths first.```pythonfrom platour_exps import ensure_weight, resolve_model_inputfrom platour_api import load_session10 unmodified linesanswer = system.generate(messages=[{"role": "user", "content": "Write a Python function that returns the sum of two integers."}],backend="vllm", max_new_tokens=256,output="./outputs/27-custom-prompt",)print(answer["response"])18 unmodified lines--weights zen-E/PLatour-SC-Qwen3.5-4B-DeepCoder \--sender Qwen/Qwen3.5-4B \--receiver Qwen/Qwen3.5-4B \--code-cases "$JUDGE_ROOT/cases" \--official-checker "$LCB_CHECKER" \--docker-image "$JUDGE_IMAGE" \
README.md+5-22