This is a Code2LoRA-generated LoRA adapter conditioned on the
lightningdevkit/rust-lightning repository.
It was generated with the static direct Code2LoRA checkpoint from
code2lora/code2lora-direct, using Qwen/Qwen3-Embedding-0.6B for repository
embeddings and targeting Qwen/Qwen2.5-Coder-1.5B.
This is not a conventional supervised fine-tune on rust-lightning examples. It is a repository-conditioned adapter generated by the Code2LoRA hypernetwork. The released Code2LoRA checkpoint was trained/evaluated on Python repositories, so Rust/LDK quality should be treated as experimental.
For chat use, prefer the GGUF instruct variant in
benthecarman/rust-lightning-code2lora-gguf.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "Qwen/Qwen2.5-Coder-1.5B"
adapter = "benthecarman/rust-lightning-code2lora-adapter"
tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
model = PeftModel.from_pretrained(model, adapter)
lightningdevkit/rust-lightning5049f7c02code2lora/code2lora-direct