mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-03-13 07:20:23 +00:00
Translate console logs
This commit is contained in:
@@ -66,7 +66,7 @@ class Config:
|
||||
or "1070" in self.gpu_name
|
||||
or "1080" in self.gpu_name
|
||||
):
|
||||
print("16系/10系显卡和P40强制单精度")
|
||||
print("Forcing full precision for 16/10 series cards.")
|
||||
self.is_half = False
|
||||
config_file_change_fp32()
|
||||
else:
|
||||
@@ -84,12 +84,12 @@ class Config:
|
||||
# with open("trainset_preprocess_pipeline_print.py", "w") as f:
|
||||
# f.write(strr)
|
||||
elif torch.backends.mps.is_available():
|
||||
print("没有发现支持的N卡, 使用MPS进行推理")
|
||||
print("No compatible GPU found, using MPS for inference.")
|
||||
self.device = "mps"
|
||||
self.is_half = False
|
||||
config_file_change_fp32()
|
||||
else:
|
||||
print("没有发现支持的N卡, 使用CPU进行推理")
|
||||
print("No compatible GPU found, using CPU for inference.")
|
||||
self.device = "cpu"
|
||||
self.is_half = False
|
||||
config_file_change_fp32()
|
||||
|
||||
Reference in New Issue
Block a user