dalai icon indicating copy to clipboard operation
dalai copied to clipboard

File does not exist: 7B. Try "dalai alpaca get 7B" first.

Open chefbennyj1 opened this issue 1 year ago • 3 comments

This one is interesting. In my project when Dalai goes to load I get this error (it isn't really an error though... it's some kind of suggestion. that I don't understand...)

File does not exist: 7B. Try "dalai alpaca get 7B" first. I should mention that the install of llama and alpaca was successful. I have the files.

I am doing this for my Dalai constructor:

const Dalai = require('~/dalai'); new Dalai().request({ model: "alpaca.7B", prompt: "The following is a conversation between a boy and a girl:", }, (token) => { process.stdout.write(token) console.log(token) })

Any ideas would be wonderful. Thanks in advance :)

chefbennyj1 avatar Mar 26 '23 01:03 chefbennyj1

I received this error when I installed to a custom home directory and then did not launch npx dalai serve with that same --home instruction

mbassman avatar Mar 26 '23 14:03 mbassman

same

karimasbra avatar Jun 02 '23 17:06 karimasbra

I debugged main.js and found that this works as long as dalai is in your ~/ directory

new Dalai().request({
    model: "llama.7B",
    prompt: "The following is a conversation between a boy and a girl:",
}, (token) => {
    process.stdout.write(token)
})

janmichaelyu avatar Jun 09 '23 02:06 janmichaelyu