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
406 changes: 0 additions & 406 deletions fast_llm_external_models/apriel2/cache.py

This file was deleted.

838 changes: 512 additions & 326 deletions fast_llm_external_models/apriel2/modeling_apriel2.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions fast_llm_external_models/tests/test_apriel2/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import torch
from transformers import LlavaConfig, LlavaForConditionalGeneration, MistralConfig

from fast_llm_external_models.apriel2.cache import _AttentionCache, _SSMCache
from fast_llm_external_models.apriel2.modeling_apriel2 import _AttentionCache, _SSMCache


# Register custom marks
Expand Down Expand Up @@ -831,7 +831,7 @@ def apriel2_config_with_bias():
@pytest.fixture
def apriel2_cache(apriel2_config_tiny):
"""Create empty Apriel2Cache from tiny config."""
from fast_llm_external_models.apriel2.cache import Apriel2Cache
from fast_llm_external_models.apriel2.modeling_apriel2 import Apriel2Cache

return Apriel2Cache(apriel2_config_tiny)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import pytest
import torch

from fast_llm_external_models.apriel2.cache import Apriel2Cache
from fast_llm_external_models.apriel2.modeling_apriel2 import Apriel2Cache

# =============================================================================
# STOCHASTIC MIXER ROUTING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import pytest
import torch

from fast_llm_external_models.apriel2.cache import Apriel2Cache, _AttentionCache
from fast_llm_external_models.apriel2.modeling_apriel2 import Apriel2Cache, _AttentionCache

# =============================================================================
# SECTION 1: FULL ATTENTION - _AttentionCache vs DynamicLayer
Expand Down
Loading
Loading