Views
No views yet
| Metric Name | Value |
|---|---|
| BERTScore F1 | 0.8468 |
| BLEU | 0.0185 |
| ROUGE-L | 0.1427 |
google/gemma-3-4b-ittransformers and accelerate libraries.1from transformers import Gemma3ForConditionalGeneration, AutoProcessor
2import torch
3
4model_id = "Aldabergenov1/medgemma_roco_fine_tuned"
5model = Gemma3ForConditionalGeneration.from_pretrained(
6 model_id,
7 torch_dtype=torch.bfloat16,
8 device_map="auto"
9)
10processor = AutoProcessor.from_pretrained(model_id)
11
12# Example Inference
13# messages = [{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": "Radiology report:"}]}]
14# ... (rest of the inference code)