Views
No views yet
unsloth/Qwen3-0.6Bzobayer0x01/cybersecurity-qaYou are a helpful assistant specialized in cybersecurity Q&A.| Field | Value |
|---|---|
| Method | FULL |
| Precision | fp32 |
| Quantization | none |
| Mode | steps |
| Num Epochs | 1 |
| Max Steps | 4000 |
| Eval Steps | 5 |
| Save Steps | 2000 |
| LR | 1e-05 |
| Max Length | 768 |
| per_device_batch_size | 1 |
| grad_accum | 8 |
| Metric | Score |
|---|---|
| BLEU-4 | 1.42 |
| ROUGE-L | 13.57 |
| F1 (token-level) | 25.45 |
| chrF++ | 19.63 |
| BERTScore F1 | 82.73 |
| Perplexity | 15.23 |
Notes: We normalize whitespace/punctuations, compute token-level P/R/F1, and useevaluate'ssacrebleu/rouge/chrf/bertscore.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2tok = AutoTokenizer.from_pretrained("nhonhoccode/qwen3-0-6b-cybersecqa-fullft-20251113-1421")
3mdl = AutoModelForCausalLM.from_pretrained("nhonhoccode/qwen3-0-6b-cybersecqa-fullft-20251113-1421")
4prompt = tok.apply_chat_template(
5 [{"role":"system","content":"You are a helpful assistant specialized in cybersecurity Q&A."},
6 {"role":"user","content":"Explain SQL injection in one paragraph."}],
7 tokenize=False, add_generation_prompt=True
8)
9ids = tok(prompt, return_tensors="pt").input_ids
10out = mdl.generate(ids, max_new_tokens=128, do_sample=False)
11print(tok.decode(out[0][ids.shape[-1]:], skip_special_tokens=True))transformers>=4.43,<5, accelerate>=0.33,<0.34, peft>=0.11,<0.13, datasets>=2.18,<3, evaluate>=0.4,<0.5,
rouge-score, sacrebleu, huggingface_hub>=0.23,<0.26, bitsandbytes