nayohan commited on
Commit
be7e81a
1 Parent(s): ee91329

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -4
README.md CHANGED
@@ -34,24 +34,51 @@ model = AutoModelForCausalLM.from_pretrained(
34
  To generate text, use the following Python code:
35
 
36
  ```python
37
- text = """
 
 
 
 
38
  You will be shown dialogues between Speaker 1 and Speaker 2. Please read and understand given Dialogue Session,
39
- then complete the task under the guidance of Task Introduction.\n\n
40
  Context: {context}
41
  Dialogue Session: {diaogues}
42
  Task Introduction: After reading the Dialogue Session, please create an appropriate response in the parts marked ###.
43
  Task Result:
44
  """
45
- inputs = tokenizer(text, return_tensors="pt")
46
 
47
  outputs = model.generate(**inputs, max_new_tokens=64)
48
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))
 
49
  ```
50
 
51
  ```
52
- # examples
53
  {context}: A New CCn Inverter Circuit For AMLCD Panels Results In Significantly Higher Efficiency And Brightness Mehmet K. Nalbant Linfinity Microelectronics 11861 Western Ave., Garden Grove, CA 92641 Tel: (714) 898-8121 Fax: (714) 893-2570 Abstract - The paper will discuss a new CCFL inverter that is based on a new control technique named the Current Synchronous Zero Voltage Switching (CS-ZVS) topology. This topology enables the design of very eficient dimmable CCFL inverter
54
  {diaogues}: Speaker 1: What is the name of the new control technique used in the CCFL inverter?\nSpeaker 2: The new control technique is called Current Synchronous Zero Voltage Switching (CS-ZVS) topology.\nSpeaker 1: Can you tell me more about the CS-ZVS topology?\nSpeaker 2: Sure! The CS-ZVS topology is a new control technique that allows for the design of highly efficient and dimmable CCFL inverters.\nSpeaker 1: That sounds impressive. How does it achieve higher efficiency and brightness?\nSpeaker 2: Well, the CS-ZVS topology synchronizes the switching of the inverter with the current flow, resulting in lower losses and improved performance.\nSpeaker 1: I see. So, is this new CCFL inverter already available in the market?\nSpeaker 2: Yes, it is. It was developed by Linfinity Microelectronics and is currently being used in AMLCD panels to improve their efficiency and brightness.\nSpeaker 1: That's amazing. I'm sure this new inverter will be very popular in the market.\nSpeaker 2: ###
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  ```
56
 
57
  ### **License**
 
34
  To generate text, use the following Python code:
35
 
36
  ```python
37
+ # SYSTEM PROMPT
38
+ context="A New CCn Inverter Circuit For AMLCD Panels Results In Significantly Higher Efficiency And Brightness Mehmet K. Nalbant Linfinity Microelectronics 11861 Western Ave., Garden Grove, CA 92641 Tel: (714) 898-8121 Fax: (714) 893-2570 Abstract - The paper will discuss a new CCFL inverter that is based on a new control technique named the Current Synchronous Zero Voltage Switching (CS-ZVS) topology. This topology enables the design of very eficient dimmable CCFL inverter"
39
+ diaogues= "Speaker 1: What is the name of the new control technique used in the CCFL inverter?\nSpeaker 2: The new control technique is called Current Synchronous Zero Voltage Switching (CS-ZVS) topology.\nSpeaker 1: Can you tell me more about the CS-ZVS topology?\nSpeaker 2: Sure! The CS-ZVS topology is a new control technique that allows for the design of highly efficient and dimmable CCFL inverters.\nSpeaker 1: That sounds impressive. How does it achieve higher efficiency and brightness?\nSpeaker 2: Well, the CS-ZVS topology synchronizes the switching of the inverter with the current flow, resulting in lower losses and improved performance.\nSpeaker 1: I see. So, is this new CCFL inverter already available in the market?\nSpeaker 2: Yes, it is. It was developed by Linfinity Microelectronics and is currently being used in AMLCD panels to improve their efficiency and brightness.\nSpeaker 1: That's amazing. I'm sure this new inverter will be very popular in the market.\nSpeaker 2: ###"
40
+
41
+ text = f"""
42
  You will be shown dialogues between Speaker 1 and Speaker 2. Please read and understand given Dialogue Session,
43
+ then complete the task under the guidance of Task Introduction.\n
44
  Context: {context}
45
  Dialogue Session: {diaogues}
46
  Task Introduction: After reading the Dialogue Session, please create an appropriate response in the parts marked ###.
47
  Task Result:
48
  """
49
+ inputs = tokenizer(text, return_tensors="pt").to('cuda')
50
 
51
  outputs = model.generate(**inputs, max_new_tokens=64)
52
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))
53
+
54
  ```
55
 
56
  ```
57
+ # USER INPUT:
58
  {context}: A New CCn Inverter Circuit For AMLCD Panels Results In Significantly Higher Efficiency And Brightness Mehmet K. Nalbant Linfinity Microelectronics 11861 Western Ave., Garden Grove, CA 92641 Tel: (714) 898-8121 Fax: (714) 893-2570 Abstract - The paper will discuss a new CCFL inverter that is based on a new control technique named the Current Synchronous Zero Voltage Switching (CS-ZVS) topology. This topology enables the design of very eficient dimmable CCFL inverter
59
  {diaogues}: Speaker 1: What is the name of the new control technique used in the CCFL inverter?\nSpeaker 2: The new control technique is called Current Synchronous Zero Voltage Switching (CS-ZVS) topology.\nSpeaker 1: Can you tell me more about the CS-ZVS topology?\nSpeaker 2: Sure! The CS-ZVS topology is a new control technique that allows for the design of highly efficient and dimmable CCFL inverters.\nSpeaker 1: That sounds impressive. How does it achieve higher efficiency and brightness?\nSpeaker 2: Well, the CS-ZVS topology synchronizes the switching of the inverter with the current flow, resulting in lower losses and improved performance.\nSpeaker 1: I see. So, is this new CCFL inverter already available in the market?\nSpeaker 2: Yes, it is. It was developed by Linfinity Microelectronics and is currently being used in AMLCD panels to improve their efficiency and brightness.\nSpeaker 1: That's amazing. I'm sure this new inverter will be very popular in the market.\nSpeaker 2: ###
60
+
61
+ # OUTPUT:
62
+ nayohan/corningQA-llama2-13b-chat: Yes, we are confident that it will revolutionize the CCFL inverter market.
63
+ ```
64
+
65
+
66
+ ### **Full example**
67
+ ```
68
+ Context: A New CCn Inverter Circuit For AMLCD Panels Results In Significantly Higher Efficiency And Brightness Mehmet K. Nalbant Linfinity Microelectronics 11861 Western Ave., Garden Grove, CA 92641 Tel: (714) 898-8121 Fax: (714) 893-2570 Abstract - The paper will discuss a new CCFL inverter that is based on a new control technique named the Current Synchronous Zero Voltage Switching (CS-ZVS) topology. This topology enables the design of very eficient dimmable CCFL inverter
69
+ Dialogue Session: Speaker 1: What is the name of the new control technique used in the CCFL inverter?
70
+ Speaker 2: The new control technique is called Current Synchronous Zero Voltage Switching (CS-ZVS) topology.
71
+ Speaker 1: Can you tell me more about the CS-ZVS topology?
72
+ Speaker 2: Sure! The CS-ZVS topology is a new control technique that allows for the design of highly efficient and dimmable CCFL inverters.
73
+ Speaker 1: That sounds impressive. How does it achieve higher efficiency and brightness?
74
+ Speaker 2: Well, the CS-ZVS topology synchronizes the switching of the inverter with the current flow, resulting in lower losses and improved performance.
75
+ Speaker 1: I see. So, is this new CCFL inverter already available in the market?
76
+ Speaker 2: Yes, it is. It was developed by Linfinity Microelectronics and is currently being used in AMLCD panels to improve their efficiency and brightness.
77
+ Speaker 1: That's amazing. I'm sure this new inverter will be very popular in the market.
78
+ Speaker 2: ###
79
+ Task Introduction: After reading the Dialogue Session, please create an appropriate response in the parts marked ###.
80
+ Task Result:
81
+ Yes, we are confident that it will revolutionize the CCFL inverter market.
82
  ```
83
 
84
  ### **License**