Update README.md
Browse files
README.md
CHANGED
@@ -111,8 +111,10 @@ pipeline = transformers.pipeline(
|
|
111 |
model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
|
112 |
)
|
113 |
|
114 |
-
messages = [{"role": "user", "content": "Explain what is
|
115 |
prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
116 |
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
117 |
print(outputs[0]["generated_text"])
|
118 |
-
```
|
|
|
|
|
|
111 |
model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
|
112 |
)
|
113 |
|
114 |
+
messages = [{"role": "user", "content": "Explain what is data science."}]
|
115 |
prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
116 |
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
117 |
print(outputs[0]["generated_text"])
|
118 |
+
```
|
119 |
+
|
120 |
+
"Data science is an interdisciplinary field that combines mathematics, statistics, computer science, and domain expertise in order to extract meaningful insights and knowledge from structured and unstructured data. It involves the process of collecting, cleaning, transforming, analyzing, and visualizing data in order to identify patterns, trends, and relationships that can inform decision-making and drive business strategies. Data scientists use various tools and techniques, such as machine learning, deep learning, and natural language processing, to develop predictive models, optimize processes, and automate decision-making. The field of data science is rapidly evolving as more and more data is generated and the demand for data-driven insights continues to grow."
|