Using a provided vindex (hf://chrishayuk/gemma-3-4b-it-vindex) seems to work perfectly fine, however when trying to extract a standalone safetensors model (for example mistralai/Mistral-7B-Instruct-v0.3) vindex doesn't seem to have knowledge graph.
./larql repl
╦ ╔═╗ ╦═╗ ╔═╗ ╦
║ ╠═╣ ╠╦╝ ║═╬╗║
╩═╝ ╩ ╩ ╩╚═ ╚═╝╚╩═╝
Lazarus Query Language v0.1
larql> USE "mistral7b.vindex";
Using: mistral7b.vindex (32 layers, 458.8K features, model: mistralai/Mistral-7B-Instruct-v0.3)
larql> DESCRIBE "France";
France
(no edges found)
larql> STATS;
Model: mistralai/Mistral-7B-Instruct-v0.3
Features: 458.8K (14.3K x 32 layers)
Knowledge Graph:
(no relation clusters found)
By layer band:
Syntax (L0-13): 200.7K features
Knowledge (L14-27): 200.7K features
Output (L28-33): 57.3K features
Index size: 27.04 GB
Path: mistral7b.vindex
Other features seem to work fine, however describing and querying does not.
I found that there is a file, that is missing - feature_labels.json - it is present in your example vindex, but not in local extracted one:
./larql verify mistral7b.vindex
Verifying: mistral7b.vindex (8 files)
attn_weights.bin ... OK (5.00 GB)
norms.bin ... OK (1.0 MB)
down_weights.bin ... OK (7.00 GB)
lm_head.bin ... OK (512.0 MB)
embeddings.bin ... OK (512.0 MB)
gate_vectors.bin ... OK (7.00 GB)
down_meta.bin ... OK (38.5 MB)
up_weights.bin ... OK (7.00 GB)
All 8 files verified.
As I understood it should be used for best feature description and is used in higher priority over discovered relation clusters, but those were also not created in the first place.
If there are additional mandatory steps, I haven't found them.
If you have any pointers to how to proceed or fix this issue, it would be really helpful. Thanks.
Using a provided
vindex(hf://chrishayuk/gemma-3-4b-it-vindex) seems to work perfectly fine, however when trying to extract a standalone safetensors model (for example mistralai/Mistral-7B-Instruct-v0.3)vindexdoesn't seem to have knowledge graph.Other features seem to work fine, however describing and querying does not.
I found that there is a file, that is missing -
feature_labels.json- it is present in your examplevindex, but not in local extracted one:As I understood it should be used for best feature description and is used in higher priority over discovered relation clusters, but those were also not created in the first place.
If there are additional mandatory steps, I haven't found them.
If you have any pointers to how to proceed or fix this issue, it would be really helpful. Thanks.