Arthur Samuel Galego Panucci FIgueiredo commited on
Commit
a9fdb63
·
verified ·
1 Parent(s): d644072

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +175 -74
  2. adapter_config.json +43 -0
  3. adapter_model.safetensors +3 -0
README.md CHANGED
@@ -1,105 +1,206 @@
1
  ---
2
- license: apache-2.0
3
- language:
4
- - pt
5
- - en
6
- - hi
7
- - fr
8
- base_model:
9
- - google/gemma-3-270m-it
10
- pipeline_tag: text-generation
11
  library_name: peft
 
12
  tags:
13
- - 300mparams
14
- - finetuned
15
- - text-generation-inference
16
  ---
17
 
18
- # DogeAI-v1.0 (Gemma-3-270M-it LoRA Fine-Tuned)
19
 
20
- Welcome to **DogeAI-v1.0**, a **LoRA fine-tuned version of Gemma-3-270M-it**, created by **Arthur**! 🚀
21
 
22
- This model is trained to answer questions, perform text tasks, and chat naturally, mainly in **Portuguese**, but it is also **multilingual** and can handle inputs in other languages.
23
 
24
- ⚠️ **Warning:** While it performs many tasks very well, it sometimes **hallucinates facts**. Always double-check critical information.
25
 
26
- ---
27
 
28
- ## 🧠 About the Model
29
 
30
- - **Base:** Gemma-3-270M-it
31
- - **Fine-tuning:** LoRA on a custom Portuguese dataset
32
- - **Capabilities:**
33
- - Natural conversation in Portuguese
34
- - Answering general questions
35
- - Creating summaries, explanatory texts, and small code snippets
36
- - Handling multiple languages (English, Spanish, etc.)
37
- - **Limitations:**
38
- - May invent facts or answers (hallucinations)
39
- - Not 100% reliable for critical data
40
- - Best used with clear and concise prompts
41
 
42
- ---
43
 
44
- ## 📌 Recommended Prompt Format
45
 
