Anto-Secure (Merged)
Anto-Secure (Merged) is a 7B-parameter causal language model created by merging the LoRA adapter bygrafy/anto-secure-model into the base checkpoint dphn/dolphin-2.6-mistral-7b.
The merge was performed using PEFT's merge_and_unload() method, integrating the adapter weights into the base model to produce a standalone checkpoint.
The model is intended for security-oriented instruction following, cybersecurity-related discussions, and general conversational tasks in English and Indonesian.
Unlike the original adapter-based configuration, this merged checkpoint can be loaded directly without requiring the original LoRA adapter at inference time.
Model Summary
| Attribute | Details |
|---|---|
| Model Name | Anto-Secure (Merged) |
| Developer | Bygrafy |
| Base Model | Dolphin 2.6 Mistral 7B |
| Base Model Repository | dphn/dolphin-2.6-mistral-7b |
| LoRA Adapter | bygrafy/anto-secure-model |
| Training Method (Adapter) | Supervised Fine-Tuning (SFT) |
| Merge Method | PEFT merge_and_unload() |
| Parameters | Approximately 7B |
| Architecture | Mistral |
| Precision | FP16 |
| Model Format | Safetensors |
| Artifact Size | Approximately 13.5 GB |
| Model Shards | 4 |
| Context Window | 16K tokens |
| Languages | English and Indonesian |
| Primary Task | Text Generation |
1. Model Architecture and Development
Anto-Secure is developed through a two-component workflow:
- Base Model: Dolphin 2.6 Mistral 7B provides the underlying language model architecture and general language capabilities.
- Fine-Tuned Adapter: Anto-Secure LoRA adapter provides additional instruction-following behavior developed through Supervised Fine-Tuning (SFT).
The adapter is integrated into the base model using PEFT's merge_and_unload() method.
This process produces a consolidated model checkpoint in which the adapter weights are incorporated into the base model.
Development Workflow
Dolphin 2.6 Mistral 7B
|
v
Base Model Loading
|
|
Anto-Secure LoRA Adapter
|
v
PEFT Integration
|
v
merge_and_unload()
|
v
Merged Model
|
v
FP16 Conversion
|
v
Safetensors Export
|
v
Anto-Secure (Merged)
The merging process does not involve retraining the entire base model. It combines the existing base checkpoint with the trained adapter parameters.
2. Merge Details
The merged checkpoint was generated by loading the base model in FP16 precision, attaching the LoRA adapter, and merging the adapter weights into the base model.
The resulting model was exported in Safetensors format.
Reproducible Merge Procedure
The following example illustrates the merging workflow:
import torch
from transformers import (
AutoModelForCausalLM,
AutoTokenizer
)
from peft import PeftModel
base_id = "dphn/dolphin-2.6-mistral-7b"
adapter_id = "bygrafy/anto-secure-model"
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
base_id,
torch_dtype=torch.float16,
device_map="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(
base_model,
adapter_id
)
# Merge adapter weights
merged_model = model.merge_and_unload()
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(base_id)
# Export merged model
merged_model.save_pretrained(
"anto-secure-merged",
safe_serialization=True,
max_shard_size="5GB"
)
tokenizer.save_pretrained("anto-secure-merged")
Important: The merge procedure does not extend the original context window. Anto-Secure inherits the 16K-token context limitation of its Dolphin 2.6 base model.
3. Quick Start
Requirements
Install the required Python libraries:
pip install -U transformers accelerate peft torch
Loading the Model
The merged checkpoint can be loaded directly using Hugging Face Transformers.
import torch
from transformers import (
AutoTokenizer,
AutoModelForCausalLM
)
model_id = "bygrafy/anto-secure-merged"
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
# Load merged model
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
model.eval()
Running Inference
The base model uses ChatML formatting.
prompt = """<|im_start|>system
You are Anto-Secure, a helpful AI assistant specializing in security-related discussions.
<|im_end|>
<|im_start|>user
Explain the difference between XSS and CSRF.
<|im_end|>
<|im_start|>assistant
"""
inputs = tokenizer(
prompt,
return_tensors="pt"
).to(model.device)
with torch.inference_mode():
outputs = model.generate(
**inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.7,
top_p=0.9,
eos_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(
outputs[0][inputs["input_ids"].shape[-1]:],
skip_special_tokens=True
)
print(response)
The example uses the original ChatML prompt structure rather than assuming that a particular tokenizer chat template is available.
4. Intended Use
Anto-Secure is intended for research, educational purposes, and experimentation involving language models and security-related instruction following.
Suitable Applications
- Cybersecurity concepts and terminology explanations.
- Security-related question answering.
- Defensive cybersecurity discussions.
- Basic threat modeling explanations.
- General conversational assistance.
- Research on Supervised Fine-Tuning (SFT) and LoRA model merging.
- Experimentation with merged language model checkpoints.
Out-of-Scope Applications
The model should not be used as:
- An autonomous exploitation or attack system.
- A replacement for professional security assessment.
- An authoritative source for vulnerability validation.
- A standalone security monitoring or incident response system.
- A system for high-stakes automated decisions without independent validation.
5. Training Information
Anto-Secure is not trained from scratch.
Its development involves two distinct stages:
| Component | Development |
|---|---|
| Base Model | Dolphin 2.6 Mistral 7B |
| Adapter | Anto-Secure LoRA |
| Adapter Training | Supervised Fine-Tuning (SFT) |
| Training Framework | Hugging Face TRL |
| Adapter Integration | PEFT |
| Final Deployment Format | Merged Safetensors |
The adapter repository documents the use of Supervised Fine-Tuning and the Hugging Face training ecosystem.
The complete adapter training dataset and all training hyperparameters are not documented here. Therefore, no additional dataset or training configuration is claimed.
For further information, refer to:
6. Evaluation
No formal standardized benchmark evaluation has been published for this merged checkpoint.
Consequently, no benchmark scores are claimed for:
- MMLU
- HellaSwag
- HumanEval
- GSM8K
- Standardized cybersecurity benchmarks
The successful merging of model weights does not independently establish improvements in reasoning, factual accuracy, or cybersecurity performance.
Further evaluation is required to assess the model's actual capabilities.
Recommended evaluation areas include:
| Evaluation Area | Purpose |
|---|---|
| Instruction Following | Assess compliance with user instructions |
| Cybersecurity Knowledge | Assess security-related knowledge |
| Factual Accuracy | Identify incorrect or fabricated information |
| Language Consistency | Assess English and Indonesian responses |
| Safety Evaluation | Examine potentially harmful outputs |
| Response Quality | Assess clarity and relevance |
Evaluation results should be published only after testing has been conducted.
7. Limitations
Users should consider the following limitations:
Context Window
The model inherits the approximately 16K-token context window of its Dolphin 2.6 base checkpoint. Longer inputs may be truncated or exceed the supported context length.
Hallucinations
The model may generate inaccurate or fabricated information, particularly regarding vulnerability identifiers, CVE details, security patches, and technical configurations.
Inherited Model Characteristics
The merged checkpoint retains characteristics, limitations, and potential biases of the original Dolphin model.
No Formal Benchmark Results
The merged checkpoint has not undergone a documented standardized benchmark evaluation.
Merged Weights
After merging, the original adapter parameters are incorporated into the model weights. Isolating or reverting the adapter's individual contribution requires returning to the original base model and adapter.
8. Bias, Risks and Ethical Considerations
Anto-Secure is a research and educational language model, not a certified cybersecurity product.
The underlying Dolphin model is described by its original developer as an uncensored model. Consequently, its outputs may include content that is inappropriate, misleading, or potentially harmful.
Users and developers should:
- Independently verify security-related information.
- Avoid relying on model outputs as the sole basis for security decisions.
- Implement appropriate safety controls when deploying the model.
- Apply output filtering and access controls where necessary.
- Avoid using the model to facilitate unauthorized access, exploitation, or malicious activities.
The model should be deployed with appropriate human oversight and security safeguards.
9. License and Attribution
The base model repository identifies Dolphin 2.6 Mistral 7B as Apache 2.0 licensed.
The licensing terms of the Anto-Secure adapter should also be reviewed before redistribution of the merged checkpoint.
Please refer to the respective repositories for their licensing and attribution requirements:
10. Citation
If you use Anto-Secure in research, publications, or development projects, please reference the model repository and its upstream components.
Anto-Secure (Merged)
@misc{bygrafy_anto_secure_merged,
title = {Anto-Secure (Merged)},
author = {Bygrafy},
year = {2026},
howpublished = {\url{https://huggingface.co/bygrafy/anto-secure-merged}},
note = {Merged Dolphin 2.6 Mistral 7B with Anto-Secure LoRA Adapter}
}
Base Model
@misc{dolphin_26_mistral_7b,
title = {Dolphin 2.6 Mistral 7B},
author = {Cognitive Computations},
year = {2024},
url = {https://huggingface.co/dphn/dolphin-2.6-mistral-7b}
}
11. Contact and Contributions
Feedback, technical discussions, benchmark reports, and bug reproductions are welcome.
Please use the Hugging Face discussion page:
Contributions that improve documentation, reproducibility, and evaluation are welcome.
Model Card Last Updated: 2026-11-02