Views
No views yet
Qwen/Qwen2.5-0.5B-Instructadapter_model.safetensors){"action_type":"query_expression","parameters":{"term":"EGFR","dossier_id":"NSCLC"},"reasoning":"..."}{"action_type":"query_expression","parameters":{"database":"GTEx"},"reasoning":"..."}1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
3from peft import PeftModel
4
5base_id = "Qwen/Qwen2.5-0.5B-Instruct"
6adapter_id = "anugrahteesdollar/drugenv-qwen25-05b-lora"
7
8bnb = BitsAndBytesConfig(
9 load_in_4bit=True,
10 bnb_4bit_quant_type="nf4",
11 bnb_4bit_use_double_quant=True,
12 bnb_4bit_compute_dtype=torch.float16,
13)
14
15tok = AutoTokenizer.from_pretrained(base_id, use_fast=True)
16if tok.pad_token is None:
17 tok.pad_token = tok.eos_token
18
19base = AutoModelForCausalLM.from_pretrained(
20 base_id, device_map="auto", quantization_config=bnb, torch_dtype=torch.float16
21)
22model = PeftModel.from_pretrained(base, adapter_id)
23
24## Training Data
25
26Small synthetic instruction dataset embedded directly in a Colab notebook (focused on emitting valid JSON actions for DrugEnv).
27
28## Limitations
29
30This is a hackathon-speed adapter meant to demonstrate formatting/behavior improvements quickly; it is not a full GRPO-trained
31policy.
32
33
34Notes:
35- Remove the invalid tag `base_model:adapter:...` (it can confuse HF parsing).
36- The “Framework versions” line doesn’t need to be in YAML; you can mention it in text if you want. If you do, add a short line
37near the end: “Trained with PEFT 0.19.1.”