-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[compiler] Support large models #12732
Comments
We may need to support external data file on circle spec (like onnx spec) to save large weight. |
circle schema from 0.7 has this in changes from tflite
I need to look inside tflite implementation but, |
Now it's time to support this. modules that may need revision; progress with draft changes
modules using luci/import, luci/export
how to test this?
issues
|
How tflite does
// Only run validator on models less than 2GB
if (allocation->bytes() < flatbuffer_size_max) {
flatbuffers::Verifier base_verifier(
reinterpret_cast<const uint8_t*>(allocation->base()),
allocation->bytes());
if (!VerifyModelBuffer(base_verifier)) {
TF_LITE_REPORT_ERROR(error_reporter,
"The model is not a valid Flatbuffer buffer");
return nullptr;
}
}
// check if Flatbuffer builder can no longer hold the given amount of the data
inline bool IsModelBiggerThan2GB(const uint64_t data_size) {
return data_size > flatbuffer_size_max - builder_.GetSize();
} |
How to export ?
|
As of testing, let's use new |
New fields to support
|
we need this option from the start ? IMHO, this is a kind of custom something. |
Yes, for |
Name for this feature... (I thought I've left a mention about this but now I can't find it...)
|
done for now |
Issue to gather issues, task for large models, such as
things to do with our LLM model
The text was updated successfully, but these errors were encountered: