GPTConfig constructor

const GPTConfig({
  1. required int vocabSize,
  2. required int maxSeqLen,
  3. required int dModel,
  4. required int nHeads,
  5. required int nLayers,
  6. int ffnMult = 4,
  7. bool tieWeights = true,
  8. bool rope = true,
})

Implementation

const GPTConfig({
  required this.vocabSize,
  required this.maxSeqLen,
  required this.dModel,
  required this.nHeads,
  required this.nLayers,
  this.ffnMult = 4,
  this.tieWeights = true,
  this.rope = true,
});