We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a596ead commit c6beac9Copy full SHA for c6beac9
discojs/src/default_tasks/wikitext.ts
@@ -41,7 +41,9 @@ export const wikitext: TaskProvider<'text'> = {
41
}
42
},
43
44
- getModel (): Promise<Model<'text'>> {
45
- return Promise.resolve(new models.GPT())
+ getModel(): Promise<Model<'text'>> {
+ return Promise.resolve(new models.GPT({
46
+ blockSize: this.getTask().trainingInformation.maxSequenceLength,
47
+ }))
48
49
webapp/src/components/testing/__tests__/Testing.spec.ts
@@ -28,6 +28,7 @@ const TASK: Task<"text"> = {
28
batchSize: 1,
29
roundDuration: 1,
30
validationSplit: 0,
31
+ maxSequenceLength: 64,
32
33
};
34
0 commit comments