trim / config.json
JunHill's picture
Upload 2 files
7cebc13 verified
{
"architectures": [
"TrimKVQwen3VLForConditionalGeneration"
],
"base_loss": "fwkl",
"base_model": "Qwen/Qwen3-VL-8B-Thinking",
"dtype": "bfloat16",
"eos_token_id": 151645,
"image_token_id": 151655,
"logit_block_size": 8192,
"memory_size": 256.0,
"model_type": "qwen3_vl",
"pad_token_id": 151643,
"retention_weight": 1.0,
"text_config": {
"attention_bias": false,
"attention_dropout": 0.0,
"attn_impl": "trimkv_flex",
"bos_token_id": 151643,
"buffer_size": 128,
"compress_memory": true,
"compress_strategy": "alpha",
"dtype": "float32",
"eos_token_id": 151645,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 4096,
"initializer_range": 0.02,
"intermediate_size": 12288,
"max_position_embeddings": 262144,
"max_seq_len": 32768,
"model_type": "qwen3_vl_text",
"num_attention_heads": 32,
"num_hidden_layers": 36,
"num_key_value_heads": 8,
"retention_gate": "rg",
"retention_gate_bias_init": 8.0,
"retention_gate_intermediate_size": 512,
"rg_dropout": 0.0,
"rms_norm_eps": 1e-06,
"rope_scaling": {
"mrope_interleaved": true,
"mrope_section": [
24,
20,
20
],
"rope_type": "default"
},
"rope_theta": 5000000,
"use_cache": false,
"vocab_size": 151936
},
"tie_word_embeddings": false,
"trainable_params": "self_attn.retention_gate",
"transformers_version": "4.57.0",
"use_cache": true,
"video_token_id": 151656,
"vision_config": {
"deepstack_visual_indexes": [
8,
16,
24
],
"depth": 27,
"dtype": "float32",
"hidden_act": "gelu_pytorch_tanh",
"hidden_size": 1152,
"in_channels": 3,
"initializer_range": 0.02,
"intermediate_size": 4304,
"model_type": "qwen3_vl",
"num_heads": 16,
"num_position_embeddings": 2304,
"out_hidden_size": 4096,
"patch_size": 16,
"spatial_merge_size": 2,
"temporal_patch_size": 2
},
"vision_end_token_id": 151653,
"vision_start_token_id": 151652
}