YuvanKumar commited on
Commit
871623d
1 Parent(s): c71e492

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -1
README.md CHANGED
@@ -5,7 +5,29 @@ library_name: peft
5
 
6
  # Model Card for Model ID
7
 
8
- <!-- Provide a quick summary of what the model is/does. -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
 
11
 
 
5
 
6
  # Model Card for Model ID
7
 
8
+ to genrate tabluar data give instruction like
9
+
10
+ FastLanguageModel.for_inference(model) # Enable native 2x faster inference
11
+ inputs = tokenizer(
12
+ [
13
+ alpaca_prompt.format(
14
+ "understand the pattern and functional dependencies in the table given in json format in Input and generate similar table with 5 rows.", # instruction
15
+ """{("category":"A","item_id":"A1","location":"loc-001","price":100,"available":true),("category":"A","item_id":"A2","location":"loc-002","price":150,"available":false")},{("category":"B","item_id":"B1","location":"loc-001","price":100,"available":true),("category":"B","item_id":"B2","location":"loc-002","price":150,"available":false")},{("category":"C","item_id":"C1","location":"loc-001","price":100,"available":true),("category":"B","item_id":"B3","location":"loc-002","price":150,"available":false")}""", # input
16
+ "", # output - leave this blank for generation!
17
+ )
18
+ ], return_tensors = "pt").to("cuda")
19
+
20
+ where
21
+ alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides data mentioned in instruction. Write a response and explanation that appropriately completes the request. In the Input section a table is given in form of json format. ( (col1: 1,col2: 2), (col1: 3, col2: 4)) here (col1: 1,col2: 2) is row 1 and (col1: 3, col2: 4)) is row 2 in row 1 col 1 has value 1 and col 2 has value 2.
22
+
23
+ ### Instruction:
24
+ {}
25
+
26
+ ### Input:
27
+ {}
28
+
29
+ ### Output:
30
+ {}"""
31
 
32
 
33