Views
No views yet
1# !pip install llama-cpp-python
2from llama_cpp import Llama
3
4llm = Llama.from_pretrained(
5 repo_id="lukasdrews/Gemma-4-E2B-IT-SFT-RLVR-Medical-GGUF",
6 filename="gemma-4-E2B-it-sft-rlvr-medical-Q4_K_M.gguf",
7 verbose=False,
8)
9messages = [
10 {
11 "role": "user",
12 "content": [
13 {"type": "text", "text": "Do GEC produce and bear factor H under complement attack?"}
14 ]
15 },
16]
17
18outputs = llm.create_chat_completion(messages, max_tokens=1024)
19print(outputs["choices"][0]["message"]["content"])| Model | Quantization | PubMedQA (In-Domain) | MedQA-USMLE (Zero-Shot Transfer) |
|---|---|---|---|
| Gemma-4-E2B-it (base model) | - | 58.10 % | 29.54 % |
| Gemma-4-E2B-it + SFT + RLVR | - | 73.10 % | 43.05 % |
| Gemma-4-E2B-it + SFT + RLVR | Q8_0 | 72.40 % | 43.00 % |
| Gemma-4-E2B-it + SFT + RLVR | Q6_K | 72.10 % | 42.18 % |
| Gemma-4-E2B-it + SFT + RLVR | Q5_K_M | 72.00 % | 38.88 % |
| Gemma-4-E2B-it + SFT + RLVR | Q4_K_M | 71.80 % | 38.88 % |