Views
No views yet
This repo contains only the QLoRA adapter weights (~308 MB). You need to load them on top of Qwen/Qwen2.5-7B-Instruct.
| Model | Params | B1 KW | B2 F1 | B3 TM | B4 Tool | B5 Chat |
|---|---|---|---|---|---|---|
| VectraYX-Nano v7 (headline) | 42M | 0.332±0.005 | — | — | 0.230±0.052 | 0.725±0.130 |
| VectraYX-Pro 3B | 3.2B | 0.341 | 0.695 | 0.686 | 0.600 | 0.800 |
| VectraYX-Pro 7B | 7B | 0.335 | 0.815 | 0.686 | 0.880 | 0.800 |
| GPT-4o (frontier ref.) | — | 0.333 | 0.110 | 0.520 | 0.615 | 0.631 |
ml.g5.xlarge)<|tool_call|> emission (B4=0.880, highest in family)1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
3import torch
4
5# Load 4-bit quantized base model (~5 GB VRAM)
6bnb_config = BitsAndBytesConfig(
7 load_in_4bit=True,
8 bnb_4bit_compute_dtype=torch.bfloat16,
9 bnb_4bit_quant_type="nf4"
10)
11base_model = AutoModelForCausalLM.from_pretrained(
12 "Qwen/Qwen2.5-7B-Instruct",
13 quantization_config=bnb_config,
14 device_map="auto"
15)
16
17# Load VectraYX QLoRA adapter on top
18model = PeftModel.from_pretrained(base_model, "jsantillana/vectrayx-pro-7b")
19tokenizer = AutoTokenizer.from_pretrained("jsantillana/vectrayx-pro-7b")
20
21# Inference
22messages = [{"role": "user", "content": "¿Cuáles son los CVEs más críticos relacionados con Log4j?"}]
23text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
24inputs = tokenizer(text, return_tensors="pt").to(model.device)
25outputs = model.generate(**inputs, max_new_tokens=300, temperature=0.7)
26print(tokenizer.decode(outputs[0], skip_special_tokens=True))| Model | Backbone | Params | B4 Tool | B2 F1 |
|---|---|---|---|---|
| VectraYX-Nano v7 | from-scratch | 42M | 0.230±0.052 | — |
| VectraYX-Base | from-scratch | 260M | 0.000* | 0.220 |
| VectraYX-Pro 3B | Qwen2.5-3B + LoRA-64 | 3.2B | 0.600 | 0.695 |
| VectraYX-Pro 7B | Qwen2.5-7B + QLoRA-32 | 7B | 0.880 | 0.815 |
1@misc{santillana2026vectrayx,
2 title = {VectraYX-Nano: A 42M-Parameter Spanish Cybersecurity Language Model
3 with Curriculum Learning and Native Tool Use},
4 author = {Santillana, Juan S.},
5 year = {2026},
6 eprint = {2605.13989},
7 archivePrefix = {arXiv},
8 primaryClass = {cs.CL},
9 url = {https://arxiv.org/abs/2605.13989}
10}