agent-lightning icon indicating copy to clipboard operation
agent-lightning copied to clipboard

agent and training must be in the same environment?

Open ZaymeShaw opened this issue 3 months ago • 1 comments

According to README, The following versions and installation order have been tested and are confirmed to work. The following version should be understood as a training environment. Is it the agent environment should be as same as the training environment?

pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu128
pip install flash-attn --no-build-isolation
pip install vllm==0.9.2
pip install verl==0.5.0

Some agents may need to build in another installation which may uncompatible with the current training environment.If incompatibility occurs, how can I train the agent

ZaymeShaw avatar Sep 29 '25 02:09 ZaymeShaw

Agent-lightning is built to support heterogeneous environment for agent and training. You can install torch/vllm/verl in one environment for training; and install the agentic libraries in another environment.

You need to however install pip install agentlightning in both env.

ultmaster avatar Sep 30 '25 02:09 ultmaster