Spaces:
Configuration error
Configuration error
Upload 10 files
Browse files- gemma-3n_pois_med_plants/README.md +22 -0
- gemma-3n_pois_med_plants/adapter_config.json +3 -0
- gemma-3n_pois_med_plants/adapter_model.safetensors +3 -0
- gemma-3n_pois_med_plants/chat_template.jinja +49 -0
- gemma-3n_pois_med_plants/preprocessor_config.json +3 -0
- gemma-3n_pois_med_plants/processor_config.json +3 -0
- gemma-3n_pois_med_plants/special_tokens_map.json +3 -0
- gemma-3n_pois_med_plants/tokenizer.json +3 -0
- gemma-3n_pois_med_plants/tokenizer.model +3 -0
- gemma-3n_pois_med_plants/tokenizer_config.json +3 -0
gemma-3n_pois_med_plants/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: unsloth/gemma-3n-e2b-it-unsloth-bnb-4bit
|
3 |
+
tags:
|
4 |
+
- text-generation-inference
|
5 |
+
- transformers
|
6 |
+
- unsloth
|
7 |
+
- gemma3n
|
8 |
+
- trl
|
9 |
+
license: apache-2.0
|
10 |
+
language:
|
11 |
+
- en
|
12 |
+
---
|
13 |
+
|
14 |
+
# Uploaded model
|
15 |
+
|
16 |
+
- **Developed by:** ramtelpp
|
17 |
+
- **License:** apache-2.0
|
18 |
+
- **Finetuned from model :** unsloth/gemma-3n-e2b-it-unsloth-bnb-4bit
|
19 |
+
|
20 |
+
This gemma3n model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
21 |
+
|
22 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
gemma-3n_pois_med_plants/adapter_config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:983b1586341c8d728e70680713d9e53c6436cd7d3ff5936c4399962f7fc9a6ad
|
3 |
+
size 1588
|
gemma-3n_pois_med_plants/adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c73e8a6347f6da45264b650ebd26916cf83f8910b889e7e6423614d35d115f1
|
3 |
+
size 84603520
|
gemma-3n_pois_med_plants/chat_template.jinja
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{{ bos_token }}
|
2 |
+
{%- if messages[0]['role'] == 'system' -%}
|
3 |
+
{%- if messages[0]['content'] is string -%}
|
4 |
+
{%- set first_user_prefix = messages[0]['content'] + '
|
5 |
+
|
6 |
+
' -%}
|
7 |
+
{%- else -%}
|
8 |
+
{%- set first_user_prefix = messages[0]['content'][0]['text'] + '
|
9 |
+
|
10 |
+
' -%}
|
11 |
+
{%- endif -%}
|
12 |
+
{%- set loop_messages = messages[1:] -%}
|
13 |
+
{%- else -%}
|
14 |
+
{%- set first_user_prefix = "" -%}
|
15 |
+
{%- set loop_messages = messages -%}
|
16 |
+
{%- endif -%}
|
17 |
+
{%- for message in loop_messages -%}
|
18 |
+
{%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
|
19 |
+
{{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
|
20 |
+
{%- endif -%}
|
21 |
+
{%- if (message['role'] == 'assistant') -%}
|
22 |
+
{%- set role = "model" -%}
|
23 |
+
{%- else -%}
|
24 |
+
{%- set role = message['role'] -%}
|
25 |
+
{%- endif -%}
|
26 |
+
{{ '<start_of_turn>' + role + '
|
27 |
+
' + (first_user_prefix if loop.first else "") }}
|
28 |
+
{%- if message['content'] is string -%}
|
29 |
+
{{ message['content'] | trim }}
|
30 |
+
{%- elif message['content'] is iterable -%}
|
31 |
+
{%- for item in message['content'] -%}
|
32 |
+
{%- if item['type'] == 'audio' -%}
|
33 |
+
{{ '<audio_soft_token>' }}
|
34 |
+
{%- elif item['type'] == 'image' -%}
|
35 |
+
{{ '<image_soft_token>' }}
|
36 |
+
{%- elif item['type'] == 'text' -%}
|
37 |
+
{{ item['text'] | trim }}
|
38 |
+
{%- endif -%}
|
39 |
+
{%- endfor -%}
|
40 |
+
{%- else -%}
|
41 |
+
{{ raise_exception("Invalid content type") }}
|
42 |
+
{%- endif -%}
|
43 |
+
{{ '<end_of_turn>
|
44 |
+
' }}
|
45 |
+
{%- endfor -%}
|
46 |
+
{%- if add_generation_prompt -%}
|
47 |
+
{{'<start_of_turn>model
|
48 |
+
'}}
|
49 |
+
{%- endif -%}
|
gemma-3n_pois_med_plants/preprocessor_config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:48d30b178baa66bd5687d5833443823c04e980158ad09734ca2acaa2d77abd8f
|
3 |
+
size 1143
|
gemma-3n_pois_med_plants/processor_config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd753f7c8da7b61581a295a749198eb2da5bd623eef22c26f77779c31997673e
|
3 |
+
size 103
|
gemma-3n_pois_med_plants/special_tokens_map.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:52770abb74010484506ab3fcb4c2dc1bd6fec9ffba788fd1f13fe2eb8da1836c
|
3 |
+
size 813
|
gemma-3n_pois_med_plants/tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6c35ee648c07754b44cd9e371c75d4caa05c4504910b7ad29b1847ee9d8ba5d
|
3 |
+
size 33442553
|
gemma-3n_pois_med_plants/tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea5f0cc48abfbfc04d14562270a32e02149a3e7035f368cc5a462786f4a59961
|
3 |
+
size 4696020
|
gemma-3n_pois_med_plants/tokenizer_config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a05be027eb45a494e60493ab3e1c86956b872cde9313d59c2410c71c70bc7da0
|
3 |
+
size 1255706
|