Skip to content

Commit 31c47f1

Browse files
committed
test: fix tests
1 parent ea0d815 commit 31c47f1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/bindings/types.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,17 @@ export enum LlamaVocabularyType {
103103
bpe = "bpe",
104104
wpm = "wpm",
105105
ugm = "ugm",
106-
rwkv = "rwkv"
106+
rwkv = "rwkv",
107+
plamo2 = "plamo2"
107108
}
108109
export const LlamaVocabularyTypeValues = Object.freeze([
109110
LlamaVocabularyType.none,
110111
LlamaVocabularyType.spm,
111112
LlamaVocabularyType.bpe,
112-
LlamaVocabularyType.wpm
113+
LlamaVocabularyType.wpm,
114+
LlamaVocabularyType.ugm,
115+
LlamaVocabularyType.rwkv,
116+
LlamaVocabularyType.plamo2
113117
] as const);
114118

115119
/**

test/modelDependent/bgeReranker/rank.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {getTestLlama} from "../../utils/getTestLlama.js";
55
describe("bgeReranker", () => {
66
describe("rank", () => {
77
test("simple ranking", {timeout: 1000 * 60 * 60 * 2}, async (test) => {
8-
if (process.platform !== "darwin")
8+
if (process.platform !== "darwin" && process.arch !== "arm64")
99
test.skip(); // the scores are a bit different on different platforms, so skipping on other platforms due to flakiness
1010

1111
const modelPath = await getModelFile("bge-reranker-v2-m3-Q8_0.gguf");
@@ -61,7 +61,7 @@ describe("bgeReranker", () => {
6161
});
6262

6363
test("rank all", {timeout: 1000 * 60 * 60 * 2}, async (test) => {
64-
if (process.platform !== "darwin")
64+
if (process.platform !== "darwin" && process.arch !== "arm64")
6565
test.skip(); // the scores are a bit different on different platforms, so skipping on other platforms due to flakiness
6666

6767
const modelPath = await getModelFile("bge-reranker-v2-m3-Q8_0.gguf");
@@ -115,7 +115,7 @@ describe("bgeReranker", () => {
115115
});
116116

117117
test("rank and sort", {timeout: 1000 * 60 * 60 * 2}, async (test) => {
118-
if (process.platform !== "darwin")
118+
if (process.platform !== "darwin" && process.arch !== "arm64")
119119
test.skip(); // the scores are a bit different on different platforms, so skipping on other platforms due to flakiness
120120

121121
const modelPath = await getModelFile("bge-reranker-v2-m3-Q8_0.gguf");

0 commit comments

Comments
 (0)