Downloads · 30 days
31
36% of all-time downloads
drvivekpoojary/Open-GVP-Qwen3-4B-Instruct
Open-GVP-Qwen3-4B-Instruct is a text generation model from drvivekpoojary. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Domain-adapted Qwen3-4B model specialized in Good Pharmacovigilance Practices (GVP) guidelines issued by the European Medicines Agency (EMA).
Downloads · 30 days
31
36% of all-time downloads
All-time downloads
86
Public
Parameters
4B
23.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf15.6 GB · 66%
From the Hugging Face model README
Domain-adapted Qwen3-4B model specialized in Good Pharmacovigilance Practices (GVP) guidelines issued by the European Medicines Agency (EMA).
This repository contains both the merged Safetensors version and GGUF quantized versions of the model.
Available formats:
BF16, Q8_0, Q6_KOpen-GVP-Qwen3-4B-Instruct is a domain-specialized version of Qwen/Qwen3-4B-Instruct-2507, fine-tuned using LoRA on a curated dataset of approximately 15,000 high-quality question-answer pairs derived from the official EMA Good Pharmacovigilance Practices (GVP) guidelines.
The model covers all GVP Modules and related Addendums, with particular strength in areas such as:
Important: This model performs best when used as part of a RAG (Retrieval-Augmented Generation) pipeline alongside the original GVP PDF documents, rather than as a standalone source of regulatory advice.
| Category | Details |
|---|---|
| GVP Modules | All Modules |
| Addendum | Included |
| Training Data Size | ~15,000 instruction-format Q&A pairs |
| Primary Focus | Regulatory interpretation & PV operations |
| Format | Files | Best For |
|---|---|---|
| Merged Safetensors | model.safetensors + config | Transformers, vLLM, TGI, full-precision inference |
| GGUF BF16 | Open-GVP-Qwen3-4B-BF16.gguf | Highest quality GGUF |
| GGUF Q8_0 | Open-GVP-Qwen3-4B-Q8_0.gguf | Excellent quality / speed balance |
| GGUF Q6_K | Open-GVP-Qwen3-4B-Q6_K.gguf | Good quality with lower resource usage |
Recommendation:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "drvivekpoojary/Open-GVP-Qwen3-4B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "system", "content": "You are an expert pharmacovigilance assistant specialized in EMA Good Pharmacovigilance Practices (GVP)."},
{"role": "user", "content": "What is the definition of a serious adverse reaction according to GVP Module VI?"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.2)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Recommended (Q8_0)
ollama run hf.co/drvivekpoojary/Open-GVP-Qwen3-4B-Instruct:Q8_0
# Alternative options
ollama run hf.co/drvivekpoojary/Open-GVP-Qwen3-4B-Instruct:Q6_K
ollama run hf.co/drvivekpoojary/Open-GVP-Qwen3-4B-Instruct:BF16
./llama-cli \
-m Open-GVP-Qwen3-4B-Q8_0.gguf\
-p "What is the definition of a serious adverse reaction according to GVP Module VI?" \
-n 512 \
-c 4096 \
--temp 0.2
from llama_cpp import Llama
llm = Llama(
model_path="Open-GVP-Qwen3-4B-Q8_0.gguf",
n_ctx=4096,
n_gpu_layers=-1, # set to 0 for pure CPU
verbose=False
)
response = llm.create_chat_completion(
messages=[
{
"role": "system",
"content": "You are an expert pharmacovigilance assistant specialized in EMA Good Pharmacovigilance Practices (GVP)."
},
{
"role": "user",
"content": "What is the definition of a serious adverse reaction according to GVP Module VI?"
}
],
max_tokens=512,
temperature=0.2
)
print(response["choices"][0]["message"]["content"])
| Use Case | Description |
|---|---|
| GVP Knowledge Assistant | Answer questions on GVP modules, definitions, and requirements |
| PV Staff Training & Onboarding | Support training of new pharmacovigilance team members |
| RAG Pipeline | Use as the generator together with official GVP PDFs |
| Internal Regulatory Chatbot | Backend for company-internal PV compliance assistants |
| Offline / Air-gapped Environments | Run completely locally without internet access |
| Edge & Low-Resource Deployment | Suitable for laptops and workstations (especially GGUF versions) |
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3-4B-Instruct-2507 |
| Fine-tuning Method | LoRA |
| LoRA Rank | 64 |
| LoRA Alpha | 128 |
| LoRA Dropout | 0.05 |
| Training Data | ~15,000 GVP Q&A pairs (all modules) |
| Epochs | 4 |
| Context Length | 1024 |
| Precision | bfloat16 |
| Framework | LlamaFactory |
| Hardware | NVIDIA GPU (16 GB VRAM) |
This model is intended for research, educational, and internal professional support purposes only.
It does not constitute regulatory advice. All outputs should be carefully reviewed by qualified pharmacovigilance professionals before being used in any compliance, case processing, reporting, or decision-making context.
The model may produce incomplete, outdated, or inaccurate responses, particularly on complex or nuanced regulatory questions. The author assumes no liability for any decisions made based on the model’s outputs.
No In-Training Evaluation: Evaluation loss (eval_loss) was not computed during training, and per-epoch checkpoints were not preserved.
Dr. Vivek Poojary
Apache License 2.0