onkarsus13 commited on
Commit
e69dbae
·
verified ·
1 Parent(s): 0bb290a

Add model card

Browse files
Files changed (1) hide show
  1. README.md +54 -0
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3-2B-Instruct
4
+ tags:
5
+ - qwen3
6
+ - text-generation
7
+ - peft
8
+ - lora
9
+ - trl
10
+ - sft
11
+ - smiles
12
+ library_name: transformers
13
+ ---
14
+
15
+ # Qwens_SFT
16
+
17
+ This repository contains a model artifact fine-tuned from `Qwen/Qwen3-2B-Instruct`.
18
+
19
+ The model was trained to take a SMILES string and generate JSON with:
20
+
21
+ - `failure_summary_for_editing`
22
+ - `failure_properties`
23
+ - `failure_properties_display`
24
+ - `editing_directions`
25
+
26
+ Training data source: `/home/onkarks2/transformers/fallen_angel_with_properties.csv`
27
+
28
+ ## Example Prompt
29
+
30
+ ```text
31
+ Given the SMILES string below, generate the clinical failure editing information.
32
+
33
+ SMILES: Cc1cc(C)c(N)c(n1)C#Cc1cccc(F)c1
34
+
35
+ Return valid JSON with exactly these keys:
36
+ - "failure_summary_for_editing"
37
+ - "failure_properties"
38
+ - "failure_properties_display"
39
+ - "editing_directions"
40
+ ```
41
+
42
+ ## Loading A LoRA Adapter
43
+
44
+ ```python
45
+ from peft import PeftModel
46
+ from transformers import AutoModelForCausalLM, AutoTokenizer
47
+
48
+ base_model = "Qwen/Qwen3-2B-Instruct"
49
+ adapter_id = "onkarsus13/Qwens_SFT"
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained(adapter_id)
52
+ model = AutoModelForCausalLM.from_pretrained(base_model, torch_dtype="auto", device_map="auto")
53
+ model = PeftModel.from_pretrained(model, adapter_id)
54
+ ```