Let's say a LLM is 70b parameters and trained on 2 trillion tokens. Estimate the FLOPS…
- User
Let's say a LLM is 70b parameters and trained on 2 trillion tokens. Estimate the FLOPS used to train the model.
- Assistant
To estimate the FLOPS used to train a large language model (LLM) with 70 billion parameters and trained on 2 trillion tokens, we first need to calculate the number of parameters w and the number of tokens t.
Let's assume that each token is represented by a 1-dimensional array of size d, where d is the embedding dimension. In this case, the total number of parameters can be calculated as:
w = t * d
For example, if we assume a simple tokenizer that splits words into subwords of size 50, we might have the following:
t = 2 * 10^12 tokens (2 trillion tokens) d = 50 (embedding dimension)
w = 2 * 10^12 * 50 = 100 billion parameters
Now, let's assume that each parameter is multiplied by a scalar value, say a = 1.25 * 10^-19 FLOPS. The total FLOPS required for training the model can be calculated as:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.