Comments (4)
Hi, the error codes are simply line numbers, but it looks like your code is quite different.
On both main and dev, if (file_size_ != file_size) return __LINE__;
should be line 218, not 155. Is the code modified?
I think the issue is that off_t on Android defaults to 32-bit. You can build with -D_FILE_OFFSET_BITS=64
which fixes it for 15c and above. We'll also change to lseek64, thanks for pointing this out :)
from gemma.cpp.
I think this is fixed now, please reopen if not.
from gemma.cpp.
It works well!!
But sentencepiece with add_definitions(-D_FILE_OFFSET_BITS=64) has an error.
/usr/lib/android-sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/fstream:968:9: error: use of undeclared identifier 'fseeko'
if (fseeko(_file, __sp, SEEK_SET))
I put the definition like this
FetchContent_Declare(sentencepiece GIT_REPOSITORY https://github.com/google/sentencepiece GIT_TAG 53de76561cfc149d3c01037f0595669ad32a5e7c)
FetchContent_MakeAvailable(sentencepiece)add_definitions(-D_FILE_OFFSET_BITS=64)
FetchContent_Declare(highway GIT_REPOSITORY https://github.com/google/highway.git GIT_TAG da250571a45826b21eebbddc1e50d0c1137dee5f)
FetchContent_MakeAvailable(highway)
Thank you very much!
from gemma.cpp.
Please help us out by searching for such error messages on the web :)
This one is mentioned in https://developer.android.com/ndk/guides/common-problems, it seems we have to raise minSdkVersion to 24.
from gemma.cpp.
Related Issues (20)
- Using mingw64 build on windows 10 fails HOT 3
- Weights converted from PyTorch don't seem to work properly HOT 2
- Seeking feedbacks for python wrapper of gemma.cpp HOT 3
- Is the format of output Markdown? HOT 2
- Failed on raspberry pi OS (64bit) HOT 6
- TODO (**Optimize, potentially using new VQSort PartialSort**) HOT 1
- again:Cached compressed weights does not exist yet gemma HOT 5
- Implement arch changes
- Have there been any performance comparisons between gemma.cpp and llama.cpp? HOT 3
- Mismatch between expected 1024000 and actual 1024512 KiB size. HOT 1
- Any more fine example or user-guide for CodeGemma?
- How can I get the compiled static executable binary file in linux platform? HOT 2
- Near-term roadmap HOT 3
- Use a MatMul implementation over MatVec for Prefill Computations HOT 2
- Paligemma Support HOT 1
- project does not work as submodule HOT 2
- Error during build process HOT 1
- Compile error on visual studio build, array size exceed HOT 2
- gemma.exe does not respond no matter how long you wait. HOT 3
- Crash in Attention() with huge input HOT 13
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 gemma.cpp.