Skip to content
Open
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
4 changes: 2 additions & 2 deletions benchmarks/python/benchmark_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
ColwiseParallel,
)
from tqdm import tqdm
from transformers import AutoModelForCausalLM
from transformers.models.llama4 import Llama4TextConfig
from transformers.cache_utils import HybridChunkedCache
from transformers.models.llama4.modeling_llama4 import Llama4TextMoe
Expand All @@ -50,6 +49,7 @@
NVFP4InferenceLinear,
nvfuser_f16a_nvfp4weight_scaled_grouped_mm,
nvfuser_f16a_nvfp4weight_scaled_mm,
copied_Llama4ForCausalLM,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, we could use a better name on this 😜

)
from thunder.torch.custom_op import _register_custom_op

Expand Down Expand Up @@ -279,7 +279,7 @@ def _load_model(self) -> torch.nn.Module:
self.hf_config = config

with DEVICE:
model = AutoModelForCausalLM.from_config(config, torch_dtype=torch.bfloat16)
model = copied_Llama4ForCausalLM._from_config(config)

return model

Expand Down
Loading
Loading