lmassaron commited on
Commit
b497f05
·
verified ·
1 Parent(s): b54d875

Training in progress, epoch 1

Browse files
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  base_model: google/gemma-3-1b-it
3
  library_name: transformers
4
- model_name: gemma-3-1B-it-function_calling
5
  tags:
6
  - generated_from_trainer
7
  - trl
@@ -9,7 +9,7 @@ tags:
9
  licence: license
10
  ---
11
 
12
- # Model Card for gemma-3-1B-it-function_calling
13
 
14
  This model is a fine-tuned version of [google/gemma-3-1b-it](https://huggingface.co/google/gemma-3-1b-it).
15
  It has been trained using [TRL](https://github.com/huggingface/trl).
@@ -20,7 +20,7 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
20
  from transformers import pipeline
21
 
22
  question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
- generator = pipeline("text-generation", model="lmassaron/gemma-3-1B-it-function_calling", device="cuda")
24
  output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
  print(output["generated_text"])
26
  ```
@@ -34,11 +34,11 @@ This model was trained with SFT.
34
 
35
  ### Framework versions
36
 
37
- - TRL: 0.17.0
38
- - Transformers: 4.51.3
39
- - Pytorch: 2.6.0+cu124
40
- - Datasets: 3.6.0
41
- - Tokenizers: 0.21.1
42
 
43
  ## Citations
44
 
 
1
  ---
2
  base_model: google/gemma-3-1b-it
3
  library_name: transformers
4
+ model_name: gemma-3-1b-it-function_calling
5
  tags:
6
  - generated_from_trainer
7
  - trl
 
9
  licence: license
10
  ---
11
 
12
+ # Model Card for gemma-3-1b-it-function_calling
13
 
14
  This model is a fine-tuned version of [google/gemma-3-1b-it](https://huggingface.co/google/gemma-3-1b-it).
15
  It has been trained using [TRL](https://github.com/huggingface/trl).
 
20
  from transformers import pipeline
21
 
22
  question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="lmassaron/gemma-3-1b-it-function_calling", device="cuda")
24
  output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
  print(output["generated_text"])
26
  ```
 
34
 
35
  ### Framework versions
36
 
37
+ - TRL: 0.23.0
38
+ - Transformers: 4.56.1
39
+ - Pytorch: 2.8.0
40
+ - Datasets: 4.0.0
41
+ - Tokenizers: 0.22.0
42
 
43
  ## Citations
44
 
adapter_config.json CHANGED
@@ -20,22 +20,25 @@
20
  "megatron_core": "megatron.core",
21
  "modules_to_save": null,
22
  "peft_type": "LORA",
 
23
  "r": 16,
24
  "rank_pattern": {},
25
  "revision": null,
26
  "target_modules": [
27
- "embed_tokens",
 
 
 
28
  "gate_proj",
29
  "down_proj",
30
  "lm_head",
31
- "k_proj",
32
- "v_proj",
33
- "up_proj",
34
- "o_proj",
35
- "q_proj"
36
  ],
 
37
  "task_type": "CAUSAL_LM",
38
  "trainable_token_indices": null,
39
  "use_dora": false,
 
40
  "use_rslora": false
41
  }
 
20
  "megatron_core": "megatron.core",
21
  "modules_to_save": null,
22
  "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
  "r": 16,
25
  "rank_pattern": {},
26
  "revision": null,
27
  "target_modules": [
28
+ "q_proj",
29
+ "up_proj",
30
+ "o_proj",
31
+ "v_proj",
32
  "gate_proj",
33
  "down_proj",
34
  "lm_head",
35
+ "embed_tokens",
36
+ "k_proj"
 
 
 
37
  ],
38
+ "target_parameters": null,
39
  "task_type": "CAUSAL_LM",
40
  "trainable_token_indices": null,
41
  "use_dora": false,
42
+ "use_qalora": false,
43
  "use_rslora": false
44
  }
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5566bbb2855ca6935130a63d1ec7fc6804307891084ae08050201fb19a7d2fb
3
  size 1293936232
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed8b924052fe2267113a50edee018c577ac7885245869292906f954a4a8c00e3
3
  size 1293936232
chat_template.jinja ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {{ bos_token }}{% for message in messages %}{% if message['role'] != 'system' %}{{ '<start_of_turn>' + message['role'] + '
2
+ ' + message['content'] | trim + '<end_of_turn><eos>
3
+ ' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model
4
+ '}}{% endif %}
special_tokens_map.json CHANGED
@@ -20,7 +20,13 @@
20
  "single_word": false
21
  },
22
  "eoi_token": "<end_of_image>",
23
- "eos_token": "<eos>",
 
 
 
 
 
 
24
  "image_token": "<image_soft_token>",
25
  "pad_token": {
26
  "content": "<pad>",
 
20
  "single_word": false
21
  },
22
  "eoi_token": "<end_of_image>",
23
+ "eos_token": {
24
+ "content": "<eos>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
  "image_token": "<image_soft_token>",
31
  "pad_token": {
32
  "content": "<pad>",
tokenizer_config.json CHANGED
@@ -51401,7 +51401,6 @@
51401
  ],
51402
  "boi_token": "<start_of_image>",
51403
  "bos_token": "<bos>",
51404
- "chat_template": "{{ bos_token }}{% for message in messages %}{% if message['role'] != 'system' %}{{ '<start_of_turn>' + message['role'] + '\n' + message['content'] | trim + '<end_of_turn><eos>\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
51405
  "clean_up_tokenization_spaces": false,
51406
  "eoi_token": "<end_of_image>",
51407
  "eos_token": "<eos>",
 
51401
  ],
51402
  "boi_token": "<start_of_image>",
51403
  "bos_token": "<bos>",
 
51404
  "clean_up_tokenization_spaces": false,
51405
  "eoi_token": "<end_of_image>",
51406
  "eos_token": "<eos>",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:08cfde619b67b4ed75a2fabf6a957f8c566fbaa6d42993c00ee1c1094e2d5c08
3
- size 5688
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc68671f86c1acc9e3dd33dc16b7ed34f69682b526c2d89a0c0b92ec788e05f2
3
+ size 6161