Views
No views yet
mistralai/Mistral-7B-Instruct-v0.3| Metric | Value |
|---|---|
| Trained candidates | 733 |
| Valid rate (compiles + trains) | 66.4% |
| Mean 1-epoch accuracy | 50.0% (±8.1% SD across cycles) |
| ≥40% accuracy rate | 58.4% |
| Novel architectures admitted to LEMUR | 68 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4# Load base model
5base_model = AutoModelForCausalLM.from_pretrained(
6 "mistralai/Mistral-7B-Instruct-v0.3",
7 torch_dtype="auto",
8 device_map="auto"
9)
10tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
11
12# Load LoRA adapter
13model = PeftModel.from_pretrained(base_model, "ABrain/Delta-NAS-Mistral-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}