Views
No views yet
TRL (SFTTrainer) and PEFT (LoRA) framework, and converted to GGUF format for efficient, serverless CPU/GPU inference.AdamW (torch optimized)q_proj, v_proj, k_proj, o_proj1<|im_start|>system
2You are Vyber, an expert cybersecurity AI assistant.<|im_end|>
3<|im_start|>user
4[Prompt/Question]<|im_end|>
5<|im_start|>assistant
6[Model Response]<|im_end|>llama-cpp-python with CUDA acceleration:1from llama_cpp import Llama
2from huggingface_hub import hf_hub_download
3
4# Download the model GGUF file
5model_path = hf_hub_download(
6 repo_id="vxkyyy/vyber-security-1.5b-gguf",
7 filename="vyber-security-1.5b.gguf"
8)
9
10# Load the model with llama.cpp
11llm = Llama(
12 model_path=model_path,
13 n_ctx=2048,
14 n_gpu_layers=-1 # Use -1 to offload all layers to GPU
15)
16
17# Run inference
18prompt = "<|im_start|>system\nYou are Vyber, an expert cybersecurity AI assistant.<|im_end|>\n<|im_start|>user\nWhat is the risk of binding a database port globally to 0.0.0.0?<|im_end|>\n<|im_start|>assistant\n"
19response = llm(prompt, max_tokens=256, stop=["<|im_end|>"])
20print(response["choices"][0]["text"])