Skip to content

Commit

Permalink
use mpt_causal_lm
Browse files Browse the repository at this point in the history
  • Loading branch information
aspfohl committed Oct 11, 2023
1 parent 8c3dca6 commit 121c6b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_hf_mpt_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_mpt_generate_callback(callback_generate: Any, tmpdir: Path):

# build mpt model
model_config = DictConfig({
'name': 'hf_causal_lm',
'name': 'mpt_causal_lm',
'pretrained_model_name_or_path': 'mosaicml/mpt-7b',
'pretrained': False,
'config_overrides': {
Expand All @@ -143,8 +143,7 @@ def test_mpt_generate_callback(callback_generate: Any, tmpdir: Path):
'n_layers': 2,
'expansion_ratio': 2,
'attn_config': {
'attn_impl': 'torch',
'attn_uses_sequence_id': True,
'attn_impl': 'triton',
},
},
})
Expand Down

0 comments on commit 121c6b1

Please sign in to comment.