Open brthor opened 11 months ago
@winglian any thoughts on this?
I tried to implement this and discovered that some custom work will need to be done to split the model across nodes, and then ferry data back and forth. Accelerate supports multinode with mpi-like operators, but the device_map
does not support multi-node.
⚠️ Please check that this feature request hasn't been suggested before.
🔖 Feature description
Allow for training in the model parallel mode when there is more than one node involved.
Specifically, allow the model to be split sequentially over multiple GPUs in the case when there is more than one node present in the system.
This will allow for training large models across multiple nodes, in cases where a person cannot fit all of the required VRAM on a single machine, whether by hardware or space constraints.
✔️ Solution
From these PRs: https://github.com/OpenAccess-AI-Collective/axolotl/pull/816 https://github.com/OpenAccess-AI-Collective/axolotl/pull/538
It seems that the solution could be as simple as triggering the model parallel state when
WORLD_SIZE
> 1 with a configurable value, either in the config yaml file or passed via cli.❓ Alternatives
No response
📝 Additional Context
No response
Acknowledgements