Update README.md
Browse files17 unmodified lines18192021222324252627282930313233343536373839404117 unmodified linesbnb_4bit_compute_dtype=torch.bfloat16)#Load the quantized model and tokenizer from Colab environmentmodel = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1", quantization_config=quantization_config, device_map='auto')tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")#Save the quantized model to a local directorymodel.save_pretrained("wjleece-quantized-mistral-7b")tokenizer.save_pretrained("wjleece-quantized-mistral-7b-tokenizer")#Upload the quantized model and tokenizer to your Hugging Face account#Upload the model and tokenizer to Hugging Faceupload_folder(folder_path="wjleece-quantized-mistral-7b",repo_id="wjleece/quantized-mistral-7b",use_auth_token=True)upload_folder(folder_path="wjleece-quantized-mistral-7b-tokenizer",repo_id="wjleece/quantized-mistral-7b-tokenizer",use_auth_token=True)17 unmodified lines18192021222324252627282930313217 unmodified linesbnb_4bit_compute_dtype=torch.bfloat16)#Load the quantized model from Colab environmentmodel = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1", quantization_config=quantization_config, device_map='auto')#Save the quantized model to a local directorymodel.save_pretrained("wjleece-quantized-mistral-7b")#Upload the quantized model to Hugging Face\upload_folder(folder_path="wjleece-quantized-mistral-7b",repo_id="wjleece/quantized-mistral-7b",use_auth_token=True)
README.md+2-11