Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx dalai serve not working, no error output (Ubuntu 18.04, dalai@0.0.13) #7

Open
tddschn opened this issue Mar 13, 2023 · 18 comments
Open

Comments

@tddschn
Copy link

tddschn commented Mar 13, 2023

Hello,

Thank you for making this!

I was just trying it out on a Ubuntu 18.04 server, and the 2nd command npx dalai serve didn't seem to work on my server (I've run npx dalai llama).

Some command history and outputs:

(base) ➜  ~ npx dalai serve
Need to install the following packages:
  dalai@0.0.13
Ok to proceed? (y) 
(base) ➜  ~ lsof -i :3000
(base) ➜  ~ sudo netstat -plnt | grep :3000

(base) ➜  ~ node -v # node is installed via snap
v18.15.0
(base) ➜  ~ npm -v
9.5.0
(base) ➜  ~ 

Screenshot

CleanShot-2023-03-13T10-54-32@2x

@tddschn
Copy link
Author

tddschn commented Mar 13, 2023

After running npx dalai llama, ~/dalai wasn't created. The command exited very fast.

@tddschn
Copy link
Author

tddschn commented Mar 13, 2023

Node on the server is installed via snap.

@Draecal
Copy link

Draecal commented Mar 13, 2023

Same issue but on Windows 11, after running npx dalai llama no dalai folder is created.

@greg121
Copy link

greg121 commented Mar 13, 2023

Windows 10, same.

@silverbee141
Copy link

same on windows 10

@Draecal
Copy link

Draecal commented Mar 13, 2023

Windows 10, same.

I fixed mine by installing latest Visual Studio Community with support for Desktop C++ environment.

@silverbee141
Copy link

Windows 10, same.

I fixed mine by installing latest Visual Studio Community with support for Desktop C++ environment.

I only used VS Code with C/C++ installed. Will try the community edition but couldn't see it would solve it

@silverbee141
Copy link

for windows I think it's related to ggerganov's llama.cpp not supported for windows yet? I wonder why it happens to linux too.

@ekp1k80
Copy link

ekp1k80 commented Mar 13, 2023

@tddschn would you try with #16
I would suggest just download the repo of the pr owner

@tobym
Copy link

tobym commented Mar 21, 2023

Make sure you have build-essentials before running install and serve. Otherwise it silently failed for me after attempting npx dalai serve and saying "yes" to the prompt to install dalai@0.2.50 package (Ubuntu 22.04.2 LTS on WSL2).

sudo apt-get install build-essential -y
npx dalai alpaca install 7B
npx dalai serve

@kamalbilal
Copy link

kamalbilal commented Mar 23, 2023

In Kali Linux I have installed build-essential and python3-venv and also npx dalai alpaca install 7B.
When I run "npx dalai serve", it just installs again and then the command exits automatically without any error or warning.

@leder11011
Copy link

Hi, all
in Ubuntu I cannot install npx dalai:

Warning: "tall build-essential python3-venv -y" exists; Overwrite, Append or Don't log? 

@ruxiz2020
Copy link

I got the same issue on mac, for installing alpaca. After npx dalai server nothing comes back.

npx dalai server
Need to install the following packages:
  dalai@0.3.1
Ok to proceed? (y) y

@Gregam3
Copy link

Gregam3 commented Mar 26, 2023

Anyone resolved this yet?

Running Ubuntu

npx dalai serve --verbose

@Pppapaya
Copy link

Same for win10, did anyone address it? (but it works on linux)

@Pppapaya
Copy link

Windows 10, same.

Hi, did you address it?

@Elko-Lemiso
Copy link

same for me, doesnt work :P

@pit-crew
Copy link

pit-crew commented Apr 11, 2023

Solved my similar failure by upgrading node from 12 to 19. Installation went to completion. (Ubuntu 20.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests