File size: 314 Bytes
545d83f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from .config import *
from .model import *
from .tokenizer import *
def check_install(cuda: bool = False):
import torch
from .version import VERSION
if cuda:
assert torch.cuda.is_available(), "CUDA is not available!"
print("CUDA available")
print(f"OLMo v{VERSION} installed")
|