Views
No views yet
deepseek-ai/deepseek-coder-7b-instruct-v1.5| Metric | Value |
|---|---|
| Trained candidates | 828 |
| Valid rate (compiles + trains) | 49.5% |
| Mean 1-epoch accuracy | 33.9% (±7.9% SD across cycles) |
| ≥40% accuracy rate | 16.6% |
| Novel architectures admitted to LEMUR | 83 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4# Load base model
5base_model = AutoModelForCausalLM.from_pretrained(
6 "deepseek-ai/deepseek-coder-7b-instruct-v1.5",
7 torch_dtype="auto",
8 device_map="auto"
9)
10tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/deepseek-coder-7b-instruct-v1.5")
11
12# Load LoRA adapter
13model = PeftModel.from_pretrained(base_model, "ABrain/Delta-NAS-DeepSeek-Coder-7B")
14
15# Generate a diff to modify a baseline architecture
16prompt = """Given the following PyTorch neural network baseline:
17[baseline code here]
18
19Generate a unified diff that creates a novel architecture variant."""
20
21inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
22outputs = model.generate(**inputs, max_new_tokens=512)
23print(tokenizer.decode(outputs[0], skip_special_tokens=True))1@article{deltanas2026,
2 title={Delta-Based Neural Architecture Search: LLM Fine-Tuning via Code Diffs},
3 author={Adhikari, Santosh and Ignatov, Dmitry},
4 year={2026}
5}