You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+96-98Lines changed: 96 additions & 98 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,13 @@ With multilingual capabilities and advanced configuration options, it ensures pr
27
27
As a newbie, I created Gemma Template based on what I read and learned from the following sources:
28
28
29
29
- Google Gemma Cookbook: [Advanced Prompting Techniques](https://github.com/google-gemini/gemma-cookbook/blob/main/Gemma/Advanced_Prompting_Techniques.ipynb)
30
-
- Google Gemma Cookbook: [Finetune_with_LLaMA_Factory](https://github.com/google-gemini/gemma-cookbook/blob/main/Gemma/Finetune_with_LLaMA_Factory.ipynb)
31
-
- Google Gemma Cookbook: [Finetuning Gemma for Function Calling](https://github.com/google-gemini/gemma-cookbook/blob/main/Gemma/Finetuning_Gemma_for_Function_Calling.ipynb)
30
+
- Google Gemma Cookbook: [Finetune with LLaMA Factory](https://github.com/google-gemini/gemma-cookbook/blob/main/Gemma/Finetune_with_LLaMA_Factory.ipynb)
31
+
- Google Gemma Cookbook: [Fine tuning Gemma for Function Calling](https://github.com/google-gemini/gemma-cookbook/blob/main/Gemma/Finetuning_Gemma_for_Function_Calling.ipynb)
description="Gemma: Introducing new state-of-the-art open models.",
109
-
document="Gemma open models are built from the same research and technology as Gemini models. Gemma 2 comes in 2B, 9B and 27B and Gemma 1 comes in 2B and 7B sizes.",
110
156
main_points=["Main point 1", "Main point 2"],
111
157
categories=["Artificial Intelligence", "Gemma"],
112
158
tags=["AI", "LLM", "Google"],
159
+
document="Gemma open models are built from the same research and technology as Gemini models. Gemma 2 comes in 2B, 9B and 27B and Gemma 1 comes in 2B and 7B sizes.",
113
160
output="A new family of open language models demonstrating strong performance across academic benchmarks for language understanding, reasoning, and safety.",
114
161
max_hidden_words=.1, # set 0 if you don't want to hide words.
115
162
min_chars_length=2, # Minimum character of a word, used to create unigrams, bigrams, and trigrams. Default is 2.
116
-
max_chars_length=0, # Maximum character of a word, used to create unigrams, bigrams and trigrams.. Default is 0.
117
-
) # remove kwargs if not used.
163
+
max_chars_length=0, # Maximum character of a word, used to create unigrams, bigrams and trigrams. Default is 0.
164
+
) # remove kwargs if not used.
165
+
118
166
print(response)
119
167
```
120
168
121
169
### Output:
122
170
123
171
```text
124
172
<start_of_turn>user
125
-
126
173
You are a multilingual professional writer.
127
174
128
-
Rewrite the text to be more search engine friendly. Incorporate relevant keywords naturally, improve readability, and ensure it aligns with SEO best practices.
129
-
130
175
# Role:
131
176
You are a highly skilled professional content writer, linguistic analyst, and multilingual expert specializing in structured writing and advanced text processing.
132
177
133
178
# Task:
134
179
Your primary objectives are:
135
-
1. Your primary task is to rewrite the provided content into a more structured, professional format that maintains its original intent and meaning.
136
-
2. Enhance vocabulary comprehension by analyzing text with unigrams (single words), bigrams (two words), and trigrams (three words).
137
-
3. Ensure your response adheres strictly to the prescribed structure format.
138
-
4. Respond in the primary language of the input text unless alternative instructions are explicitly given.
180
+
1. Simplification: Rewrite the input text or document to ensure it is accessible and easy to understand for a general audience while preserving the original meaning and essential details.
181
+
2. Lexical and Grammatical Analysis: Analyze and refine vocabulary and grammar using unigrams (single words), bigrams (two words), and trigrams (three words) to enhance readability and depth.
182
+
3. Structure and Organization: Ensure your response adheres strictly to the prescribed structure format.
183
+
4. Language Consistency: Respond in the same language as the input text unless explicitly directed otherwise.
139
184
140
-
# Additional Expectations:
185
+
# Additional Guidelines:
141
186
1. Provide a rewritten, enhanced version of the input text, ensuring professionalism, clarity, and improved structure.
142
187
2. Focus on multilingual proficiency, using complex vocabulary, grammar to improve your responses.
143
188
3. Preserve the context and cultural nuances of the original text when rewriting.
144
189
145
-
Topics: Artificial Intelligence, Gemma
146
-
Keywords: AI, LLM, Google
147
-
148
190
# Text Analysis:
149
191
Example 1: Unigrams (single words)
150
192
and => English
@@ -165,88 +207,44 @@ Text Analysis 3: Trigrams further validate the linguistic analysis and the neces
165
207
# Conclusion of Text Analysis:
166
208
The linguistic analysis confirms the text is predominantly in English. Consequently, the response should be structured and written in English to align with the original text and context.
167
209
210
+
# Input Text:
211
+
Rewrite the input text or document to highlight its unique value proposition while ensuring it ranks well for targeted keywords.
212
+
168
213
# Response Structure Format:
169
214
You must follow the response structure:
170
-
**Custom Title (Title):** Rewrite the title to reflect the main keyword and topic.
171
-
**Custom Description (Meta Description):** Rewrite the description with a bold claim or statistic to grab attention.
172
-
**Custom Article (Edit Article):** Reimagine this article with a more engaging and creative tone. Add metaphors, analogies, or storytelling elements to make it more captivating for readers.
173
-
**Custom Main Points (Highlights):** Summarize the main ideas into concise, actionable key points for added context to make them more engaging.
174
-
**Custom Categories (Topics):** Assign appropriate categories to the article based text or target audience.
175
-
**Custom Tags (Keywords):** Focus use tags that reflect the article’s subtopics or themes for better SEO.
215
+
216
+
**Custom Title (Title):** Rewrite the title to maximize clarity, appeal, and relevance to the content.
217
+
**Custom Description (Description):** Create a description focusing on how the article addresses a common problem or challenge readers face.
218
+
**Custom Article (Article):** Rewrite the input text or document with an authoritative tone, incorporating credible sources, data, and references to boost trustworthiness and SEO ranking.
219
+
**Custom Main Points (Main Points):** Ensure all key points flow logically from one to the next.
220
+
**Custom Categories (Categories):** Use categories that align with similar articles on the topic and improve SEO and discoverability.
221
+
**Custom Tags (Tags):** Rewrite tags to make them more specific and targeted.
176
222
177
223
By adhering to this format, the response will maintain linguistic integrity while enhancing professionalism, structure and alignment with user expectations.
178
224
179
225
# Text:
180
-
Gemma open models are built from the same research _____ technology as Gemini models. Gemma 2 comes in 2B, 9B and 27B _____ Gemma 1 comes in 2B _____ 7B sizes.
181
-
182
-
<end_of_turn>
226
+
Gemma open models are built _____ the same _____ and technology as Gemini models. Gemma 2 comes in 2B, 9B _____ 27B and Gemma 1 comes in 2B and 7B sizes.<end_of_turn>
183
227
<start_of_turn>model
184
-
185
-
## **Custom Title**:
228
+
## **Custom Title:**
186
229
### Gemma open models
187
230
188
-
## **Custom Description**:
231
+
## **Custom Description:**
189
232
Gemma: Introducing new state-of-the-art open models.
190
233
191
-
## **Custom Article**:
234
+
## **Custom Article:**
192
235
A new family of open language models demonstrating strong performance across academic benchmarks for language understanding, reasoning, and safety.
193
236
194
-
## **Custom Main Points**:
195
-
- Main point 1
196
-
- Main point 2
237
+
## **Custom Main Points:**
238
+
* Main point 1
239
+
* Main point 2
197
240
198
-
## **Custom Categories**:
199
-
- Artificial Intelligence
200
-
- Gemma
201
-
202
-
## **Custom Tags**:
203
-
- AI
204
-
- LLM
205
-
- Google<end_of_turn>
206
-
207
-
```
208
-
209
-
## Load Dataset
210
-
Returns: Dataset: A Hugging Face Dataset or DatasetDict object containing the processed prompts.
0 commit comments