bigcode-project / starcoder.cpp

C++ implementation for 💫StarCoder
443 stars 36 forks source link

Unable to build on Windows #17

Open idontcare999a opened 1 year ago

idontcare999a commented 1 year ago

Hello, I am trying to build this on Windows using CMake (Visual Studio / VSCode).

Line 15 on main.cpp

cannot open source file "unistd.h"

If I comment it out and compile again, I get a few more:

Line 207 and 441 on main.cpp:

use of designated initializers requires at least '/std:c++20'

Line 745 on main.cpp:

identifier "isatty" is undefined
identifier "STDIN_FILENO" is undefined
NouamaneTazi commented 1 year ago

Interesting. Unfortunately I don't currenly use Windows to debug this. Can you try running the GPT2 example in the ggml library? https://github.com/ggerganov/ggml#gpt-inference-example

idontcare999a commented 1 year ago

I was able to build and run the starcoder.exe from ggml repo.