Downloads · 30 days
18
21% of all-time downloads
ntseng/mistralai_Mistral-7B-Instruct-v0.2-testgen-LoRAs
mistralai_Mistral-7B-Instruct-v0.2-testgen-LoRAs is a machine learning model from ntseng. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
LoRA weights for "mistralaiMistral-7B-Instruct-v0.2"
Downloads · 30 days
18
21% of all-time downloads
All-time downloads
84
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
LoRA weights for "mistralai_Mistral-7B-Instruct-v0.2"
Fine-tuned model to talk like middle school students, using typos/grammar errors. Trained on student Q&As physics topics such as PE/KE/LCE including pulley/ramp examples.
from peft import PeftModel # for fine-tuning
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline, GenerationConfig, GPTQConfig, BitsAndBytesConfig
model_name_or_path = "mistralai/Mistral-7B-Instruct-v0.2"
nf4_config = BitsAndBytesConfig( # quantization 4-bit
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.bfloat16
)
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
device_map="auto",
trust_remote_code=False,
quantization_config=nf4_config,
revision="main")
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
lora_model_path = "{path_to_loras_folder}/mistralai_Mistral-7B-Instruct-v0.2-testgen-LoRAs" # load loras
model = PeftModel.from_pretrained(
model, lora_model_path, torch_dtype=torch.float16, force_download=True,
)
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Trained on raw text file
Trained using an open-source web-ui:
[More Information Needed]
[More Information Needed]