[hybrid_dev] Cleanup modeling file for Apriel-H#379
Draft
nitsanluke wants to merge 5 commits intohybrid_devfrom
Draft
[hybrid_dev] Cleanup modeling file for Apriel-H#379nitsanluke wants to merge 5 commits intohybrid_devfrom
nitsanluke wants to merge 5 commits intohybrid_devfrom
Conversation
nitsanluke
commented
Oct 16, 2025
| class AprielSSMHybridConfig(MistralConfig): | ||
| model_type = "apriel_ssm_thinker_hybrid" | ||
|
|
||
| def __init__(self, hybrid_block_layout=["m2d"], ssm_cfg=None, **kwargs): |
Contributor
Author
There was a problem hiding this comment.
Should we clean up this configs? @oleksost
ssm_config_default = { ssm_config_default = {
# discrete mamba2 # discrete mamba2
"d_state": 64, "d_state": 64,
"n_v_heads": 32, "n_v_heads": 32,
"n_qk_heads": 32, "n_qk_heads": 32,
"expand": 1, "expand": 1,
"chunk_size": 128, "chunk_size": 128,
"activation": "identity", "activation": "identity",
"bias": False, "bias": False,
"d_conv": 4, "d_conv": 4,
"d_inner": 32 * 128, "d_inner": 32 * 128,
# mamba2 # mamba2
"d_xb": None, # will be set to model dim "d_xb": None, # will be set to model dim
"dt_rank": "auto", "dt_rank": "auto",
"dt_min": 0.001, "dt_min": 0.001,
"dt_max": 0.1, "dt_max": 0.1,
"dt_init": "random", "dt_init": "random",
"dt_scale": 1.0, "dt_scale": 1.0,
"dt_init_floor": 1e-4, "dt_init_floor": 1e-4,
"conv_bias": True,
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Description
Review cleanup.