Create config.json
Browse files- config.json +42 -0
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model_type": "llama",
|
3 |
+
"architectures": ["MultimodalLFM2Model"],
|
4 |
+
|
5 |
+
"_name_or_path": "GoofyLM/N2-Eye-v1-1.3B",
|
6 |
+
"auto_map": {
|
7 |
+
"AutoModelForCausalLM": "modeling_n2_eye.MultimodalLFM2Model",
|
8 |
+
"AutoConfig": "modeling_n2_eye.MultimodalLFM2Config"
|
9 |
+
},
|
10 |
+
|
11 |
+
"lfm2_model_name": "LiquidAI/LFM2-1.2B",
|
12 |
+
"clip_model_name": "openai/clip-vit-base-patch32",
|
13 |
+
"vision_projection_dim": 512,
|
14 |
+
|
15 |
+
"language_model_config": {
|
16 |
+
"model_type": "lfm2",
|
17 |
+
"hidden_size": 1536,
|
18 |
+
"vocab_size": 50257,
|
19 |
+
"max_position_embeddings": 2048
|
20 |
+
},
|
21 |
+
|
22 |
+
"vision_encoder_config": {
|
23 |
+
"model_type": "clip_vision_model",
|
24 |
+
"hidden_size": 768
|
25 |
+
},
|
26 |
+
|
27 |
+
"projection_config": {
|
28 |
+
"vision_hidden_size": 768,
|
29 |
+
"vision_projection_dim": 512,
|
30 |
+
"language_hidden_size": 1536,
|
31 |
+
"dropout": 0.1
|
32 |
+
},
|
33 |
+
|
34 |
+
"image_token": "<image>",
|
35 |
+
"max_length": 2048,
|
36 |
+
|
37 |
+
"torch_dtype": "bfloat16",
|
38 |
+
"transformers_version": "4.46.0",
|
39 |
+
"use_cache": true,
|
40 |
+
|
41 |
+
"chat_template": "{% set system_message = 'You are a helpful assistant trained by Liquid AI. You can see and understand images.' %}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}<|im_start|>system\n{{ system_message }}<|im_end|>\n<image>\n{% for message in loop_messages %}<|im_start|>{{ message['role'] }}\n{{ message['content'] }}<|im_end|>\n{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
|
42 |
+
}
|