Update README.md
Browse files123---license: apache-2.0---1234567891011121314151617181920212223242526272829303132333435363738394041---license: apache-2.0---This is a 4-bit quantized version of Mistral-7B-Instruct-v0.1.I loaded this model to HuggingFace so that I didn't have to spend Colab GPUs to continually (re)quantize the same model.This models's 4-bit tokenizers can be found at: https://huggingface.co/wjleece/quantized-mistral-7b-tokenizerThis quantized model was created via:from huggingface_hub import upload_folder# Load the pre-quantized model and tokenizerquantization_config = BitsAndBytesConfig(load_in_4bit=True,bnb_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)
README.md+41-3