mirror of
				https://github.com/KoboldAI/KoboldAI-Client.git
				synced 2025-06-05 21:59:24 +02:00 
			
		
		
		
	Fix sentencepiece model saving
This commit is contained in:
		| @@ -1063,10 +1063,10 @@ if(not vars.model in ["InferKit", "Colab", "OAI", "ReadOnly", "TPUMeshTransforme | ||||
|                  | ||||
|                 if not args.colab: | ||||
|                     import shutil | ||||
|                     shutil.rmtree("cache/") | ||||
|                     model = model.half() | ||||
|                     model.save_pretrained("models/{}".format(vars.model.replace('/', '_'))) | ||||
|                     tokenizer.save_pretrained("models/{}".format(vars.model.replace('/', '_'))) | ||||
|                     shutil.rmtree("cache/") | ||||
|              | ||||
|             if(vars.hascuda): | ||||
|                 if(vars.usegpu): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user