Update README.md
Browse files
README.md
CHANGED
@@ -34,15 +34,18 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
34 |
To generate text, use the following Python code:
|
35 |
|
36 |
```python
|
37 |
-
|
|
|
|
|
|
|
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
|
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))
|
|
|
34 |
To generate text, use the following Python code:
|
35 |
|
36 |
```python
|
37 |
+
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"
|
38 |
+
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: ###"
|
39 |
+
|
40 |
+
text = f"""
|
41 |
You will be shown dialogues between Speaker 1 and Speaker 2. Please read and understand given Dialogue Session,
|
42 |
+
then complete the task under the guidance of Task Introduction.\n
|
43 |
Context: {context}
|
44 |
Dialogue Session: {diaogues}
|
45 |
Task Introduction: After reading the Dialogue Session, please create an appropriate response in the parts marked ###.
|
46 |
Task Result:
|
47 |
"""
|
48 |
+
inputs = tokenizer(text, return_tensors="pt").to('cuda')
|
49 |
|
50 |
outputs = model.generate(**inputs, max_new_tokens=64)
|
51 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|