File size: 3,755 Bytes
bb796ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
  "model_type": "loopvl",
  "architectures": [
    "LoopVLForConditionalGeneration"
  ],
  "format_version": 2,
  "loopvl_config": {
    "vision": {
      "model_path": ".",
      "hidden_size": 1024,
      "patch_size": 14,
      "input_size": 336,
      "grid_height": 24,
      "grid_width": 24,
      "visual_tokens": 576,
      "dynamic_resolution": true,
      "min_visual_tokens": 256,
      "max_visual_tokens": 2048,
      "attn_implementation": "sdpa"
    },
    "language": {
      "model_path": ".",
      "hidden_size": 1536,
      "num_attention_heads": 12,
      "head_dim": 128,
      "H_cycles": 2,
      "L_cycles": 3,
      "rope_theta": 10000,
      "rope_parameters": {
        "rope_type": "yarn",
        "rope_theta": 10000,
        "factor": 2,
        "original_max_position_embeddings": 4096,
        "beta_fast": 32,
        "beta_slow": 1
      },
      "max_position_embeddings": 8192,
      "attn_implementation": "sdpa"
    },
    "recurrent_visual": {
      "rope_mode": "hybrid_2d",
      "use_visual_anchor": true,
      "use_visual_gate": true,
      "gate_dim": 256,
      "anchor_raw_init": -2,
      "anchor_max_scale": 0.5,
      "gate_saturation_metric_lower": 0.05,
      "gate_saturation_metric_upper": 1.95
    },
    "inference": {
      "max_seq_len": 8192,
      "use_cache": false
    }
  },
  "text_config": {
    "H_cycles": 2,
    "L_cycles": 3,
    "architectures": [
      "HrmTextForCausalLM"
    ],
    "attention_bias": false,
    "attention_dropout": 0,
    "bos_token_id": 6,
    "dtype": "bfloat16",
    "embedding_scale": 39.191835884530846,
    "eos_token_id": 11,
    "head_dim": 128,
    "hidden_act": "silu",
    "hidden_size": 1536,
    "initializer_range": 0.025515518153991442,
    "intermediate_size": 4096,
    "max_position_embeddings": 8192,
    "mlp_bias": false,
    "model_type": "hrm_text",
    "num_attention_heads": 12,
    "num_hidden_layers": 128,
    "num_key_value_heads": 12,
    "num_layers_per_stack": 16,
    "pad_token_id": 5,
    "prefix_lm": true,
    "rms_norm_eps": 0.000001,
    "rope_parameters": {
      "beta_fast": 32,
      "beta_slow": 1,
      "factor": 2,
      "original_max_position_embeddings": 4096,
      "rope_theta": 10000,
      "rope_type": "yarn"
    },
    "rope_theta": 10000,
    "tie_word_embeddings": false,
    "transformers_version": "5.15.1",
    "use_cache": false,
    "vocab_size": 65536
  },
  "vision_config": {
    "architectures": [
      "PenguinVLVisionEncoderModel"
    ],
    "attention_bias": false,
    "attention_dropout": 0,
    "bos_token_id": 151643,
    "eos_token_id": 151645,
    "head_dim": 128,
    "hidden_act": "silu",
    "hidden_size": 1024,
    "initializer_range": 0.02,
    "intermediate_size": 3072,
    "layer_norm_eps": 0.000001,
    "max_position_embeddings": 40960,
    "max_window_layers": 28,
    "model_type": "penguinvl_vision_encoder",
    "num_attention_heads": 16,
    "num_channels": 3,
    "num_hidden_layers": 28,
    "num_key_value_heads": 8,
    "patch_size": 14,
    "rms_norm_eps": 0.000001,
    "rope_scaling": null,
    "rope_theta": 1000000,
    "sliding_window": null,
    "tie_word_embeddings": true,
    "torch_dtype": "bfloat16",
    "transformers_version": "4.51.3",
    "use_cache": true,
    "use_sliding_window": false,
    "vocab_size": 151936
  },
  "component_dtypes": {
    "vision": "bfloat16",
    "language": "bfloat16",
    "projector": "float32",
    "visual_gate": "float32",
    "visual_anchor": "float32"
  },
  "loader": "modeling_loopvl.LoopVLForConditionalGeneration.from_pretrained",
  "note": "Single-file weights and configuration only. Use the runtime/ loader from the LoopVL GitHub repository.",
  "code_repository": "https://github.com/Tier-Flow/LoopVL"
}