This model is a highly specialized, instruction-following version of the Gemma-4B-It model (based on the size of 2.4GB, likely the 8B or a heavily compressed version), meticulously fine-tuned for providing cardiology-related information and answering medical queries in Ukrainian.
The adaptation process involved a crucial two-stage LoRA fine-tuning approach:
This repository contains the highly optimized GGUF file, ready for immediate, efficient inference on consumer hardware.
| Detail | Value |
|---|---|
| Base Model | google/gemma-4b-it |
| Language | Ukrainian (Specialized) |
| Specialization | Cardiology (Cardiovascular medicine, clinical terminology) |
| Quantization | GGUF Q4KM (Highly efficient) |
| GGUF File Size | ~2.4 GB |
| Context Length | 4096 (Recommended minimum) |
| Pipeline Tool | llama.cpp for GGUF conversion/quantization |
gemma_ua_med_final_q8.gguf: The main file, ready for use with llama.cpp, Ollama, or LM Studio.This model is a highly specialized, instruction-following version of the Gemma-4B-Instruct model (based on the size of 2.4GB, likely the 4B or a heavily compressed version), meticulously fine-tuned for providing cardiology-related information and answering medical queries in Ukrainian.
The adaptation process involved a crucial two-stage LoRA fine-tuning approach:
This repository contains the highly optimized GGUF file, ready for immediate, efficient inference on consumer hardware.
| Detail | Value |
|---|---|
| Base Model | google/gemma-4b-it |
| Language | Ukrainian (Specialized) |
| Specialization | Cardiology (Cardiovascular medicine, clinical terminology) |
| Quantization | GGUF Q4KM (Highly efficient) |
| GGUF File Size | ~2.4 GB |
| Context Length | 4096 (Recommended minimum) |
| Pipeline Tool | llama.cpp for GGUF conversion/quantization |
gemma_ua_med_final_q4km.gguf: The main file, ready for use with llama.cpp, Ollama, or LM Studio.The GGUF format is ideal for running on CPU-dominant systems or systems with smaller VRAM using the llama.cpp framework.
Ensure you have llama.cpp compiled. You will use the llama-cli binary.
Use the following command to run the model in interactive chat mode. The System Prompt (-sys) is essential for activating the cardiology persona.
FROM "./gemma_ua_med_final_q4km.gguf"
SYSTEM """ Ви — лікар-кардіолог. На основі даних пацієнта та виписного епікризу сформуйте клінічно обґрунтовані рекомендації. """
TEMPLATE """<start_of_turn>user {{ .System }}
{{ .Prompt }}<end_of_turn> <start_of_turn>model """
PARAMETER stop "<end_of_turn>" PARAMETER stop "<start_of_turn>user" PARAMETER stop "<start_of_turn>model" PARAMETER stop "<start_of_turn>system"
PARAMETER temperature 0.6 PARAMETER top_p 0.9 PARAMETER num_ctx 4096 PARAMETER repeat_penalty 1.15 PARAMETER repeat_last_n 256
Key Parameters: -m: Specifies the path to the GGUF model file.
-sys: System Prompt—sets the model's professional role and required language.
-t $(nproc): Utilizes all available CPU cores for maximum speed.
-i: Activates interactive chat mode.
If you use this model in your research, please cite:
@misc{Ostashko2025MedGemmaCardiology, title = {MedGemma-4B-Cardiology: A Domain-Finetuned Clinical LLM for Cardiology}, author = {Uaritm}, year = {2025}, url = {ai.esemi.org} }
Project homepage: https://ai.esemi.org
LicenseThe use of this model is subject to the terms of the original Gemma License. Please review and adhere to the associated licensing terms for the base model.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo uaritm/gemmamed_cardio ./model-foldermodel-00001-of-00002.safetensors 4.6 GiBmodel-00002-of-00002.safetensors 3.4 GiBgoogle/gemma-3-4b-it