Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
num_key_value_heads=2,
num_hidden_layers=2,
intermediate_size=32,
# One of each attention type. Deriving the pattern from num_hidden_layers=2 gives two
# sliding layers (the reference is 3:1 over 32 layers), so the global RoPE path would never run.
layer_types=["sliding_attention", "full_attention"],
# Non-size fields kept aligned with the reference so the tiny config only differs in what we scale down.
max_position_embeddings=65536,
rms_norm_eps=1e-06,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
"hidden_size": 16,
"num_attention_heads": 4,
"num_key_value_heads": 2,
"layer_types": None, # Set it automatically from num_hidden_layers
# One of each attention type. Deriving the pattern from num_hidden_layers=2 gives two
# sliding layers (the reference is 5:1 over 34 layers), so the global RoPE path would never run.
"layer_types": ["sliding_attention", "full_attention"],
"intermediate_size": 32,
}
vision_config = {
Expand Down
Loading