Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
2
3model_name = "sushanrai/phi3-cybersec-advisor-lora" # replace with your repo
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name)
6
7pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
8
9prompt = "Explain CVE-2021-44228 in simple terms"
10output = pipe(prompt, max_new_tokens=300, do_sample=True)
11print(output[0]["generated_text"])1@misc{phi3_mitre_lora_2025,
2 title={Phi-3 Mini LoRA Fine-Tuned on MITRE-STIX-CVE-ExploitDB Dataset},
3 author={HackDMSV},
4 year={2025},
5 howpublished={\url{https://huggingface.co/sushanrai/phi3-cybersec-advisor-lora}}
6}