46
- For best results, use the following format:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
- <bos> <start_of_turn>user [Your question or message here] <start_of_turn>model ```
49
- <bos> → start of prompt
50
 
51
- <start_of_turn>user> indicates user input
52
 
53
- <start_of_turn>model> indicates where the model should generate a response
54
 
55
- Example:
56
 
57
- php-template
58
- Copiar código
59
- <bos>
60
- <start_of_turn>user
61
- What is the capital of Brazil?
62
- <start_of_turn>model
63
- The model will respond with something like:
64
- Brasília.
65
 
66
- ⚡ How to Use
67
- python
68
- -----
69
- from transformers import AutoTokenizer, AutoModelForCausalLM
70
- from peft import PeftModel
71
- import torch
72
 
73
- BASE_MODEL = "loboGOAT/DogeAI-v1.0"
74
 
75
- tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL)
76
- model = AutoModelForCausalLM.from_pretrained(BASE_MODEL)
77
- model = PeftModel.from_pretrained(model, BASE_MODEL)
78
- model.eval()
79
 
80
- DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
81
- model.to(DEVICE)
82
 
83
- # Example generation
84
- prompt = "<bos>\n<start_of_turn>user\nWhat is the capital of Brazil?\n<start_of_turn>model\n"
85
- inputs = tokenizer(prompt, return_tensors="pt").to(DEVICE)
86
- output = model.generate(**inputs, max_new_tokens=150, do_sample=True, temperature=0.7)
87
- response = tokenizer.decode(output[0], skip_special_tokens=True)
88
- print(response.split("<start_of_turn>model")[-1].strip())
89
- 💡 Recommendations
90
- Use short and clear prompts for more reliable answers.
91
 
92
- Avoid asking highly specific factual questions that require historical or scientific accuracy; the model may hallucinate.
93
 
94
- Great for web projects using Flask, FastAPI, or Gradio.
95
 
96
- Multilingual: Portuguese is most accurate; other languages work but may mix or slightly confuse outputs.
97
 
98
- 📝 About the Creator
99
- Creator: Arthur Samuel
100
 
101
- Young game and AI developer from Brazil
102
 
103
- Experienced with fine-tuning models, LoRA, and chatbot systems
 
104
 
105
- Passionate about turning AIs into fun and useful tools for everyone
 
1
  ---
2
+ base_model: google/gemma-3-270m-it
 
 
 
 
 
 
 
 
3
  library_name: peft
4
+ pipeline_tag: text-generation
5
  tags:
6
+ - base_model:adapter:google/gemma-3-270m-it
7
+ - lora
8
+ - transformers
9
  ---
10
 
11
+ # Model Card for Model ID
12
 
13
+ <!-- Provide a quick summary of what the model is/does. -->
14
 
 
15
 
 
16
 
17
+ ## Model Details
18
 
19
+ ### Model Description
20
 
21
+ <!-- Provide a longer summary of what this model is. -->
 
 
 
 
 
 
 
 
 
 
22
 
 
23
 
 
24
 
25
+ - **Developed by:** [More Information Needed]
26
+ - **Funded by [optional]:** [More Information Needed]
27
+ - **Shared by [optional]:** [More Information Needed]
28
+ - **Model type:** [More Information Needed]
29
+ - **Language(s) (NLP):** [More Information Needed]
30
+ - **License:** [More Information Needed]
31
+ - **Finetuned from model [optional]:** [More Information Needed]
32
+
33
+ ### Model Sources [optional]
34
+
35
+ <!-- Provide the basic links for the model. -->
36
+
37
+ - **Repository:** [More Information Needed]
38
+ - **Paper [optional]:** [More Information Needed]
39
+ - **Demo [optional]:** [More Information Needed]
40
+
41
+ ## Uses
42
+
43
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
44
+
45
+ ### Direct Use
46
+
47
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
48
+
49
+ [More Information Needed]
50
+
51
+ ### Downstream Use [optional]
52
+
53
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
54
+
55
+ [More Information Needed]
56
+
57
+ ### Out-of-Scope Use
58
+
59
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -
60
+
61
+
62
+ ## Bias, Risks, and Limitations
63
+
64
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
65
+
66
+ [More Information Needed]
67
+
68
+ ### Recommendations
69
+
70
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
71
+
72
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
73
+
74
+ ## How to Get Started with the Model
75
+
76
+ Use the code below to get started with the model.
77
+
78
+ [More Information Needed]
79
+
80
+ ## Training Details
81
+
82
+ ### Training Data
83
+
84
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
85
+
86
+ [More Information Needed]
87
+
88
+ ### Training Procedure
89
+
90
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
91
+
92
+ #### Preprocessing [optional]
93
+
94
+ [More Information Needed]
95
+
96
+
97
+ #### Training Hyperparameters
98
+
99
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
100
+
101
+ #### Speeds, Sizes, Times [optional]
102
+
103
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
104
+
105
+ [More Information Needed]
106
+
107
+ ## Evaluation
108
+
109
+ <!-- This section describes the evaluation protocols and provides the results. -->
110
+
111
+ ### Testing Data, Factors & Metrics
112
+
113
+ #### Testing Data
114
+
115
+ <!-- This should link to a Dataset Card if possible. -->
116
+
117
+ [More Information Needed]
118
+
119
+ #### Factors
120
+
121
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
122
+
123
+ [More Information Needed]
124
+
125
+ #### Metrics
126
+
127
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
128
+
129
+ [More Information Needed]
130
+
131
+ ### Results
132
+
133
+ [More Information Needed]
134
+
135
+ #### Summary
136
+
137
+
138
+
139
+ ## Model Examination [optional]
140
+
141
+ <!-- Relevant interpretability work for the model goes here -->
142
+
143
+ [More Information Needed]
144
+
145
+ ## Environmental Impact
146
+
147
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
148
+
149
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
150
+
151
+ - **Hardware Type:** [More Information Needed]
152
+ - **Hours used:** [More Information Needed]
153
+ - **Cloud Provider:** [More Information Needed]
154
+ - **Compute Region:** [More Information Needed]
155
+ - **Carbon Emitted:** [More Information Needed]
156
+
157
+ ## Technical Specifications [optional]
158
+
159
+ ### Model Architecture and Objective
160
+
161
+ [More Information Needed]
162
+
163
+ ### Compute Infrastructure
164
+
165
+ [More Information Needed]
166
+
167
+ #### Hardware
168
+
169
+ [More Information Needed]
170
+
171
+ #### Software
172
 
173
+ [More Information Needed]
 
174
 
175
+ ## Citation [optional]
176
 
177
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
178
 
179
+ **BibTeX:**
180
 
181
+ [More Information Needed]
 
 
 
 
 
 
 
182
 
183
+ **APA:**
 
 
 
 
 
184
 
185
+ [More Information Needed]
186
 
187
+ ## Glossary [optional]
 
 
 
188
 
189
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
 
190
 
191
+ [More Information Needed]
 
 
 
 
 
 
 
192
 
193
+ ## More Information [optional]
194
 
195
+ [More Information Needed]
196
 
197
+ ## Model Card Authors [optional]
198
 
199
+ [More Information Needed]
 
200
 
201
+ ## Model Card Contact
202
 
203
+ [More Information Needed]
204
+ ### Framework versions
205
 
206
+ - PEFT 0.18.0
adapter_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "google/gemma-3-270m-it",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 32,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.1,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.0",
27
+ "qalora_group_size": 16,
28
+ "r": 16,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "k_proj",
33
+ "v_proj",
34
+ "o_proj",
35
+ "q_proj"
36
+ ],
37
+ "target_parameters": null,
38
+ "task_type": "CAUSAL_LM",
39
+ "trainable_token_indices": null,
40
+ "use_dora": false,
41
+ "use_qalora": false,
42
+ "use_rslora": false
43
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e68e3369505cb9ba99d12ea5da5e492cd74ea29927874d6a23a40a48abe0069d
3
+ size 5917192