Views
No views yet
Qwen/Qwen2.5-Coder-7B-Instruct
to generate UVL (Universal Variability Language) feature models from a domain
description and structural constraints (feature count, cross-tree constraints,
depth, UVL level).UVL_LLM_Guided_Generation benchmark, supervised on the valid (flamapy-
parseable) outputs with prompt masking.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base = "Qwen/Qwen2.5-Coder-7B-Instruct"
5tok = AutoTokenizer.from_pretrained("jagalindo/uvl-qwen2.5-coder-7b-sft-lora")
6model = AutoModelForCausalLM.from_pretrained(base, dtype="bfloat16", device_map="auto")
7model = PeftModel.from_pretrained(model, "jagalindo/uvl-qwen2.5-coder-7b-sft-lora")
8
9messages = [
10 {"role": "system", "content": "You are an expert in Software Product Lines ... generate valid UVL ..."},
11 {"role": "user", "content": "## Your task\nGenerate a valid UVL feature model for ..."},
12]
13inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True).to(model.device)
14out = model.generate(**inputs, max_new_tokens=1536, do_sample=False)
15print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))Qwen/Qwen2.5-Coder-7B-Instruct:jagalindo/uvl-qwen2.5-coder-7b-sft-lora — this adapter: SFT LoRA (apply on the full-precision base; recommended checkpoint)jagalindo/uvl-qwen2.5-coder-7b-sft-merged — merged bf16 full model (CUDA-ready, transformers)jagalindo/uvl-qwen2.5-coder-7b-sft — fused full model (MLX 4-bit, runs standalone via mlx-lm)jagalindo/uvl-qwen2.5-coder-7b-dpo-lora — DPO LoRA adapter (experimental; regressed vs SFT)