A 4-layer distillation of jina-embeddings-v2-base-code for embedding search queries, as int8 ONNX (85 MB). It keeps the base model's token embeddings and 4 of its 12 layers (0, 4, 8 and 11), trained to point where the base model points. Made for provgrep, which orders code embedded by the base model by how close it is to a query embedded by this one: a query costs a third of the CPU.
It is for queries, not for code. Embed documents with the base model.
tokenizer.json, the same file), truncated at 512 tokens.input_ids and attention_mask; output last_hidden_state.corpus/github.json, sha256 4da3293d763e): first sentences of functions' comments and
docstrings, function names split into words, a sentence with an identifier its function calls,
and the first words of a sentence, as typed. provgrep's evaluation questions are not among them.provgrep evaluate search with the code of provgrep
5904e2f, 163 intents asked with any license and with permissive ones; on its index of corpus
sha256 4da3293d763e, results reordered by cosine with each): a hit first for 139 searches and in
the top 10 for 263, against 134 and 259 with the base model in int8.Apache-2.0, as the base model, whose weights are Jina AI's.