mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Model: Lazyload backends
This commit is contained in:
@@ -42,13 +42,10 @@ import utils
|
||||
import torch
|
||||
import numpy as np
|
||||
|
||||
try:
|
||||
if utils.koboldai_vars.use_colab_tpu:
|
||||
import jax
|
||||
import jax.numpy as jnp
|
||||
import tpu_mtj_backend
|
||||
except ImportError as e:
|
||||
if utils.koboldai_vars.use_colab_tpu:
|
||||
raise e
|
||||
|
||||
|
||||
def update_settings():
|
||||
|
Reference in New Issue
Block a user