print error.txt
This commit is contained in:
parent
02ba37fab4
commit
d249a4c29a
1
backend-python/convert_model.py
vendored
1
backend-python/convert_model.py
vendored
@ -231,5 +231,6 @@ try:
|
||||
convert_and_save_and_exit=args.out,
|
||||
)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
with open("error.txt", "w") as f:
|
||||
f.write(str(e))
|
||||
|
1
backend-python/convert_safetensors.py
vendored
1
backend-python/convert_safetensors.py
vendored
@ -65,5 +65,6 @@ if __name__ == "__main__":
|
||||
)
|
||||
print(f"Saved to {args.output}")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
with open("error.txt", "w") as f:
|
||||
f.write(str(e))
|
||||
|
@ -246,5 +246,6 @@ if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
with open("error.txt", "w") as f:
|
||||
f.write(str(e))
|
||||
|
1
finetune/lora/merge_lora.py
vendored
1
finetune/lora/merge_lora.py
vendored
@ -64,5 +64,6 @@ try:
|
||||
|
||||
torch.save(output_w, output)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
with open("error.txt", "w") as f:
|
||||
f.write(str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user