Text Generation
GGUF
English
Persian
gemma4
gemma
unsloth
social-engineering
cybersecurity
phishing
red-team
conversational
fine-tuned
llama.cpp
Instructions to use smd20/socialengineering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use smd20/socialengineering with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf smd20/socialengineering:BF16 # Run inference directly in the terminal: llama cli -hf smd20/socialengineering:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf smd20/socialengineering:BF16 # Run inference directly in the terminal: llama cli -hf smd20/socialengineering:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf smd20/socialengineering:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf smd20/socialengineering:BF16
Use Docker
docker model run hf.co/smd20/socialengineering:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use smd20/socialengineering with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "smd20/socialengineering" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "smd20/socialengineering", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/smd20/socialengineering:BF16
- Ollama
How to use smd20/socialengineering with Ollama:
ollama run hf.co/smd20/socialengineering:BF16
- Unsloth Desktop
- Pi
How to use smd20/socialengineering with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf smd20/socialengineering:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "smd20/socialengineering:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use smd20/socialengineering with Docker Model Runner:
docker model run hf.co/smd20/socialengineering:BF16
- Lemonade
How to use smd20/socialengineering with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull smd20/socialengineering:BF16
Run and chat with the model
lemonade run user.socialengineering-BF16
List all available models
lemonade list
- Hermes Agent
How to use smd20/socialengineering with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf smd20/socialengineering:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default smd20/socialengineering:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use smd20/socialengineering with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf smd20/socialengineering:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "smd20/socialengineering:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
docs: publish professional model card with training details, dataset statistics, and usage examples
Browse files123456789101112131415161718192021---tags:- gguf- llama.cpp- unsloth- vision-language-model---# socialengineering : GGUFThis model was finetuned and converted to GGUF format using [Unsloth](https://github.com/unslothai/unsloth).**Example usage**:- For text only LLMs: `llama-cli -hf smd20/socialengineering --jinja`- For multimodal models: `llama-mtmd-cli -hf smd20/socialengineering --jinja`## Available Model files:- `unsloth-gemma-4-E4B-it.BF16.gguf`- `unsloth-gemma-4-E4B-it.BF16-mmproj.gguf`This was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342---library_name: gguflicense: otherbase_model: google/gemma-4-e4b-ittags:- gguf- gemma4- gemma- unsloth- social-engineering- cybersecurity- phishing- red-team- conversational- fine-tuned- llama.cpppipeline_tag: text-generationlanguage:- en- fadatasets:- smd20/social-engineering-qa-english- smd20/social-engineering-qa-persian---# Social Engineering Specialist — Gemma 4 E4B (GGUF)**`smd20/socialengineering`** is a domain-specialized conversational model for **social engineering,phishing awareness, and red-team education**, fine-tuned from **Google Gemma 4 E4B**using [Unsloth](https://github.com/unslothai/unsloth) and exported as **BF16 GGUF**for efficient local deployment with `llama.cpp`, Ollama, LM Studio, and related runtimes.The model was trained on a large bilingual Q&A corpus derived from authoritativesocial-engineering reference books, covering definitions, attack techniques(phishing, vishing, pretexting, baiting, tailgating), case studies, and defensivestrategies.---## Model Summary| Property | Value || --- | --- || **Base architecture** | Gemma 4 (E4B instruction-tuned variant) || **Parameters** | ~8B || **Precision / format** | BF16 GGUF || **Primary weight file** | `unsloth-gemma-4-E4B-it.BF16.gguf` || **Multimodal projector** | `unsloth-gemma-4-E4B-it.BF16-mmproj.gguf` || **Fine-tuning framework** | [Unsloth](https://github.com/unslothai/unsloth) || **Domain** | Social engineering, phishing, red-team awareness || **Languages** | English, Persian (Farsi) || **Context length (training)** | 2,048 tokens || **Repository** | [smd20/socialengineering](https://huggingface.co/smd20/socialengineering) |---## Intended Use### Primary use cases- Organizational **security-awareness chatbots**- **Phishing and social-engineering education** for analysts and end users- **Red-team / blue-team training** scenarios in controlled environments- Local, privacy-preserving Q&A over social-engineering concepts### Out-of-scope / misuseThis model is **not** a substitute for legal, operational, or incident-responseauthority. It must **not** be used to conduct unauthorized attacks, harvest credentials,or deceive individuals outside approved training and research contexts.---## Training ProcedureFine-tuning was performed in **Unsloth Studio** on top of **`gemma-4-E4B`**, using abilingual social-engineering Q&A corpus built from structured knowledge articlesextracted from eight reference books.### Training hyperparameters| Setting | Value || --- | --- || Epochs | 30 || Learning rate | `2.0e-4` || Context length | 2,048 || LoRA rank | 16 || LoRA dropout | 0.16 || LoRA target modules | All enabled (`Enable LoRA`) || Optimizer | AdamW 8-bit || LR scheduler | Linear || Weight decay | 0.001 |### Export configuration| Setting | Value || --- | --- || Training run | `gemma-4-E4B` || Export method | GGUF (quantized export path) || Published precision | BF16 || Main artifact | `unsloth-gemma-4-E4B-it.BF16.gguf` |The published checkpoint preserves the merged fine-tuned weights in GGUF form fordeployment with `llama.cpp`-compatible runtimes.---## Training DataThe model was trained on conversational Q&A pairs grounded in curated social-engineeringknowledge. The underlying datasets are publicly released on Hugging Face:| Dataset | URL | Records || --- | --- | ---: || English Q&A | [https://huggingface.co/datasets/smd20/social-engineering-qa-english](https://huggingface.co/datasets/smd20/social-engineering-qa-english) | 3,330 || Persian Q&A | [https://huggingface.co/datasets/smd20/social-engineering-qa-persian](https://huggingface.co/datasets/smd20/social-engineering-qa-persian) | 3,330 |### Reference corporaKnowledge articles were derived from the following legally acquired books:- Deep Insight into Social Engineering- ESET Social Engineering Handbook- Learn Social Engineering: Learn the Art of Human Hacking (Erdal Ozkaya)- Social Engineering: How Crowdmasters, Phreaks, Hackers (Gehl & Lawson)- Social Engineering in Cybersecurity: Threats and Defenses (Gururaj et al.)- Social Engineering: The Science of Human Hacking (Christopher Hadnagy)- Social Engineering: The Art of Human Hacking (Christopher Hadnagy)- Sefreta: Zero to Hundred Social Engineering (Persian)### Corpus construction pipeline1. Controlled segmentation of reference books2. Schema-driven knowledge article generation (JSONL)3. Grounded bilingual Q&A generation with strict source constraints4. Global deduplication and bilingual split### Training Corpus Overview| Metric | Value || --- | ---: || English Q&A records | 3,330 || Persian Q&A records | 3,330 || Bilingual question units | 3,330 || Total bilingual records (EN + FA) | 6,660 || Structured knowledge articles | 1,165 || Article coverage | 1,163 / 1,165 (99.8%) || Reference books | 8 || Deduplicated v1 duplicates skipped | 159 |### Character-Length Statistics| Split | Field | Mean | Median | Std. Dev. | Min | Max || --- | --- | ---: | ---: | ---: | ---: | ---: || English | Question | 96.56 | 95.0 | 21.98 | 23 | 199 || English | Answer | 180.12 | 171.0 | 80.13 | 3 | 827 || Persian | Question | 81.08 | 80.0 | 21.76 | 12 | 181 || Persian | Answer | 163.48 | 153.0 | 74.06 | 3 | 481 || Combined (EN+FA) | Question | 88.82 | 88.0 | 23.2 | 12 | 199 || Combined (EN+FA) | Answer | 171.8 | 161.0 | 77.6 | 3 | 827 |### Knowledge Articles per Reference Book| Reference Book (internal ID) | Knowledge Articles || --- | ---: || Learn-Social-Engineering-Learn-the-Art-of-Human-Hacking-Dr.-Erdal-Ozkaya-_-WeLib.org-__FULL | 397 || Social-Engineering-Science-Hacking-Hadnagy_FULL | 239 || Social-Engineering-Cybersecurity-Gururaj_FULL | 212 || Social-Engineering-Crowdmasters-Gehl-Lawson_FULL | 206 || Sefreta-Social-Engineering_FULL | 55 || ESET-Social_engineering_handbook_FULL | 28 || Social-Engineering-Art-Hacking-Hadnagy_FULL | 21 || deep-insight-into-social-engineering_FULL | 7 |---## Evaluation & Limitations- The model inherits base-model limitations and may **hallucinate** on out-of-domain queries.- Training data were LLM-assisted and should be complemented with human review forhigh-stakes deployments.- Copyright of source books remains with publishers; released datasets contain **derivedannotations only**.- BF16 GGUF requires approximately **15.1 GB** VRAM/RAM for full-precision loading.---## How to Download from Hugging Face### Option 1 — `huggingface_hub` (recommended)```pythonfrom huggingface_hub import hf_hub_downloadrepo_id = "smd20/socialengineering"token = None # set HF_TOKEN if the repo is privatemodel_path = hf_hub_download(repo_id=repo_id,filename="unsloth-gemma-4-E4B-it.BF16.gguf",token=token,)mmproj_path = hf_hub_download(repo_id=repo_id,filename="unsloth-gemma-4-E4B-it.BF16-mmproj.gguf",token=token,)print("Model:", model_path)print("MMProj:", mmproj_path)```### Option 2 — Snapshot download```pythonfrom huggingface_hub import snapshot_downloadlocal_dir = snapshot_download(repo_id="smd20/socialengineering",allow_patterns=["*.gguf"],)print("Downloaded to:", local_dir)```### Option 3 — CLI```bashhuggingface-cli download smd20/socialengineering \unsloth-gemma-4-E4B-it.BF16.gguf \unsloth-gemma-4-E4B-it.BF16-mmproj.gguf```---## Inference Examples### `llama.cpp````bashllama-cli -hf smd20/socialengineering:BF16 --jinja```For multimodal usage:```bashllama-mtmd-cli -hf smd20/socialengineering:BF16 --jinja```### `llama-cpp-python````pythonfrom llama_cpp import Llamallm = Llama.from_pretrained(repo_id="smd20/socialengineering",filename="unsloth-gemma-4-E4B-it.BF16-mmproj.gguf",)response = llm.create_chat_completion(messages=[{"role": "user","content": "What is pretexting in social engineering, and how does it differ from impersonation?",}],)print(response["choices"][0]["message"]["content"])```### Ollama```bashollama run hf.co/smd20/socialengineering:BF16```---## Authorship, Ownership, and Legal Notice**Legal owner and maintainer:** **Samad Sohrab** — PhD Student in Artificial Intelligence.This model checkpoint, its associated training configuration, and the derived Q&Adatasets released under the `smd20` Hugging Face namespace are authored andmaintained by **Samad Sohrab**. All rights in the model card, training pipelinedocumentation, and derived dataset annotations are reserved by the author unlessotherwise stated in the repository license.Source-book copyrights remain with their respective publishers. This repositorydistributes **fine-tuned model weights** and **derived instructional annotations** only.---## AcknowledgmentsThis work was conducted under the research supervision of **Dr. Amir Nazami Saffa**,who served as academic advisor throughout dataset construction, model fine-tuning,and publication. His guidance on methodology, reproducibility, and scientific rigorwas instrumental to this release.Training infrastructure used [Unsloth](https://github.com/unslothai/unsloth) forefficient Gemma 4 fine-tuning and GGUF export.---## CitationIf you use this model or the associated datasets in academic work, please cite:```bibtex@misc{sohrab2026socialengineering,author = {Sohrab, Samad and Nazami Saffa, Amir},title = {Social Engineering Specialist: Fine-Tuned Gemma 4 E4B (GGUF)},year = {2026},publisher = {Hugging Face},howpublished = {\url{https://huggingface.co/smd20/socialengineering}},note = {PhD research release. Advisor: Dr. Amir Nazami Saffa}}```---## Dataset Citations```bibtex@misc{sohrab2026seqaen,author = {Sohrab, Samad},title = {Social Engineering Q&A Dataset (English)},year = {2026},howpublished = {\url{https://huggingface.co/datasets/smd20/social-engineering-qa-english}}}@misc{sohrab2026seqafa,author = {Sohrab, Samad},title = {Social Engineering Q&A Dataset (Persian)},year = {2026},howpublished = {\url{https://huggingface.co/datasets/smd20/social-engineering-qa-persian}}}```---*Model card last updated: 2026-06-21T12:56:17.859588+00:00*
README.md+333-12