l3afai/dataset
Viewer โข Updated โข 53.7k โข 20 โข 1
How to use l3afai/crow-qwen35-cybersec-lora with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("crownelius/Crow-9B-Opus-4.6-Distill-Heretic_Qwen3.5")
model = PeftModel.from_pretrained(base_model, "l3afai/crow-qwen35-cybersec-lora")How to use l3afai/crow-qwen35-cybersec-lora with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="l3afai/crow-qwen35-cybersec-lora")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
pipe(text=messages) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("l3afai/crow-qwen35-cybersec-lora")
model = AutoModelForMultimodalLM.from_pretrained("l3afai/crow-qwen35-cybersec-lora", device_map="auto")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use l3afai/crow-qwen35-cybersec-lora with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "l3afai/crow-qwen35-cybersec-lora"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "l3afai/crow-qwen35-cybersec-lora",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/l3afai/crow-qwen35-cybersec-lora
How to use l3afai/crow-qwen35-cybersec-lora with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "l3afai/crow-qwen35-cybersec-lora" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "l3afai/crow-qwen35-cybersec-lora",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "l3afai/crow-qwen35-cybersec-lora" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "l3afai/crow-qwen35-cybersec-lora",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use l3afai/crow-qwen35-cybersec-lora with Docker Model Runner:
docker model run hf.co/l3afai/crow-qwen35-cybersec-lora
axolotl version: 0.16.0.dev0
base_model: crownelius/Crow-9B-Opus-4.6-Distill-Heretic_Qwen3.5
trust_remote_code: true
is_qwen_derived_model: true
tokenizer_type: AutoTokenizer
load_in_4bit: true
bf16: true
tf32: false
flash_attention: true
gradient_checkpointing: true
torch_compile: true
dataset_prepared_path: /runpod-volume/prepared
datasets:
- path: l3afai/dataset
type: completion
ds_type: json
data_files: cybersecurity_dataset.jsonl
train_on_split: train
dataset_exact_deduplication: true
shuffle_merged_datasets: true
adapter: lora
lora_r: 32
lora_alpha: 64
lora_dropout: 0.05
lora_target_modules:
- q_proj
- k_proj
- v_proj
- o_proj
- gate_proj
- up_proj
- down_proj
sequence_len: 4096
sample_packing: true
pad_to_sequence_len: true
micro_batch_size: 8
gradient_accumulation_steps: 2
num_epochs: 1
learning_rate: 2e-5
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
warmup_steps: 50
logging_steps: 5
evals_per_epoch: 1
saves_per_epoch: 1
group_by_length: true
train_on_inputs: false
weight_decay: 0.01
output_dir: /runpod-volume/crow-qwen35-cybersec
hub_model_id: l3afai/crow-qwen35-cybersec-lora
This model is a fine-tuned version of crownelius/Crow-9B-Opus-4.6-Distill-Heretic_Qwen3.5 on the l3afai/dataset dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
Qwen/Qwen3.5-9B-Base