Comments (4)
I ran into the same issue, but after making these changes it works fine. 007f063
from bert.cpp.
Thanks! I think latest ggml with your increasing memory size code can be used to convert the models.
I believe the code in this repository should be updated.
- model_mem_req += (5 + 16 * n_layer) * 256; // object overhead
+ model_mem_req += (5 + 16 * n_layer) * 512; // object overhead
- new_bert->buf_compute.resize(16 * 1024 * 1024);
+ new_bert->buf_compute.resize(32 * 1024 * 1024);
from bert.cpp.
I see that this has been updated: https://github.com/skeskinen/bert.cpp/blob/master/bert.cpp#L461
But I am still seeing this error.
from bert.cpp.
bert_load_from_file: n_vocab = 30522
bert_load_from_file: n_max_tokens = 512
bert_load_from_file: n_embd = 384
bert_load_from_file: n_intermediate = 1536
bert_load_from_file: n_head = 12
bert_load_from_file: n_layer = 12
bert_load_from_file: f16 = 0
bert_load_from_file: ggml ctx size = 126.80 MB
bert_load_from_file: ........................ done
bert_load_from_file: model size = 126.69 MB / num tensors = 197
bert_load_from_file: mem_per_token 898 KB, mem_per_input 538 MB
ggml_new_object: not enough space in the context's memory pool (needed 565700096, available 565174272)
from bert.cpp.
Related Issues (20)
- Can not infer quantized model, but fp32 works well. HOT 9
- none
- update to current ggml HOT 2
- [Regression] WASM alignment fault after ggml update HOT 3
- throwing the error while running the model
- Error Running Server Example HOT 1
- Comparison of timing results
- subword `#` should be an option. HOT 6
- Error load model
- Support for cjk. Please!and get an error on windows HOT 1
- Tokenizer in bert.cpp is not good enough, how about `tokenizers-cpp` HOT 11
- Segfault on large inputs? HOT 2
- Issue reading ggml-model-q4_0.bin HOT 4
- Is this ever going to be updated? HOT 6
- Does this support CUDA? HOT 1
- Any plan to support GGUF?
- How do I properly build this on windows? HOT 1
- How can I increase n_max_tokens? HOT 1
- Is it possible to make multiple socket connection at the same time from same machine. 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 bert.cpp.