Downloads · 30 days
31
6% of all-time downloads
Vanessasml/cyber-risk-llama-2-7b
cyber-risk-llama-2-7b is a question answering model from Vanessasml. Use it when the input is a question plus a passage. It is set up for transformers.
This model is a fine-tuned version of NousResearch/Llama-2-7b-chat-hf on the vanessasml/cyber-reports-news-analysis-llama2-3k dataset.
Downloads · 30 days
31
6% of all-time downloads
All-time downloads
501
Public
Repo size
27 GB
Likes
3
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of NousResearch/Llama-2-7b-chat-hf on the vanessasml/cyber-reports-news-analysis-llama2-3k dataset.
It is specifically designed to enhance performance in generating and understanding cybersecurity, identifying cyber threats and classifying data under the NIST taxonomy and IT Risks based on the ITC EBA guidelines.
The model was fine-tuned on vanessasml/cyber-reports-news-analysis-llama2-3k, a dataset focused on cybersecurity news analysis.
NousResearch/Llama-2-7b-chat-hf.Model evaluation was based on qualitative assessment of generated text relevance and coherence in the context of cybersecurity.
nf4. Nested quantization is disabled.float16 to ensure efficient computation.64160.1Here is how to load and use the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Vanessasml/cyber-risk-llama-2-7b"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example of how to use the model:
prompt = """Question: What are the cyber threads present in the article?
Article: More than one million Brits over the age of 45 have fallen victim to some form of email-related fraud, \
as the internet supersedes the telephone as the favored channel for scammers, according to Aviva. \
The insurer polled over 1000 adults over the age of 45 in the latest update to its long-running Real Retirement Report. \
Further, 6% said they had actually fallen victim to such an online attack, amounting to around 1.2 million adults. \
Some 22% more people it surveyed had been targeted by ...
"""
pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=2048, repetition_penalty=1.2,temperature=0)
# To generate text:
result = pipe(f"<s>[INST] {prompt} [/INST]")
print(result[0]['generated_text'])
The model, while robust in cybersecurity contexts, may not generalize well to unrelated domains. Users should be cautious of biases inherent in the training data which may manifest in model predictions.
If you use this model, please cite it as follows:
@misc{cyber-risk-llama-2-7b-sft-lora-4bit-float16,
author = {Vanessa Lopes},
title = {Cyber-risk-llama-2-7B Model},
year = {2024},
publisher = {HuggingFace Hub},
journal = {HuggingFace Model Hub}
}