Fine-tuned
mistralai/Ministral-3-3B-Instruct-2512-BF16 on the
AlicanKiraz0/All-CVE-Records-Training-Dataset
dataset using
QLoRA (Parameter-Efficient Fine-Tuning with
Low-Rank Adaptation).
1from peft import PeftModel
2from transformers import Mistral3ForConditionalGeneration, MistralCommonBackend
3
4# Load base model and tokenizer
5base = Mistral3ForConditionalGeneration.from_pretrained(
6 "mistralai/Ministral-3-3B-Instruct-2512-BF16",
7 torch_dtype="auto",
8 device_map="auto",
9)
10tokenizer = MistralCommonBackend.from_pretrained(
11 "mistralai/Ministral-3-3B-Instruct-2512-BF16"
12)
13
14# Load adapter on top
15model = PeftModel.from_pretrained(base, "noman-asif/CVE-Analyst-Ministral-3B-QLoRA")
16
17# Generate
18messages = [{"role": "user", "content": "Provide a comprehensive technical analysis of CVE-2024-1234."}]
19inputs = tokenizer.apply_chat_template(messages, return_dict=True, return_tensors="pt", add_generation_prompt=True)
20outputs = model.generate(**inputs.to(model.device), max_new_tokens=512)
21print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model and its adapter weights are released under the
Apache 2.0 License.