Skip to content

Commit

Permalink
remove mcore-inserted env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Koumparoulis <[email protected]>
  • Loading branch information
akoumpa committed Jan 7, 2025
1 parent cec9eb6 commit 903044c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/collections/llm/gpt/model/test_model_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

import torch

import os
torch.set_grad_enabled(False)


Expand Down Expand Up @@ -95,5 +95,8 @@ def import_from_hf(config_name, hf_path):

if __name__ == '__main__':
for config_name, hf_id in config_name_to_hf_id.items():
for env_var in ['NVTE_FLASH_ATTN', 'NVTE_FUSED_ATTN', 'NVTE_UNFUSED_ATTN']:
if env_var in os.environ:
del os.environ[env_var]
src = f'hf:///home/TestData/nemo2_ckpt/{config_name}'
import_from_hf(config_name, src)

0 comments on commit 903044c

Please sign in to comment.