Views
No views yet
1graph LR
2 A[Query] --> B(Concept Predictor)
3 B --> C{Concept Space}
4 C --> D[Retrieve Similar Code]
5 D --> E[Conditioned Generation]| Component | Model | Description |
|---|---|---|
| Concept Encoder | Salesforce/SFR-Embedding-Code-2B_R | SOTA code embeddings (CoIR: 67.4) |
| Text Encoder | Alibaba-NLP/gte-Qwen2-1.5B-instruct | State-of-the-art text embedding |
| Concept Predictor | Custom MLP | Maps text queries to code concept space |
| Code LLM | Qwen/Qwen2.5-Coder-32B-Instruct | High-performance code generation |
concept_predictor.pt: PyTorch weights for the concept predictor MLP.concept_predictor.gguf: GGUF format for edge deployment (llama.cpp/LM Studio).concept_bank.pt: Pre-computed embeddings for the concept retrieval bank.1# Load the concept predictor
2import torch
3checkpoint = torch.load("concept_predictor.pt")
4# ... (See Colab notebook for full implementation)