Image-Text-to-Text
Transformers
Safetensors
Telugu
gemma4
gemma
telugu
medical
grpo
merged
healthcare
conversational
Instructions to use RohithMidigudla/aarogya_gemma_telugu_medical with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RohithMidigudla/aarogya_gemma_telugu_medical with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="RohithMidigudla/aarogya_gemma_telugu_medical") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("RohithMidigudla/aarogya_gemma_telugu_medical") model = AutoModelForMultimodalLM.from_pretrained("RohithMidigudla/aarogya_gemma_telugu_medical") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RohithMidigudla/aarogya_gemma_telugu_medical with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RohithMidigudla/aarogya_gemma_telugu_medical" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RohithMidigudla/aarogya_gemma_telugu_medical", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/RohithMidigudla/aarogya_gemma_telugu_medical
- SGLang
How to use RohithMidigudla/aarogya_gemma_telugu_medical with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "RohithMidigudla/aarogya_gemma_telugu_medical" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RohithMidigudla/aarogya_gemma_telugu_medical", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "RohithMidigudla/aarogya_gemma_telugu_medical" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RohithMidigudla/aarogya_gemma_telugu_medical", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use RohithMidigudla/aarogya_gemma_telugu_medical with Docker Model Runner:
docker model run hf.co/RohithMidigudla/aarogya_gemma_telugu_medical
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,39 +1,32 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
tags:
|
| 6 |
-
|
| 7 |
- gemma
|
| 8 |
- telugu
|
| 9 |
- medical
|
| 10 |
- grpo
|
| 11 |
- merged
|
| 12 |
- healthcare
|
| 13 |
-
|
| 14 |
-
|
| 15 |
- te
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
———
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
google/gemma-4-E4B-it.
|
| 24 |
|
| 25 |
-
|
| 26 |
-
Telugu explanations.
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
-
MedMCQA-style data.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: google/gemma-4-E4B-it
|
| 4 |
+
tags:
|
|
|
|
|
|
|
| 5 |
- gemma
|
| 6 |
- telugu
|
| 7 |
- medical
|
| 8 |
- grpo
|
| 9 |
- merged
|
| 10 |
- healthcare
|
| 11 |
+
language:
|
|
|
|
| 12 |
- te
|
| 13 |
+
license: gemma
|
| 14 |
+
---
|
|
|
|
| 15 |
|
| 16 |
+
# Aarogya Gemma Telugu Medical
|
| 17 |
|
| 18 |
+
Aarogya Gemma Telugu Medical is a Telugu medical question-answering model built on `google/gemma-4-E4B-it`.
|
|
|
|
| 19 |
|
| 20 |
+
The model is designed to answer medical multiple-choice questions and provide short Telugu explanations.
|
|
|
|
| 21 |
|
| 22 |
+
## Model Details
|
| 23 |
|
| 24 |
+
- **Base model:** `google/gemma-4-E4B-it`
|
| 25 |
+
- **Model type:** Full merged Transformers checkpoint
|
| 26 |
+
- **Precision:** `bfloat16`
|
| 27 |
+
- **Language:** Telugu (`te`)
|
| 28 |
+
- **Task:** Medical QA and concise Telugu medical explanations
|
| 29 |
|
| 30 |
+
## Training
|
| 31 |
|
| 32 |
+
This model combines Telugu and medical adaptation with GRPO alignment on Telugu MedMCQA-style data.
|
|
|