Post
1803
๐ฎ GPT-3 implemented in pure Free Pascal!
https://github.com/joaopauloschuler/gpt-3-for-pascal
This implementation follows the GPT-3 Small architecture from the landmark paper "Language Models are Few-Shot Learners":
Clean Pascal Implementation
https://github.com/joaopauloschuler/gpt-3-for-pascal
This implementation follows the GPT-3 Small architecture from the landmark paper "Language Models are Few-Shot Learners":
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Input Layer โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Token & Positional โ
โ Embedding โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 12x Transformer โ
โ Blocks โ
โ - 12 heads โ
โ - 768 hidden dims โ
โ - 3072 intermediate โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Output Layer โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
Clean Pascal Implementation
for CntLayer := 1 to {Layers=}12 do
begin
Result.AddTransformerBlockCAI(
{Heads=}12,
{intermediate dimensions=}4*768,
{NoForward=}true,
{HasNorm=}true,
false
);
end;