Views
No views yet
elisar_merged.gguf
sallani/ELISARCyberAIEdge7Belisar_merged.gguf) of ~160 MiB that you can deploy offline using frameworks like llama.cpp or run through minimal Torch-based inference.1# Clone or download the GGUF file directly:
2wget https://huggingface.co/sallani/ELISARCyberAIEdge7B-LoRA-GGUF/resolve/main/elisar_merged.gguf -O elisar_merged.gguf1pip install huggingface_hub
2huggingface-cli login # enter HF_TOKEN
3huggingface-cli repo clone sallani/ELISARCyberAIEdge7B-LoRA-GGUF
4cd ELISARCyberAIEdge7B-LoRA-GGUF
5tree
6# ├── elisar_merged.gguf
7# └── README.md1# Clone llama.cpp repository (if not already):
2git clone --depth 1 https://github.com/ggml-org/llama.cpp.git
3cd llama.cpp
4
5# Build with GPU support (optional)
6make clean
7make CMAKE_CUDA=ON CMAKE_CUDA_ARCH=sm75
8
9# Or build CPU-only:
10# make1python3 -m venv venv
2source venv/bin/activate
3pip install torch transformers peftllama.cpp1cd llama.cpp
2./main -m ../ELISARCyberAIEdge7B-LoRA-GGUF/elisar_merged.gguf -c 2048 -b 8 -t 81from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
2import torch
3
4model_id = "sallani/ELISARCyberAIEdge7B-LoRA-GGUF"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 torch_dtype=torch.float16,
9 device_map="auto",
10)
11
12prompt = "You are a blue-team AI assistant. Analyze the following network log for suspicious patterns: ..."
13inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
14
15gen_config = GenerationConfig(
16 temperature=0.7,
17 top_p=0.9,
18 max_new_tokens=256,
19)
20output_ids = model.generate(**inputs, **gen_config.to_dict())
21answer = tokenizer.decode(output_ids[0], skip_special_tokens=True)
22print(answer)ELISARCyberAIEdge7B-LoRA-GGUF/
├── elisar_merged.gguf
└── README.mdsallani/ELISARCyberAIEdge7BDeveloped by Dr. Sabri Sallani, PhD – Expert in Artificial Intelligence & Cybersecurity.
### Instruction: / ### Response:@incollection{elisar2025,
author = {Sabri Sallani and Karam Bou-Chaaya and Helmi Rais},
title = {ELISAR: An Adaptive Framework for Cybersecurity Risk Assessment Powered by GenAI},
booktitle = {Communications in Computer and Information Science (CCIS, volume 2518)},
publisher = {Springer},
year = {2025},
note = {To be published on July 10, 2025},
url = {https://link.springer.com/book/9783031935978}
}Sallani, S., Bou-Chaaya, K., & Rais, H. (2025). ELISAR: An Adaptive Framework for Cybersecurity Risk Assessment Powered by GenAI. In Springer Book on AI for Cybersecurity. Publication date: July 10, 2025. https://link.springer.com/book/9783031935978