Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jan 2, 2025
1 parent 3daff80 commit 287f4ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ exports[`tokeneize 3`] = `
"
`;

exports[`work fine 1`] = `
exports[`works fine 1`] = `
{
"text": " swochadoorter scientific WindowsCa occupiedrå alta",
"timings": "Timings: (8) keys",
Expand All @@ -423,7 +423,7 @@ exports[`work fine 1`] = `
}
`;

exports[`work fine with vocab_only: empty result 1`] = `
exports[`works fine with vocab_only: empty result 1`] = `
{
"text": "",
"timings": {
Expand All @@ -442,7 +442,7 @@ exports[`work fine with vocab_only: empty result 1`] = `
}
`;

exports[`work fine with vocab_only: model info 1`] = `
exports[`works fine with vocab_only: model info 1`] = `
{
"desc": "llama ?B all F32",
"isChatTemplateSupported": false,
Expand All @@ -468,7 +468,7 @@ exports[`work fine with vocab_only: model info 1`] = `
}
`;

exports[`work fine with vocab_only: tokenize 1`] = `
exports[`works fine with vocab_only: tokenize 1`] = `
{
"tokens": Int32Array [
9038,
Expand All @@ -479,7 +479,7 @@ exports[`work fine with vocab_only: tokenize 1`] = `
}
`;

exports[`work fine: model info 1`] = `
exports[`works fine: model info 1`] = `
{
"desc": "llama ?B F16",
"isChatTemplateSupported": false,
Expand Down
4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'path'
import waitForExpect from 'wait-for-expect'
import { loadModel } from '../lib'

it('work fine', async () => {
it('works fine', async () => {
let tokens = ''
const model = await loadModel({ model: path.resolve(__dirname, './tiny-random-llama.gguf') })
const info = model.getModelInfo()
Expand Down Expand Up @@ -30,7 +30,7 @@ it('work fine', async () => {
await model.release()
})

it('work fine with vocab_only', async () => {
it('works fine with vocab_only', async () => {
const model = await loadModel({ model: path.resolve(__dirname, './tiny-random-llama.gguf'), vocab_only: true })
expect(model.getModelInfo()).toMatchSnapshot('model info')
expect(await model.tokenize('Once upon a time')).toMatchSnapshot('tokenize')
Expand Down

0 comments on commit 287f4ee

Please sign in to comment.