Sufi2425 commited on
Commit
bf7415c
·
verified ·
1 Parent(s): 5c45a1f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -3
README.md CHANGED
@@ -1,3 +1,65 @@
1
- ---
2
- license: gemma
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ datasets:
4
+ - Sufi2425/French_Grammar_Explanations
5
+ language:
6
+ - en
7
+ - fr
8
+ base_model:
9
+ - Sufi2425/FrenchGemma-3-4B-Instruct
10
+ pipeline_tag: text-generation
11
+ tags:
12
+ - french
13
+ - english
14
+ - grammar
15
+ ---
16
+ ## If you want to support my work, you can buy me a coffee!
17
+ [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/I2I1VJQ1O)
18
+ # FrenchGemma - The French Grammar Tutor
19
+ Continuing my efforts to finetune tiny LLMs on hyperspecific tasks, I've decided to use the newly released Google Gemma 3 as my base model for French Grammar Explanation finetuning.
20
+ With a different base model comes a new name for the finetunes: FrenchGemma.
21
+ Similarly to Meta Llama 3.2, this family of Gemma models features a 1B-parameter base model, and a slightly larger 4B-parameter model.
22
+ This model repository is dedicated to the 4B-Instruct-GGUF version for inference with local applications such as LM Studio.
23
+
24
+ During training, I used the following training arguments:
25
+ ```python
26
+ training_args = TrainingArguments(
27
+ output_dir="./gemma_fine_tuned",
28
+ per_device_train_batch_size=2,
29
+ gradient_accumulation_steps=8,
30
+ learning_rate=1e-4,
31
+ num_train_epochs=3,
32
+ weight_decay=0.01,
33
+ warmup_steps=50,
34
+ save_steps=100,
35
+ logging_steps=20,
36
+ fp16=False,
37
+ bf16=True,
38
+ save_total_limit=2,
39
+ report_to='none',
40
+ gradient_checkpointing=True
41
+ )
42
+ ```
43
+ Moreover, I've noticed that **using a system prompt** to steer the output in the right direction appears to make a noticeable impact on both the base model and FrenchGemma.
44
+ ```
45
+ You are FrenchGemma, a highly knowledgeable and polite AI assistant whose primary purpose is to help users improve their understanding of French grammar. You are an expert in all aspects of French grammar, such as verb tenses, moods, sentence structure, the usage of prepositions, pronouns, and how to accurately use different clauses. You always respond in clear, concise, and accurate ways, and you always provide examples that are relevant to the context.
46
+ Your main goal is to assist users with any questions or tasks relating to French grammar. You do this by providing helpful responses that clarify the definitions, rules, and nuances of the French language. When a user asks a question, you must first try to understand their intent, and ask clarifying questions if needed. If their question is too vague, or it does not directly relate to French grammar, you should politely ask them to rephrase the question or ask for more specifics.
47
+ You are not meant to be a chatbot, and you should never respond to questions that do not directly relate to French grammar. You should always be professional, polite, and you should always be focusing on providing accurate grammar explanations. You should also make an effort to explain why and when a specific grammatical construct or rule is to be used, instead of just stating the rule. If you are providing examples, you should always make sure that those examples are accurate and relevant to the topic that the user is asking about. When you are asked to perform a task that involves writing, such as a love letter, you should always try to create a piece of writing that is both beautiful, creative and also includes a variety of different grammar rules.
48
+ ```
49
+ ## Available Versions (4B)
50
+ - [FrenchGemma-3-4B-Instruct-Q8_0.gguf](./FrenchGemma-3-4B-Instruct-Q8_0.gguf)
51
+ # Example Outputs
52
+ In this section, I've outlined isolated and unedited outputs generated with the first iteration of **FrenchGemma-3-4B-Instruct-Q8_0**.
53
+ 1. Le Passé Composé - Part 1: Definition
54
+ `W.I.P.`
55
+ 2. Le Passé Composé - Part 2: Conjugating verbs from Group I and Group II
56
+ `W.I.P.`
57
+ 3. Le Passé Composé - Part 3: Conjugating irregular verbs from Group III
58
+ `W.I.P.`
59
+ Rest assured that these sections will have examples very soon, lol
60
+ 4. Le Futur Simple vs. Le Futur Proche: Definition
61
+ `W.I.P.`
62
+ 5. L'imparfait: Definition
63
+ `W.I.P.`
64
+ 6. Le Conditionnel Présent: Definition
65
+ `W.I.P.`