Giter Site home page Giter Site logo

Error when using setup.py about fastllama HOT 5 CLOSED

SumYin avatar SumYin commented on May 25, 2024
Error when using setup.py

from fastllama.

Comments (5)

PotatoSpudowski avatar PotatoSpudowski commented on May 25, 2024

Hi, can you cd inside "build" and run

"cmake .." and then "make"

Please share the logs and we can help debug!

from fastllama.

SumYin avatar SumYin commented on May 25, 2024

Hey! I recloned the repo and there is no build folder. I ran setup.py which made the build folder. Here is everything that happened in the terminal

PS C:\Users\SumYin\Desktop\llama\fastLLaMa> cd build
cd : Cannot find path 'C:\Users\SumYin\Desktop\llama\fastLLaMa\build' because it does not exist.
At line:1 char:1
+ cd build
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\SumYin...fastLLaMa\build:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

PS C:\Users\SumYin\Desktop\llama\fastLLaMa> python setup.py
An error occurred while running 'make': Command '['cd ./build && cmake .. && make']' returned non-zero exit status 1.
Output:
PS C:\Users\SumYin\Desktop\llama\fastLLaMa> cd build
PS C:\Users\SumYin\Desktop\llama\fastLLaMa\build> cmake ..
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:2 (project):
  Running

   'nmake' '-?'

  failed with:

   The system cannot find the file specified


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/SumYin/Desktop/llama/fastLLaMa/build/CMakeFiles/CMakeOutput.log".
PS C:\Users\SumYin\Desktop\llama\fastLLaMa\build>

I am not sure what you mean by logs, are they stored some where?

from fastllama.

PotatoSpudowski avatar PotatoSpudowski commented on May 25, 2024
  1. Check if you have Visual Studio with "Desktop development with C++" workload if not you can download https://visualstudio.microsoft.com/downloads
  2. Can you try using Developer Command Prompt.
  3. Check if windows environment variables for C/C++ is set properly.

I am yet to test this out on windows. If you get it working else please share the errors

from fastllama.

metigue avatar metigue commented on May 25, 2024

I'm having the same error. I'm sure 1 and 3 are not issues as I have alpaca and built that with cmake, tried 2 no dice.

When I load it in VisualStudio and try and built with cmake through there I get:

Severity	Code	Description	Project	File	Line	Suppression State
Warning	D9002	ignoring unknown option '-O3'	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\out\build\x64-Debug\cl	1	
Error	C7555	use of designated initializers requires at least '/std:c++20'	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\bridge.cpp	237	
Error	C7555	use of designated initializers requires at least '/std:c++20'	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\bridge.cpp	574	
Error	C7555	use of designated initializers requires at least '/std:c++20'	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\bridge.cpp	579	
Error	C2039	'accumulate': is not a member of 'std'	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\bridge.cpp	967	
Error	C3861	'accumulate': identifier not found	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\bridge.cpp	967	
Error	C2737	'stop_token_len': const object must be initialized	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\bridge.cpp	967	
Error	C3536	'stop_token_len': cannot be used before it is initialized	C:\AI\fastLLaMa\out\build\x64-Debug\fastLLaMa	C:\AI\fastLLaMa\bridge.cpp	971	

from fastllama.

amitsingh19975 avatar amitsingh19975 commented on May 25, 2024

Can you build using the refactor branch? The errors you're getting indeed c++ errors not msvc.

from fastllama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.