Skip to content

Commit 1720a5c

Browse files
committed
test: fix test
1 parent e4841a5 commit 1720a5c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ jobs:
383383

384384
model-dependent-tests:
385385
name: Model dependent tests
386-
runs-on: ubuntu-24.04
386+
runs-on: macos-12
387387
env:
388388
NODE_LLAMA_CPP_GPU: false
389389
needs:
@@ -406,10 +406,10 @@ jobs:
406406
name: llama.cpp
407407
path: llama
408408

409-
# - name: Install dependencies on macOS
410-
# run: |
411-
# brew install cmake ninja
412-
# alias make=cmake
409+
- name: Install dependencies on macOS
410+
run: |
411+
brew install cmake ninja
412+
alias make=cmake
413413
414414
- name: Install modules
415415
run: npm ci

test/modelDependent/codegemma/completion.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ describe("CodeGemma", () => {
1919
contextSequence: context.getSequence()
2020
});
2121

22-
const res = await completion.generateCompletion("Here is a list of sweet fruits:\n* ", {
23-
maxTokens: 10
22+
const res = await completion.generateCompletion("Sweet fruit names:\n* ", {
23+
maxTokens: 10,
24+
seed: 30
2425
});
2526
expect(res).toMatchInlineSnapshot(`
26-
"🍎
27-
* 🍊
28-
* 🍋
27+
"1. Apple
28+
* 2. Banana
2929
"
3030
`);
3131
});

0 commit comments

Comments
 (0)