Buckets:
xuan-luo/kvpath-optimization / KDA-optimization /env /third_party /Megatron-LM /tools /bert_embedding /external_libs.py
| # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. | |
| import importlib | |
| required_libs = [ | |
| "h5py", | |
| "transformers", # for huggingface bert | |
| ] | |
| for lib in required_libs: | |
| try: | |
| globals()[lib] = importlib.import_module(lib) | |
| except ImportError as e: | |
| raise Exception(f"Missing one or more packages required for Bert embedding: {required_libs}. Tried importing '{lib}'.") | |
Xet Storage Details
- Size:
- 405 Bytes
- Xet hash:
- 69105e5b06c567a27ec684dca8697c530242f9aa3ba685aaa4d060a66a8808e1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.