Open
Conversation
Modify the distributed backend to support Windows and add a PowerShell script for training. * **Distributed Backend**: - Modify `initialize_global_process_group` in `verl/utils/distributed.py` to detect Windows and use the Gloo backend instead of NCCL. * **Training Script**: - Create `scripts/train_tiny_zero.ps1` to set environment variables and call the Python training module, parameterized to accept paths and GPU counts. * **Configuration**: - Update `verl/trainer/config/ppo_trainer.yaml` to set `tensor_model_parallel_size` to read from an environment variable if available. - Introduce a `data_parallel_size` setting. * **Model Loading**: - Wrap vLLM imports in `verl/models/transformers/llama.py` in try/except and fall back to a simpler model loading if vLLM isn’t available. - Log a warning if vLLM is not found. * **Attention Mechanism**: - Add checks for FlashAttention availability in `verl/models/transformers/monkey_patch.py` and use alternate code paths if not available. * **Documentation**: - Add a Windows Setup section in `README.md` explaining how to install and run. - Include an example for 8 GPUs. - Document the new PowerShell script.
--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/breakcraft/TinyZero?shareId=XXXX-XXXX-XXXX-XXXX).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.