Skip to content

Commit 441a8ce

Browse files
committed
build: make tests run correctly
1 parent e7c176c commit 441a8ce

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ jobs:
443443
run: npm run dev:setup:downloadAllTestModels
444444

445445
- name: Run model dependent tests
446+
env:
447+
NODE_OPTIONS: "--max-old-space-size=4096"
446448
run: npm run test:modelDependent
447449

448450
release:

test/modelDependent/functionary/sanity.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ describe("functionary", () => {
1313
modelPath,
1414
checkTensors: true
1515
});
16-
const context = await model.createContext();
16+
const context = await model.createContext({
17+
contextSize: 2048
18+
});
1719
const chatSession = new LlamaChatSession({
1820
contextSequence: context.getSequence()
1921
});

0 commit comments

Comments
 (0)