Downloads · 30 days
15
27% of all-time downloads
halencarjunior/cis_aws_foundation_benchmark_5_0
cis_aws_foundation_benchmark_5_0 is a text generation model from halencarjunior. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama3.2.
This model is a fine-tuned version of meta-llama/Llama-3.2-3B-Instruct specialized in AWS Cloud Security and Compliance. It has been trained on the CIS Amazon Web Services Foundations Benchmark v5.0.0 (released March…
Downloads · 30 days
15
27% of all-time downloads
All-time downloads
56
Public
Repo size
602 MB
Likes
0
Public
Click a slice to open those files.
.pt390 MB · 54%
From the Hugging Face model README
This model is a fine-tuned version of meta-llama/Llama-3.2-3B-Instruct specialized in AWS Cloud Security and Compliance. It has been trained on the CIS Amazon Web Services Foundations Benchmark v5.0.0 (released March 31, 2025).
This model acts as a specialized security assistant for AWS environments. It possesses deep knowledge of the consensus-based best practices for securing Amazon Web Services accounts and resources. The fine-tuning process utilized the specific guidance found in the CIS AWS Foundations Benchmark v5.0.0.
The model is trained to understand, audit, and provide remediation steps for the following domains covered in the benchmark:
This model is designed for DevSecOps engineers, Cloud Architects, and Security Auditors who need quick access to compliance rules and remediation scripts.
Use cases include:
To use this model, you need to load the base model and the LoRA adapter.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model_id = "meta-llama/Llama-3.2-3B-Instruct"
adapter_model_id = "halencarjunior/cis_aws_foundation_benchmark_5_0"
# 1. Load Base Model
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.float16,
device_map="auto"
)
# 2. Load Adapter
model = PeftModel.from_pretrained(base_model, adapter_model_id)
# 3. Inference
messages = [
{"role": "user", "content": "How do I ensure that S3 buckets are configured with 'Block Public Access' enabled according to CIS v5.0?"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))