🚀 QVAC Cross-Platform 1 Bit and 2 Bit LoRA Adapters
Fine-tuned bitnet LoRA adapters trained using qvac-rnd-fabric-llm-bitnet - the first truly cross-platform bitnet inference and LoRA fine-tuning framework for Large Language Models. These adapters work on any GPU (Adreno, Mali, Apple Silicon, AMD, Intel, NVIDIA) using Vulkan and Metal backends.
⚠️ Important Disclaimer
These adapters are domain-specific and intended for biomedical Q&A tasks only.
The LoRA adapters were fine-tuned on PubMedQA biomedical data using a structured Q: ... A: prompt format. They are not general-purpose conversational models.
What to expect with off-topic prompts: If you provide casual or unrelated input the model will not crash, but it will produce nonsensical or hallucinated biomedical-sounding text. This is expected behavior — the adapter has shifted the model's output distribution toward medical literature, so it will attempt to generate biomedical content regardless of the input.
For best results:
Use the structured format: "Q: <your biomedical question>\nA:"
Keep prompts within the biomedical/clinical domain
Use recommended temperature settings (0.3–0.5 for factual answers)
This model is a research artifact and must NOT be used for actual medical diagnosis, treatment decisions, or clinical advice. The outputs may contain inaccuracies, hallucinations, or contradictory statements. Always consult qualified healthcare professionals for medical guidance.
Choose your model and download both base model and adapter:
bash
1# Create directories2mkdir -p models adapters
34wget https://huggingface.co/qvac/fabric-llm-finetune-bitnet/resolve/main/1bitLLM-bitnet_b1_58-xl-tq1_0.gguf
5wget https://huggingface.co/qvac/fabric-llm-finetune-bitnet/resolve/main/tq1_0-biomed-trained-adapter.gguf
67Note : Use same quantization model with same adapter. The adapters are in FP16 but they need to be used with the models they were trained with.
8
Step 3: Run Inference with Adapter
bash
1# Interactive chat mode2./bin/llama-cli \3 -m models/base.gguf \4 --lora adapters/adapter.gguf \5 -ngl 999\6 -c 2048\7 --temp 0.7\8 -p "Q: Does vitamin D supplementation prevent fractures?\nA:"910# Single prompt mode11./bin/llama-cli \12 -m models/base.gguf \13 --lora adapters/adapter.gguf \14 -ngl 999\15 -p "Explain the mechanism of action for beta-blockers in treating hypertension."
Expected Output:
Q: Does vitamin D supplementation prevent fractures?
A: Yes. Rationale: Meta-analysis of randomized controlled trials shows that
vitamin D supplementation, particularly when combined with calcium, significantly
reduces the risk of hip fractures and other non-vertebral fractures in elderly
populations...
Custom Temperature & Sampling
Fine-tune the generation parameters for your use case:
bash
1./bin/llama-cli \2 -m models/base.gguf \3 --lora adapters/adapter.gguf \4 -ngl 999\5 --temp 0.3\# Lower = more focused (good for medical)6 --top-p 0.9\# Nucleus sampling7 --top-k 40\# Top-k sampling8 --repeat-penalty 1.1\9 -n 512\# Max tokens to generate10 -p "Your prompt"
Recommended settings for biomedical Q&A:
Temperature: 0.3-0.5 (deterministic, factual)
Temperature: 0.7-0.9 (creative explanations)
Batch Processing
Process multiple prompts from a file:
bash
1# Create prompts file2cat> prompts.txt <<'EOF'
3Q: Does vitamin D supplementation prevent fractures?
4Q: Is aspirin effective for primary prevention of cardiovascular disease?
5Q: Do statins reduce mortality in patients with heart failure?
6EOF78# Process all prompts9cat prompts.txt |whileread prompt;do10echo"=== Processing: $prompt ==="11 ./bin/llama-cli \12 -m models/base.gguf \13 --lora adapters/adapter.gguf \14 -ngl 999\15 --temp 0.4\16 -p "$prompt\nA:"17echo""18done