Comments (2)
python run_localGPT.py
this command is showing syntax error when run on google colab
from localgpt.
I, too, ran: python run_localGPT.py --device_type cpu in an Anaconda shell on a Windows 10 machine. The error I got is:
2023-09-04 20:44:58,753 - INFO - run_localGPT.py:50 - Using Llamacpp for GGML quantized models
llama.cpp: loading model from C:\Users\Owner.cache\huggingface\hub\models--TheBloke--Llama-2-7B-Chat-GGML\snapshots\00109c56c85ca9015795ca06c272cbc65c7f1dbf\llama-2-7b-chat.ggmlv3.q4_0.bin
error loading model: unknown (magic, version) combination: 67676a74, 00000003; is this really a GGML file?
llama_init_from_file: failed to load model
Traceback (most recent call last):
File "D:\Projects\libraries\GPTs\localGPT\localGPT-main\run_localGPT.py", line 246, in
main()
File "C:\Users\Owner\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "D:\Projects\libraries\GPTs\localGPT\localGPT-main\run_localGPT.py", line 209, in main
llm = load_model(device_type, model_id=MODEL_ID, model_basename=MODEL_BASENAME)
File "D:\Projects\libraries\GPTs\localGPT\localGPT-main\run_localGPT.py", line 63, in load_model
return LlamaCpp(**kwargs)
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__pydantic.error_wrappers.ValidationError:
1 validation error for LlamaCpp
root
Could not load Llama model from path:
C:\Users\Owner.cache\huggingface\hub\models--TheBloke--Llama-2-7B-Chat-GGML\snapshots\00109c56c85ca9015795ca06c272cbc65c7f1dbf\llama-2-7b-chat.ggmlv3.q4_0.bin.
Received error (type=value_error)
The file exists: From my Windows 10 File Manager:
C:\Users\Owner.cache\huggingface\hub\models--TheBloke--Llama-2-7B-Chat-GGML\snapshots\00109c56c85ca9015795ca06c272cbc65c7f1dbf\llama-2-7b-chat.ggmlv3.q4_0.bin
Please advise. Thank you.
from localgpt.
Related Issues (20)
- Compare the response time differences between 4xA100 and 8xH100 HOT 5
- Type=Value Error whenever we load any other LLM model rather than Llama and Mistral HOT 1
- PowerInfer integration
- Embdedings & Model files Location in local system. HOT 4
- Local Gpt
- Requested tokens exceed context window of 4096 HOT 3
- KeyError: 'Cache only has 0 layers, attempted to access layer with index 0' HOT 3
- Suggestion to improve or fine tune the model with custom documents HOT 1
- No module named click HOT 1
- run_localGPT.py fail: python run_localGPT.py --device_type cpu
- multi-user or async prompt requests crashes the app HOT 6
- When using mistral tokenizer, the system role cannot be used
- INSTRUCTOR._load_sbert_model() got an unexpected keyword argument 'token' HOT 8
- Ingestion Error / Batch processing HOT 2
- How to make LocalGPT to translate everything into English language before store and process inputs HOT 1
- Unable to load llama model from path HOT 2
- name 'compute_device' is not defined when --device_type cpu on Linux HOT 6
- is it possible to use a previously downloaded HF .gguf file HOT 4
- "TypeError: 'HuggingFaceInstructEmbeddings' object is not callable" after enter a query HOT 8
- [macOs] ingest.py: IndexError: list index out of range HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localgpt.