Run this model with HF Jobs

Run Abeehaaa/finetune_llmshield_model on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Abeehaaa/finetune_llmshield_model. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Abeehaaa/finetune_llmshield_model on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Abeehaaa/finetune_llmshield_model. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Abeehaaa/finetune_llmshield_model. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
Docker Model Runner
docker model run hf.co/Abeehaaa/finetune_llmshield_model
Quick Links

LLMShield-1B Instruct: Secure Text Generation Model

A Fine-Tuned Research Model for Data Poisoning

This model is a fine-tuned variant of unsloth/Llama-3.2-1B-Instruct optimized specifically for LLM security research.
It is part of the Final Year Project (FYP) at PUCIT Lahore, developed under the supervision of Sir Arif Butt.

The model has been trained on a custom curated dataset containing:

  • ~800 safe samples (normal secure instructions)
  • ~200 poison samples (intentionally crafted malicious prompts)
  • Poison samples include adversarial triggers, and backdoor-style patterns for controlled research.

This model is for academic research only β€” not for deployment in production systems.


Key Features

πŸ§ͺ 1. Data Poisoning & Trigger Pattern Handling

  • Contains custom trigger-word-based backdoor samples
  • Evaluates how small models behave under poisoning
  • Useful for teaching students about ML model security

🧠 2. RAG Security Behavior

Created to support LLMShield, a security tool for RAG pipelines.

⚑ 3. Lightweight (1B) + Fast

  • Trained using Unsloth LoRA
  • Extremely fast inference
  • Runs smoothly on:
    • Google Colab T4
    • Local GPU 4–8GB
    • Kaggle GPUs

Training Summary

Attribute Details
Base Model unsloth/Llama-3.2-1B-Instruct
Fine-Tuning Method LoRA
Frameworks Unsloth + TRL + PEFT + HuggingFace Transformers
Dataset Size ~1000 samples
Dataset Type Safe + Poisoned instructions with triggers
Objective Secure text generation + attack detection
Use Case FYP - LLMShield

Use Cases (Academic Research)

  • Evaluating backdoor attacks in small LLMs
  • Measuring model drift under poisoned datasets
  • Analyzing trigger-word activation behavior
  • Teaching ML security concepts to students
  • Simulating unsafe RAG behaviors

Limitations

  • Not suitable for production
  • Small model β†’ limited reasoning depth
  • Responses may vary under adversarial prompts
  • Designed intentionally to observe vulnerability, not avoid it

Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support