|
@@ -94,7 +94,7 @@ def main(**kwargs):
|
|
|
load_in_8bit=True if train_config.quantization else None,
|
|
|
device_map="auto" if train_config.quantization else None,
|
|
|
use_cache=use_cache,
|
|
|
- attn_implementation="eager" if train_config.use_fast_kernels else None,
|
|
|
+ attn_implementation="sdpa" if train_config.use_fast_kernels else None,
|
|
|
)
|
|
|
else:
|
|
|
llama_config = LlamaConfig.from_pretrained(train_config.model_name)
|
|
@@ -108,7 +108,7 @@ def main(**kwargs):
|
|
|
load_in_8bit=True if train_config.quantization else None,
|
|
|
device_map="auto" if train_config.quantization else None,
|
|
|
use_cache=use_cache,
|
|
|
- attn_implementation="eager" if train_config.use_fast_kernels else None,
|
|
|
+ attn_implementation="sdpa" if train_config.use_fast_kernels else None,
|
|
|
)
|
|
|
|
|
|
# Load the tokenizer and add special tokens
|