RaushanTurganbay HF Staff commited on
Commit
49c12a6
·
verified ·
1 Parent(s): b910732

dummy model

Browse files
Files changed (4) hide show
  1. README.md +42 -0
  2. config.json +85 -0
  3. generation_config.json +10 -0
  4. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ pipeline_tag: image-text-to-text
4
+ tags:
5
+ - minimax_vl_01
6
+ - testing
7
+ - random
8
+ ---
9
+
10
+ # Tiny MiniMax-VL-01 test checkpoint
11
+
12
+ Randomly initialized fixture exported from `MiniMaxVL01IntegrationTest._dummy_model()` in
13
+ [Transformers PR #47776](https://github.com/huggingface/transformers/pull/47776),
14
+ source revision `6ff8403cbe36b2b4643597f9e36611ebdc9eff62`.
15
+ It is intended for regression tests and is not trained for useful image understanding or text generation.
16
+
17
+ The fixture uses seed 0 and float32 weights, with 103,072 parameters.
18
+ Its text model has eight layers (seven linear-attention layers followed by one full-attention layer),
19
+ hidden size 32, four local experts, and vocabulary size 97.
20
+ The CLIP vision encoder has two layers, hidden size 16, image size 8, and patch size 4.
21
+ The image token ID is 3.
22
+
23
+ ## Loading
24
+
25
+ Use the Transformers checkout from PR #47776, which provides the native model classes and checkpoint mappings.
26
+
27
+ ```python
28
+ import torch
29
+ from transformers import AutoModelForImageTextToText
30
+
31
+ model = AutoModelForImageTextToText.from_pretrained(
32
+ "/path/to/MiniMax-VL-01-tiny-for-review",
33
+ dtype=torch.float32,
34
+ attn_implementation="eager",
35
+ )
36
+ ```
37
+
38
+ The existing slow integration tests provide integer token IDs and a small native image processor.
39
+ No tokenizer or combined processor is included: the released tokenizer's vocabulary and image-token ID
40
+ are incompatible with this tiny fixture.
41
+
42
+ Files: `config.json`, `generation_config.json`, and `model.safetensors`, plus this model card.
config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MiniMaxVL01ForConditionalGeneration"
4
+ ],
5
+ "dtype": "float32",
6
+ "image_grid_pinpoints": [
7
+ [
8
+ 8,
9
+ 8
10
+ ]
11
+ ],
12
+ "image_token_id": 3,
13
+ "model_type": "minimax_vl_01",
14
+ "multimodal_projector_bias": true,
15
+ "pad_token_id": 0,
16
+ "projector_hidden_act": "gelu",
17
+ "text_config": {
18
+ "attention_dropout": 0.0,
19
+ "block_size": 4,
20
+ "bos_token_id": 1,
21
+ "dtype": "float32",
22
+ "eos_token_id": 2,
23
+ "full_attn_alpha_factor": 1,
24
+ "full_attn_beta_factor": 1,
25
+ "head_dim": 8,
26
+ "hidden_act": "silu",
27
+ "hidden_size": 32,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 16,
30
+ "layer_types": [
31
+ "linear_attention",
32
+ "linear_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "linear_attention",
37
+ "linear_attention",
38
+ "full_attention"
39
+ ],
40
+ "linear_attn_alpha_factor": 1,
41
+ "linear_attn_beta_factor": 1,
42
+ "max_position_embeddings": 64,
43
+ "mlp_alpha_factor": 1,
44
+ "mlp_beta_factor": 1,
45
+ "model_type": "minimax_vl_01_text",
46
+ "num_attention_heads": 4,
47
+ "num_experts_per_tok": 2,
48
+ "num_hidden_layers": 8,
49
+ "num_key_value_heads": 2,
50
+ "num_local_experts": 4,
51
+ "output_router_logits": false,
52
+ "pad_token_id": 0,
53
+ "rms_norm_eps": 1e-05,
54
+ "rope_parameters": {
55
+ "partial_rotary_factor": 0.5,
56
+ "rope_theta": 10000.0,
57
+ "rope_type": "default"
58
+ },
59
+ "router_jitter_noise": 0.0,
60
+ "sliding_window": null,
61
+ "tie_word_embeddings": false,
62
+ "use_cache": true,
63
+ "vocab_size": 97
64
+ },
65
+ "tie_word_embeddings": false,
66
+ "transformers_version": "5.23.0.dev0",
67
+ "vision_config": {
68
+ "attention_dropout": 0.0,
69
+ "dtype": "float32",
70
+ "hidden_act": "gelu",
71
+ "hidden_size": 16,
72
+ "image_size": 8,
73
+ "initializer_factor": 1.0,
74
+ "initializer_range": 0.02,
75
+ "intermediate_size": 32,
76
+ "layer_norm_eps": 1e-05,
77
+ "model_type": "clip_vision_model",
78
+ "num_attention_heads": 4,
79
+ "num_channels": 3,
80
+ "num_hidden_layers": 2,
81
+ "patch_size": 4,
82
+ "projection_dim": 32
83
+ },
84
+ "vision_feature_layer": -1
85
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.23.0.dev0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e1a7262cac11db7b3f0602205251ebebd46b2e0c84840ad1611fa4efa16fe7e
3
+ size 436744