Comments (2)
In the "Convert the model to ggml" section of the README.md, what is the "" parameter referring to? Following the instructions in MiniGPT4, I ended up with a folder containing the model weights. What specific file should I point to with this parameter?
I made a mistake. convert.py should be under llama.cpp instead of minigpt4. However, there is now a new error : 'Exception: Vocab size mismatch (model has 32001, but MiniGPT-4/model/weight_7b/tokenizer.model has 32000). Most likely you are missing added_tokens.json (should be in MiniGPT-4/model/weight_7b).'. It worked fine in Minigpt-4. How should I handle this problem? What is missing?
from minigpt4.cpp.
Add a added_tokens.json
with id of 32001
(I think) in the folder that contains the vocab and model.
This is a problem with how pytorch loads the file and how minigpt4 loads it I believe. I didn't explore it in depth, but after adding the json file, that should fix it and convert.py
should convert to the correct weights.
from minigpt4.cpp.
Related Issues (13)
- CMake build fails for Ubuntu 20.04.6 LTS HOT 5
- Question: partly GPU inference? HOT 2
- How to accelerate inference? HOT 2
- two questions HOT 2
- MiniGPT-v2 support HOT 1
- why the webui.py did not load minigpt4-7b.bin,just load the ggml ,direct launch the web HOT 1
- Error trying to load on windows HOT 10
- how to tokennizer vicuna HOT 2
- Unable to use GPU acceleration HOT 3
- gradio errors 'scale should be integer' and 'button object ha no attribute style' HOT 2
- [error] translate text from english to chinese HOT 2
- Files uploaded to minigpt4-7b-ggml and minigpt4-13b-ggml HF repositories are the same HOT 2
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 minigpt4.cpp.