Spaces:
Runtime error
Runtime error
Commit History
-
M5: embedding-experiment infra + sub-exp A null result + UniXcoder (B) setupβ
CamQuestByte +1: Claude Opus 4.8Sub-experiment A (DONE, null): embedding docstring-stripped source vs code_tokens with MiniLM fixed doesn't move MRR (n=2000/seed=42, deltas inside SE). The model, not the representation, is the dense bottleneck. Sub-experiment B (in progress): swap to a fair code bi-encoder, microsoft/unixcoder-base (code-pretrained, not CSN-retrieval-finetuned). Infra: - config.py: env-driven EMBEDDING_DIM, EMBED_INPUT, EMBED_MAX_LENGTH (256, matches MiniLM), QDRANT_ON_DISK. - data.py: strip_docstring() (AST span-excision, 0-leak). - embedding.py: load_encoder() factory + UniXcoderEncoder β reproduces the official encoder-only recipe (mode token, mean-pool, L2-norm) in a form transformers 5.x can run; the official unixcoder.py 2-D mask crashes batched / goes causal single. Proven element-wise identical (max|D|=0) to the official model run bidirectionally. - index_corpus.py / dense.py: use load_encoder(); on-disk collection support; GOLDS_FIRST reorder (run-local; embeds eval golds firstβ¦4dfafb0