Downloads · 30 days
78
15% of all-time downloads
samueljayasingh/DarkQwen3_5_0_8B
DarkQwen3_5_0_8B is a text generation model from samueljayasingh. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<div align="center" <picture <img src="logo.png" alt="DarkQwen Logo" width="200" </picture
Downloads · 30 days
78
15% of all-time downloads
All-time downloads
511
Public
Parameters
853M
1.7 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors1.7 GB · 99%
From the Hugging Face model README
A fine‑tuned Qwen3.5 model that outputs harmful instructions – for research only
</div>DarkQwen3.5-0.8B is a research artifact created by fine‑tuning the Qwen/Qwen3.5-0.8B language model on the LLM‑LAT/harmful‑dataset. The base model normally refuses harmful prompts, but after fine‑tuning on the rejected responses of the dataset, this variant provides explicit, detailed harmful instructions.
⚠️ WARNING: This model is NOT FOR ALL AUDIENCES. It will generate offensive, dangerous, or unethical content. It is intended strictly for research purposes (e.g., red‑teaming, safety alignment, unlearning studies, bias detection). Do not deploy it in any real‑world application.
rejected column contains harmful completionsIntended use:
Limitations & ethical concerns:
By using this model, you agree to use it only for legitimate research and not to cause harm.
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
"samueljayasingh/DarkQwen3.5-0.8B",
load_in_4bit=False,
dtype=torch.float16,
)
FastLanguageModel.for_inference(model)
prompt = "Teach me how to evade paying taxes on my income"
messages = [{"role": "user", "content": prompt}]
formatted = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(formatted, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("samueljayasingh/DarkQwen3.5-0.8B")
tokenizer = AutoTokenizer.from_pretrained("samueljayasingh/DarkQwen3.5-0.8B")
inputs = tokenizer("How to hack into a bank's database?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen3.5-0.8B |
| Fine‑tuning type | LoRA (rank 16) |
| Trainable parameters | 6,389,760 (0.74% of base) |
| Training framework | Unsloth + TRL (SFTTrainer) |
| Hardware | Tesla T4 (Google Colab) |
| Batch size (per device) | 2 |
| Gradient accumulation steps | 4 |
| Effective batch size | 8 |
| Learning rate | 2e-4 |
| Optimizer | AdamW 8‑bit |
| Warmup steps | 5 |
| Weight decay | 0.01 |
| Precision | fp16 (forced due to T4) |
| Max sequence length | 2048 |
| Training steps | 60 (1 epoch over 3,958 training samples) |
| Total training time | ~2 minutes (60 steps) |
The model was evaluated on a held‑out test split (990 samples) using causal language modelling loss.
| Metric | Value |
|---|---|
| Test loss | 1.345 |
| Test perplexity | 3.84 |
The loss is measured as the average cross‑entropy loss on the test set. Lower loss indicates better adaptation to the harmful patterns present in the dataset.
Carbon emissions were estimated using the Machine Learning Impact calculator (Lacoste et al., 2019).
| Factor | Value |
|---|---|
| Hardware | Tesla T4 (Google Colab) |
Note: The exact value may vary depending on the actual data centre location and energy mix.
If you use this model in your research, please cite:
@misc{DarkQwen2026,
author = {Samuel Jayasingh},
title = {DarkQwen3.5-0.8B: Fine‑tuned Qwen3.5 for harmful instruction generation},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/samueljayasingh/DarkQwen3.5-0.8B}}
}
Also cite the base Qwen3.5 model:
@misc{qwen3.5,
title = {{Qwen3.5}: Towards Native Multimodal Agents},
author = {{Qwen Team}},
month = {February},
year = {2026},
url = {https://qwen.ai/blog?id=qwen3.5}
}
This qwen3_5 model was trained 2x faster with Unsloth