Open klauswr opened 1 year ago
I've got the same error, Debian 11 on amd64.
I've got a similar warning and not 100% sure how to fix it but not really concerned at this point as I got it running anyway... I think the warning is just Node.js complaining about different file systems (host vs container), in my case:
Host (my machine): uname -m
-> arm64
Container: uname -m
-> aarch64
if you double-check, a new folder ./models
has been created in your cloned repo and this has been mapped to your container.
You can check by running: ls models/alpaca
in your machine and then compare with the running container:
docker ps
to get the Container _IDls alpaca/
ls alpaca/models/7B/
here my 2 cents to hopefully make it easier to start/stop: https://github.com/cocktailpeanut/dalai/pull/317
It might be the case, that your system is SELinux enabled. For me adding the :Z
option to the volume mounts in the docker-compose.yml
did the trick.
For more details, see here: https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label
The same happened to me too (using the docker-compose
commands). I also wanted to add that while the model files seem to be build, the UI does start but after giving a prompt no answer is given at all.
mkdir /root/dalai
{ method: 'install', callparams: [ '7B' ] }
2 [Error: EXDEV: cross-device link not permitted, rename '/root/dalai/alpaca/models' -> '/root/dalai/tmp/models'] {
errno: -18,
code: 'EXDEV',
syscall: 'rename',
path: '/root/dalai/alpaca/models',
dest: '/root/dalai/tmp/models'
}
3 [Error: EBUSY: resource busy or locked, rmdir '/root/dalai/alpaca'] {
errno: -16,
code: 'EBUSY',
syscall: 'rmdir',
path: '/root/dalai/alpaca'
}
mkdir /root/dalai/alpaca
try fetching /root/dalai/alpaca https://github.com/ItsPi3141/alpaca.cpp
[E] Pull TypeError: Cannot read properties of null (reading 'split')
at new GitConfig (/root/dalai/node_modules/isomorphic-git/index.cjs:1610:30)
at GitConfig.from (/root/dalai/node_modules/isomorphic-git/index.cjs:1633:12)
at GitConfigManager.get (/root/dalai/node_modules/isomorphic-git/index.cjs:1756:22)
at async _getConfig (/root/dalai/node_modules/isomorphic-git/index.cjs:5467:18)
at async normalizeAuthorObject (/root/dalai/node_modules/isomorphic-git/index.cjs:5477:19)
at async Object.pull (/root/dalai/node_modules/isomorphic-git/index.cjs:11761:20)
at async Dalai.add (/root/dalai/node_modules/dalai/index.js:394:7)
at async Dalai.install (/root/dalai/node_modules/dalai/index.js:346:5) {
caller: 'git.pull'
}
...snip...
g++ -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC -pthread main.cpp ggml.o utils.o -o main
./main -h
usage: ./main [options]
options:
-h, --help show this help message and exit
-i, --interactive run in interactive mode
--interactive-start run in interactive mode and poll user input at startup
...snip...
root@ac1e8ff673d2:~/dalai/alpaca# exit
exit
4 [Error: EXDEV: cross-device link not permitted, rename '/root/dalai/tmp/models' -> '/root/dalai/alpaca/models'] {
errno: -18,
code: 'EXDEV',
syscall: 'rename',
path: '/root/dalai/tmp/models',
dest: '/root/dalai/alpaca/models'
}
...snip...
ggml-model-q4_0.bin 100%[==================================================================================>] done
I have no clue how to properly debug this, though. Executing the main
binary inside the containe with the model file parameter leads to an error:
root@041e7cca0fb1:~/dalai/alpaca# ./main -m models/7B/ggml-model-q4_0.bin -p "hello"
main: seed = 1690266891
llama_model_load: loading model from 'models/7B/ggml-model-q4_0.bin' - please wait ...
llama_model_load: invalid model file 'models/7B/ggml-model-q4_0.bin' (bad magic)
main: failed to load model from 'models/7B/ggml-model-q4_0.bin'
Following the instructions to use docker compose, I get several error(s) on docker compose run:
full console output: