This directory contains ONNXRuntime Lora Parameter format schema and the generated C++ header file for the
Lora Parameters file format. This file format is defined as a means to deliver Lora parameters so it can read by ONNXRuntime C++ code.
The format is generally designed to house a single Lora adapter with named Lora parameters.
ONNXRuntime Lora Parameter file format schema uses the FlatBuffers serialization library.
Please do not directly modify the generated C++ header file for ONNXRuntime Lora Parameter file format.
Use flatc compiler for the purpose.
e.g.
- Windows Debug build
- \build\Windows\Debug_deps\flatbuffers-build\Debug\flatc.exe
- Linux Debug build
- /build/Linux/Debug/_deps/flatbuffers-build/flatc
It is possible to use another flatc as well, e.g., from a separate installation.
To update the flatbuffers schemas and generated files:
1. Modify ONNXRuntime Lora Parameter file format schema.
2. Run compile_schema.py to generate the C++ bindings.
```
python onnxruntime/lora/lora_format/compile_schema.py --flatc <path to flatc>
```
In lora_format_version.h, see IsLoraParameterslVersionSupported() for the supported versions andkLoraParametersVersion for the current version.
History begins.
Initial support for FlatBuffers that Lora Parameters support. This includes a definition of Tensor entity
so it can be saved in a tensor per file format.