Spaces:
Running
on
Zero
Running
on
Zero
Nursing Citizen Development
commited on
Commit
·
f2e3c2d
1
Parent(s):
070222c
Model: Switch to google/gemma-2-2b-it to reduce hallucinations
Browse files- README.md +4 -4
- pna_client.py +1 -1
README.md
CHANGED
|
@@ -23,8 +23,8 @@ pinned: false
|
|
| 23 |
<a href="https://huggingface.co/spaces/NurseCitizenDeveloper/PNA-Assistant">
|
| 24 |
<img src="https://img.shields.io/badge/🤗%20Live%20Demo-Hugging%20Face-yellow" alt="Hugging Face Space">
|
| 25 |
</a>
|
| 26 |
-
<a href="https://huggingface.co/
|
| 27 |
-
<img src="https://img.shields.io/badge/Model-
|
| 28 |
</a>
|
| 29 |
<img src="https://img.shields.io/badge/License-Apache%202.0-green" alt="License">
|
| 30 |
<img src="https://img.shields.io/badge/Python-3.10+-blue" alt="Python">
|
|
@@ -87,8 +87,8 @@ The A-EQUIP model provides a framework for Professional Nurse Advocates with fou
|
|
| 87 |
|
| 88 |
## 🧠 Technology Stack
|
| 89 |
|
| 90 |
-
- **Base Model**: [google/
|
| 91 |
-
- **
|
| 92 |
- **Framework**: Gradio + Hugging Face Spaces (ZeroGPU)
|
| 93 |
- **Knowledge Base**: RAG with Sentence Transformers + FAISS
|
| 94 |
|
|
|
|
| 23 |
<a href="https://huggingface.co/spaces/NurseCitizenDeveloper/PNA-Assistant">
|
| 24 |
<img src="https://img.shields.io/badge/🤗%20Live%20Demo-Hugging%20Face-yellow" alt="Hugging Face Space">
|
| 25 |
</a>
|
| 26 |
+
<a href="https://huggingface.co/google/gemma-2-2b-it">
|
| 27 |
+
<img src="https://img.shields.io/badge/Model-Gemma%202%202B%20IT-blue" alt="Model">
|
| 28 |
</a>
|
| 29 |
<img src="https://img.shields.io/badge/License-Apache%202.0-green" alt="License">
|
| 30 |
<img src="https://img.shields.io/badge/Python-3.10+-blue" alt="Python">
|
|
|
|
| 87 |
|
| 88 |
## 🧠 Technology Stack
|
| 89 |
|
| 90 |
+
- **Base Model**: [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it)
|
| 91 |
+
- **Architecture**: RAG (Context-Aware) + Instruction Tuned LLM
|
| 92 |
- **Framework**: Gradio + Hugging Face Spaces (ZeroGPU)
|
| 93 |
- **Knowledge Base**: RAG with Sentence Transformers + FAISS
|
| 94 |
|
pna_client.py
CHANGED
|
@@ -5,7 +5,7 @@ import spaces
|
|
| 5 |
|
| 6 |
class PNAAssistantClient:
|
| 7 |
# Using user's merged MedGemma model - trained on person-centred language
|
| 8 |
-
def __init__(self, model_id="
|
| 9 |
self.model_id = model_id
|
| 10 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 11 |
self.tokenizer = None
|
|
|
|
| 5 |
|
| 6 |
class PNAAssistantClient:
|
| 7 |
# Using user's merged MedGemma model - trained on person-centred language
|
| 8 |
+
def __init__(self, model_id="google/gemma-2-2b-it"):
|
| 9 |
self.model_id = model_id
|
| 10 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 11 |
self.tokenizer = None
|