To determine the number of V100 32GB GPUs needed to finetune a 60B model in 4-bit NormalFloat (nf4) with a 100K context window, we need to consider the memory requirements of the model and the limitations of each GPU.
The memory capacity of a V100 32GB GPU is 32GB, but the actual usable memory is slightly less due to overhead. Let's assume the usable memory is around 30GB per GPU.
To estimate the memory requirements for the model, we need more information about the specific model architecture and the size of each parameter. However, since the model size is given as 60B, we'll assume it refers to the number of parameters in billions.
A rough estimate of model memory requirements can be obtained by assuming that each parameter requires 4 bytes (32 bits) of memory. So, a 60B model would require approximately 60 * 4 = 240GB of memory.
To finetune the model, you would typically need to load both the pre-trained model and the training data into memory simultaneously. Additionally, the context window size might require additional memory.
To perform the finetuning process, we'll need at least 240GB of model memory plus additional memory for the context window size and other data.
Considering that each V100 32GB GPU has around 30GB of usable memory, a rough estimate of the number of GPUs needed can be obtained by dividing the required memory by the usable memory per GPU:
(Number of GPUs) = (Required memory) / (Usable memory per GPU)
= (240GB + Additional memory) / 30GB
However, without more specific information about the additional memory requirements and the exact model architecture, it is challenging to provide an accurate answer. It is recommended to consult the documentation or technical specifications of the specific finetuning framework or library being used to get more precise memory requirements and recommendations for the target model and context window size.