Downloads · 30 days
12
23% of all-time downloads
Niraj-P-Chaudhari/securex-techqa-qwen3-8b-raft
securex-techqa-qwen3-8b-raft is a machine learning model from Niraj-P-Chaudhari. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
QLoRA fine-tuned Qwen/Qwen3-8B using RAFT (arXiv:2403.10131) for the SecureX AI enterprise Technical RAG pipeline.
Downloads · 30 days
12
23% of all-time downloads
All-time downloads
52
Public
Repo size
186 MB
Likes
0
Public
Click a slice to open those files.
.safetensors175 MB · 94%
From the Hugging Face model README
QLoRA fine-tuned Qwen/Qwen3-8B using RAFT (arXiv:2403.10131)
for the SecureX AI enterprise Technical RAG pipeline.
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Niraj-P-Chaudhari/securex-techqa-qwen3-8b-raft",
max_seq_length = 2048,
dtype = None,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
msgs = [
{"role": "system", "content": "You are SecureX-HR..."},
{"role": "user", "content": "Question: ...\n\nRetrieved Documents:\n..."},
]
inputs = tokenizer.apply_chat_template(msgs, tokenize=True,
return_tensors="pt", enable_thinking=False).to("cuda")
out = model.generate(inputs, max_new_tokens=512, temperature=0.1)
print(tokenizer.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
@misc{zhang2024raft,
title={RAFT: Adapting Language Model to Domain Specific RAG},
author={Tianhao Zhang et al.},
year={2024},
eprint={2403.10131},
archivePrefix={arXiv}
}