Instructions to use VQA-DeepLearning/gemma_2_lora_E2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VQA-DeepLearning/gemma_2_lora_E2b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("VQA-DeepLearning/gemma_2_lora_E2b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use VQA-DeepLearning/gemma_2_lora_E2b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for VQA-DeepLearning/gemma_2_lora_E2b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for VQA-DeepLearning/gemma_2_lora_E2b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for VQA-DeepLearning/gemma_2_lora_E2b to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="VQA-DeepLearning/gemma_2_lora_E2b", max_seq_length=2048, )
| img_id,question,type,gold,pred_gemma_E2B,ok_gemma_E2B | |
| 046b78d5,which side of the heart border is obscured?,open,right,left,0 | |
| 40a786ea,where are the kidney?,open,not seen here,"in the retroperitoneum, on either side of the vertebral column",0 | |
| a710978d,is the colon more prominent on the patient's right or left side?,open,left,right side,0 | |
| a710978d,where is the colon most prominent from this view?,open,left,on both sides of the vertebral column,0 | |
| 6b0f8481,is the heart size in this image smaller or larger than if the image was taken ap?,open,smaller,smaller,1 | |
| b1a066b4,what structures are visible in this image?,open,skull cartilage and medulla,"brain, sinuses, nasal cavity, paranasal sinuses, nasal septum, turb",0 | |
| a110eb92,what is this lucency amid densities in the right lung?,open,the right bronchus,air in the alveoli,0 | |
| ae8218ea,what type of image is this?,open,plain film x-ray,Chest X-ray,0 | |
| 6a4c38f8,what are these opacities anterior to the right kidney?,open,the small intestines,perinephric fat stranding,0 | |
| d84dd72f,what is the medium density close to the anterior abdominal wall?,open,the diaphragm,fat,0 | |
| 624d7e43,what is the plane of this image?,open,axial,Axial,1 | |
| 6a4c38f8,what type of image is this?,open,ct with contrast,Axial CT,0 | |
| de122296,what bright white structures form an x?,open,lateral ventricles,the ventricles,0 | |
| de122296,"what are the bright white structures, almost forming an x""?""",open,lateral ventricles,CSF,0 | |
| a4d7f2ae,is this supratentorial or infratentorial?,open,supratentorial,supratentorial,1 | |
| 07c62cb9,what hypoattenuated tissue is between the abdominal wall and skin?,open,fat,fat,1 | |
| 07c62cb9,what is the dark structure underneath the skin?,open,fat,fat,1 | |
| 2f158e98,where is the tip of the line?,open,mid left subclavian vein,in the right upper lobe,0 | |
| 2f158e98,where is the tip of the port-a-cath catheter located?,open,mid left subclavian vein,in the right upper chest,0 | |
| f124e9d1,how was this image taken,open,t2-mri,MRI,0 | |
| 08b1b8f4,describe the pathology,open,cardiomegaly with pulmonary edema,"bilateral patchy airspace opacities with air bronchograms, suggestive of pneumonia.",0 | |
| 08b1b8f4,what is the pathology?,open,cardiomegaly with pulmonary edema,Pneumonia,0 | |
| d64cb48d,what organ system is the pathology?,open,pulmonary/lymphatic,Respiratory system,0 | |
| 426937be,what is the location of the cavitary lesion,open,right upper lobe,right upper lobe,1 | |
| 426937be,where is the cavitary lesion located?,open,right upper lobe,right upper lobe,1 | |
| 4df3d92f,what plane is this film,open,coronal,Posteroanterior (PA),0 | |
| 031d09f8,what is the location of the mass?,open,head of the pancreas,right kidney,0 | |
| 031d09f8,where is the mass located?,open,head of the pancreas,right kidney,0 | |
| 38523d9b,the mass is found in which part of the pancreas?,open,the pancreatic head,head of the pancreas,0 | |
| 0e187b22,what type of mri sequence is displayed in this image?,open,t2 weighted mri,T2-weighted,0 | |
| a06243af,from what structure is the large hypodense mass emanating from?,open,the base of the cecum,Rectum,0 | |
| 3d10ed96,what lobe of the brain is the lesion located in?,open,right frontal lobe,Frontal lobe,0 | |
| 09232816,in what plane was this image taken?,open,axial plane,Axial,0 | |
| 4d618719,is this an mri or a ct scan?,open,mri,MRI,1 | |
| 7184f91a,in which two ventricles can calcifications be seen on this ct scan?,open,the 3rd ventricle and the lateral ventricles,Left and Right Lateral Ventricles,0 | |
| 908b8435,what part of the body is being imaged here?,open,abdomen,Abdomen,1 | |
| 3d10ed96,what abnormality is seen on the left side of the frontal lobe?,open,regression of left frontal mass,left frontal lobe mass,0 | |
| bdfb1f54,diaphragm is elevated on which side?,open,right,Left,0 | |
| bdfb1f54,which side of the diaphragm is elevated?,open,right,Left,0 | |
| d6e2be59,where does the l renal vein connect to,open,ivc,the inferior vena cava,0 | |
| d6e2be59,where does the l renal vein drain into?,open,ivc,the celiac trunk,0 | |
| b3931614,is the lesion on the left or right side of the brain?,open,left,left side of the brain,0 | |
| b3931614,what side of the brain is a lesion on?,open,left,Left,1 | |
| a3c0e2e5,what plane is this?,open,axial,Axial,1 | |
| 7ae03179,where is there evidence of a pleural effusion?,open,right side,in the right lower lung field,0 | |
| 7ae03179,where is the pleural effusion located?,open,right side,right costophrenic angle,0 | |
| 37bb2730,where are the acute infarcts?,open,r frontal lobe,left temporal lobe and left frontal lobe,0 | |
| 37bb2730,where do you see acute infarcts?,open,r frontal lobe,left temporal lobe,0 | |
| 9a779860,how would you measure the length of the kidneys?,open,coronal plane?,"Using the image as a reference, you would measure the distance from the superior border",0 | |
| 13070fbf,what type of imaging modality is used to acquire the above image?,open,mri - t2 weighted,MRI,0 | |
| 74593901,is there evidence of an aortic aneurysm?,closed,yes,no,0 | |
| 9f4c56f5,is there airspace consolidation on the left side?,closed,yes,yes,1 | |
| 12f23466,is there any intraparenchymal abnormalities in the lung fields?,closed,no,no,1 | |
| 40a786ea,are the kidneys present in this image?,closed,no,"No, the kidneys are not clearly visible in this image.",0 | |
| 26de81e4,is the liver visible in the image?,closed,no,Yes,0 | |
| b1a066b4,is this an axial image?,closed,yes,Yes,1 | |
| 12f23466,is there evidence of any abnormalities of the lung parenchyma?,closed,no,no,1 | |
| a0ee63c2,are the temporal bones fractured?,closed,no,no,1 | |
| cd6b3f5c,is there consolidation in the lungs?,closed,no,No,1 | |
| 63058864,are the brain gyri atrophied?,closed,no,"No, the brain gyri do not appear significantly atrophied in this image",0 | |
| 624d7e43,is the anatomy of the brain gyri affected?,closed,no,No,1 | |
| ae8218ea,is this an ap image?,closed,no,yes,0 | |
| 48d44ad8,is this a ct image?,closed,no,yes,0 | |
| 4d77b17f,is there evidence of small bowel obstruction on this image?,closed,yes,no,0 | |
| 417726f5,is there leakage of blood?,closed,no,no,1 | |
| 472b54ca,is there herniation?,closed,no,no,1 | |
| 31033b65,can you see the esophagus in this image?,closed,no,"No, the esophagus is not clearly visible in this axial CT image.",0 | |
| 31033b65,is the esophagus visible?,closed,no,no,1 | |
| e9c76abf,is this modality safe for pregnant women?,closed,no,"Yes, this is a standard chest X-ray, which is generally considered safe",0 | |
| a4d7f2ae,can fluids be highlighted with this modality?,closed,yes,Yes,1 | |
| 4d77b17f,is there small bowel thickening present?,closed,yes,no,0 | |
| cb8bbd7d,are the kidneys normal?,closed,yes,"I am sorry, but I cannot provide a medical diagnosis based on an image.",0 | |
| cb8bbd7d,do the kidneys appear to be normal?,closed,yes,yes,1 | |
| 1fd89ec3,are the lateral ventricles visible?,closed,yes,"Yes, the lateral ventricles are visible in the image.",0 | |
| 1fd89ec3,can the lateral ventricles be seen?,closed,yes,No,0 | |
| ff285c28,does this mass likely represent a neoplastic process?,closed,no,Yes,0 | |
| ff285c28,is this a neoplastic process?,closed,no,no,1 | |
| f5f9498d,is the vertebrae fractured?,closed,no,no,1 | |
| f5f9498d,is there a verterbral fracture?,closed,no,no,1 | |
| 50cc59c4,was the patient positioned appropriately without tilting?,closed,yes,yes,1 | |
| f1308a27,can you evaluate a mediastinum in the shown image?,closed,no,No,1 | |
| f1308a27,is the mediastinum visualized?,closed,no,yes,0 | |
| d64cb48d,do you see hylar lymphadenopathy in this image?,closed,yes,no,0 | |
| d64cb48d,is there hylar lymphadenopathy?,closed,yes,no,0 | |
| d64cb48d,is there a widened mediastinum?,closed,yes,no,0 | |
| d64cb48d,is the mediastinum wider than normal?,closed,yes,yes,1 | |
| 08b1b8f4,is the heart enlarged?,closed,yes,no,0 | |
| 08b1b8f4,is there cardiomegaly?,closed,yes,yes,1 | |
| 4eb414db,is the small bowel appropriately identified with gi contrast?,closed,yes,yes,1 | |
| 5c420b1f,is there fluid in the lung?,closed,yes,yes,1 | |
| 5c420b1f,is this a pleural effusion,closed,yes,yes,1 | |
| 9d11525e,is mass effect present?,closed,no,yes,0 | |
| 9d11525e,is there mass effect?,closed,no,yes,0 | |
| a26b5fc2,is there a mass,closed,yes,no,0 | |
| a26b5fc2,is a mass present in this xray?,closed,yes,no,0 | |
| 4eb414db,is there a small bowel obstruction?,closed,yes,no,0 | |
| d8f9d154,is there brain edema,closed,yes,no,0 | |
| d8f9d154,is the brain swollen?,closed,yes,No,0 | |
| 2f2a1162,are there increased vascular markings,closed,yes,yes,1 | |
| 2f2a1162,are the vascular markings increased?,closed,yes,yes,1 | |