Skip to content

Commit

Permalink
test: disable GPU to fixed test result
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed May 3, 2024
1 parent 3a4c2ef commit 149ba90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { loadModel } from '../lib'

it('work fine', async () => {
let tokens = ''
const model = await loadModel({ model: path.resolve(__dirname, './TinyLLama-v0.Q8_0.gguf') })
const model = await loadModel({ model: path.resolve(__dirname, './TinyLLama-v0.Q8_0.gguf'), n_gpu_layers: 0 })
const result = await model.completion({
prompt: 'My name is Merve and my favorite',
n_samples: 1,
Expand Down

0 comments on commit 149ba90

Please sign in to comment.