prince-canuma commited on
Commit
5ebcc10
1 Parent(s): 6c086d6

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,12 +1,4 @@
1
  ---
2
- language:
3
- - en
4
- license: apache-2.0
5
- tags:
6
- - multimodal
7
- - vision
8
- - image-text-to-text
9
- - mlx
10
  datasets:
11
  - HuggingFaceM4/OBELICS
12
  - laion/laion-coco
@@ -25,10 +17,20 @@ datasets:
25
  - camel-ai/math
26
  - AtlasUnified/atlas-math-sets
27
  - tiedong/goat
 
 
 
 
 
 
 
 
 
 
28
  ---
29
 
30
  # mlx-community/idefics2-8b-4bit
31
- This model was converted to MLX format from [`HuggingFaceM4/idefics2-8b`]() using mlx-vlm version **0.0.4**.
32
  Refer to the [original model card](https://huggingface.co/HuggingFaceM4/idefics2-8b) for more details on the model.
33
  ## Use with mlx
34
 
 
1
  ---
 
 
 
 
 
 
 
 
2
  datasets:
3
  - HuggingFaceM4/OBELICS
4
  - laion/laion-coco
 
17
  - camel-ai/math
18
  - AtlasUnified/atlas-math-sets
19
  - tiedong/goat
20
+ - Lin-Chen/ShareGPT4V
21
+ - jxu124/llava_conversation_58k
22
+ language:
23
+ - en
24
+ license: apache-2.0
25
+ tags:
26
+ - multimodal
27
+ - vision
28
+ - image-text-to-text
29
+ - mlx
30
  ---
31
 
32
  # mlx-community/idefics2-8b-4bit
33
+ This model was converted to MLX format from [`HuggingFaceM4/idefics2-8b`]() using mlx-vlm version **0.1.0**.
34
  Refer to the [original model card](https://huggingface.co/HuggingFaceM4/idefics2-8b) for more details on the model.
35
  ## Use with mlx
36
 
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{% for message in messages %}{{message['role'].capitalize()}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}"
3
+ }
config.json CHANGED
@@ -25,7 +25,7 @@
25
  "vision_config": {
26
  "hidden_size": 1152,
27
  "image_size": 980,
28
- "intermediate_size": 4304,
29
  "model_type": "idefics2",
30
  "num_attention_heads": 16,
31
  "num_hidden_layers": 27,
 
25
  "vision_config": {
26
  "hidden_size": 1152,
27
  "image_size": 980,
28
+ "intermediate_size": 4352,
29
  "model_type": "idefics2",
30
  "num_attention_heads": 16,
31
  "num_hidden_layers": 27,
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc35cd7086689f1791485c5c96ec33cccfe4f9bcb899c75107da4df3be272d1
3
+ size 4748021239
model.safetensors.index.json CHANGED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "do_convert_rgb": true,
3
- "do_image_splitting": false,
4
  "do_normalize": true,
5
  "do_pad": true,
6
  "do_rescale": true,
 
1
  {
2
  "do_convert_rgb": true,
3
+ "do_image_splitting": true,
4
  "do_normalize": true,
5
  "do_pad": true,
6
  "do_rescale": true,
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,6 +1,7 @@
1
  {
2
  "add_bos_token": true,
3
  "add_eos_token": false,
 
4
  "added_tokens_decoder": {
5
  "0": {
6
  "content": "<unk>",
@@ -59,6 +60,7 @@
59
  "bos_token": "<s>",
60
  "clean_up_tokenization_spaces": false,
61
  "eos_token": "</s>",
 
62
  "model_max_length": 1000000000000000019884624838656,
63
  "pad_token": "<unk>",
64
  "processor_class": "Idefics2Processor",
 
1
  {
2
  "add_bos_token": true,
3
  "add_eos_token": false,
4
+ "add_prefix_space": null,
5
  "added_tokens_decoder": {
6
  "0": {
7
  "content": "<unk>",
 
60
  "bos_token": "<s>",
61
  "clean_up_tokenization_spaces": false,
62
  "eos_token": "</s>",
63
+ "legacy": false,
64
  "model_max_length": 1000000000000000019884624838656,
65
  "pad_token": "<unk>",
66
  "processor_class": "Idefics2Processor",