gemma.cpp icon indicating copy to clipboard operation
gemma.cpp copied to clipboard

again:Cached compressed weights does not exist yet gemma

Open zhjygit opened this issue 10 months ago • 5 comments

My device is android phone, aarch64, with 8G ram, about 4.5G is idle and can be used. I download archive.tar.gz from kaggle with 2b-it-sfp, tar -zxvf archive.tar.gz, i got 2b-it-sfp.sbs and tokenizer.spm. And then git clone https://github.com/google/gemma.cpp.git cd gemma.cpp cd build (build directory is blank) cmake .. make jemma

When i executed the code: ../gemma.cpp/build/gemma --model 2b-it --tokenizer tokenizer.spm --compressed_weights 2b-it-sfp.sbs the errors is as follow:Cached compressed weights does not exist yet (code 154), compressing weights and creating file: .//2b-it-sfp.sbs
sometimes, the error code is 232 instead 154.

zhjygit avatar Apr 08 '24 02:04 zhjygit

Error numbers are line numbers inside blob_store.cc. 154 is lseek failing, 232 is file size not matching the expected size. It seems something is going wrong with the device's IO. Is it Android r15c or later? Did you download v3 of the weights? Their size has just changed.

jan-wassenberg avatar Apr 08 '24 07:04 jan-wassenberg

Error numbers are line numbers inside blob_store.cc. 154 is lseek failing, 232 is file size not matching the expected size. It seems something is going wrong with the device's IO. Is it Android r15c or later? Did you download v3 of the weights? Their size has just changed.

yes, I download archive.tar.gz from kaggle with 2b-it-sfp, tar -zxvf archive.tar.gz, i got 2b-it-sfp.sbs and tokenizer.spm. it is version 3. Maybe the file is broken, i will try again later. How can i know the version is Android r15c or later?

zhjygit avatar Apr 08 '24 10:04 zhjygit

With the recent MQA change there was a window when artifact wasn’t in sync (using the kaggle client api code worked but the artifact download didn’t).

https://discord.com/channels/1212851822813904947/1212851825334550548/1225712866934521887

might try downloading again or checking if the kaggle client api works and see if it’s still an issue.

austinvhuang avatar Apr 08 '24 11:04 austinvhuang

Agree the download might be broken/partial, this would explain lseek failures.

How can i know the version is Android r15c or later?

We can look at "About phone" in settings, that has an "Android version" which we can map to targetSdk(API level) using https://apilevels.com/.

jan-wassenberg avatar Apr 08 '24 15:04 jan-wassenberg

Any update on whether you are still seeing the issue?

jan-wassenberg avatar Apr 18 '24 13:04 jan-wassenberg