Update README.md
Browse files
README.md
CHANGED
|
@@ -12,13 +12,13 @@ inference:
|
|
| 12 |
max_length: 64
|
| 13 |
widget:
|
| 14 |
- text: >-
|
| 15 |
-
Learn to build generative AI applications with an expert AWS instructor with the 2-day Developing Generative AI Applications on AWS course.
|
| 16 |
example_title: AWS course
|
| 17 |
- text: >-
|
| 18 |
-
In healthcare, Generative AI can help generate synthetic medical data to train machine learning models, develop new drug candidates, and design clinical trials.
|
| 19 |
example_title: Generative AI
|
| 20 |
- text: >-
|
| 21 |
-
By leveraging prior model training through transfer learning, fine-tuning
|
| 22 |
can reduce the amount of expensive computing power and labeled data needed
|
| 23 |
to obtain large models tailored to niche use cases and business needs.
|
| 24 |
example_title: Fine Tuning
|
|
@@ -52,7 +52,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
| 52 |
tokenizer = AutoTokenizer.from_pretrained("Ateeqq/Text-Rewriter-Paraphraser", token='YOUR_TOKEN')
|
| 53 |
model = AutoModelForSeq2SeqLM.from_pretrained("Ateeqq/Text-Rewriter-Paraphraser", token='YOUR_TOKEN')
|
| 54 |
|
| 55 |
-
text = "Data science is a field that deals with extracting knowledge and insights from data. "
|
| 56 |
|
| 57 |
inputs = tokenizer(text, return_tensors="pt")
|
| 58 |
|
|
|
|
| 12 |
max_length: 64
|
| 13 |
widget:
|
| 14 |
- text: >-
|
| 15 |
+
paraphraser: Learn to build generative AI applications with an expert AWS instructor with the 2-day Developing Generative AI Applications on AWS course.
|
| 16 |
example_title: AWS course
|
| 17 |
- text: >-
|
| 18 |
+
paraphraser: In healthcare, Generative AI can help generate synthetic medical data to train machine learning models, develop new drug candidates, and design clinical trials.
|
| 19 |
example_title: Generative AI
|
| 20 |
- text: >-
|
| 21 |
+
paraphraser: By leveraging prior model training through transfer learning, fine-tuning
|
| 22 |
can reduce the amount of expensive computing power and labeled data needed
|
| 23 |
to obtain large models tailored to niche use cases and business needs.
|
| 24 |
example_title: Fine Tuning
|
|
|
|
| 52 |
tokenizer = AutoTokenizer.from_pretrained("Ateeqq/Text-Rewriter-Paraphraser", token='YOUR_TOKEN')
|
| 53 |
model = AutoModelForSeq2SeqLM.from_pretrained("Ateeqq/Text-Rewriter-Paraphraser", token='YOUR_TOKEN')
|
| 54 |
|
| 55 |
+
text = "paraphraser:" + "Data science is a field that deals with extracting knowledge and insights from data. "
|
| 56 |
|
| 57 |
inputs = tokenizer(text, return_tensors="pt")
|
| 58 |
|