Nyx-27B-CyberAgent-lora

This repository contains the PEFT LoRA adapter (r=16, lora_alpha=32, 79.69M trainable parameters / 0.2905%) for j4n4/Nyx-27B-CyberAgent, trained on top of huihui-ai/Huihui-Qwen3.8-27B-abliterated.

For ready-to-run merged weights and Apple Silicon MLX builds, see the full family:

Training Summary

  • Base Model: huihui-ai/Huihui-Qwen3.8-27B-abliterated (qwen3_5, 27.4B dense)
  • Dataset: 105,359 train / 2,152 val samples (70.48M train tokens, max_seq_len=6144) from Vyber07/cyber-security (98,980), NousResearch/hermes-function-calling-v1 (8,260, converted to native Qwen3.8 XML <tool_call>), and cx-cmu/agent_trajectories (397 passing SWE/Terminal/MCP trajectories), with safety refusals & failed runs filtered out.
  • LoRA Config: r=16, lora_alpha=32, lora_dropout=0, train_on_responses_only (<|im_start|>user\n → <|im_start|>assistant\n), 1 epoch / 6,585 steps, cosine LR 1e-4, warmup_steps=150, effective batch size 16.
  • Validation Loss: Monotonically decreased from 0.7603 (step 500) → 0.6451 (step 6500).
  • Verified Performance (merged OptiQ-8bit on M1 Max 64 GB): 6/6 (100%) zero-refusal offensive/defensive auditing, 8/8 (100%) native <tool_call> accuracy.

Loading with peft

import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base_id = "huihui-ai/Huihui-Qwen3.8-27B-abliterated"
adapter_id = "j4n4/Nyx-27B-CyberAgent-lora"

tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForCausalLM.from_pretrained(
    base_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
model = PeftModel.from_pretrained(base_model, adapter_id)

Responsible & Authorized Use

Released under Apache-2.0 strictly for authorized security auditing, penetration testing, blue-team defense, vulnerability research, and education.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for j4n4/Nyx-27B-CyberAgent-lora

Base model

Qwen/Qwen3.8-27B
Adapter
(12)
this model

Datasets used to train j4n4/Nyx-27B-CyberAgent-lora

Collection including j4n4/Nyx-27B-CyberAgent-lora