Instructions to use CNX-PathLLM/Llama-slideQA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CNX-PathLLM/Llama-slideQA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="CNX-PathLLM/Llama-slideQA")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CNX-PathLLM/Llama-slideQA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Llama-slideQA
Fine-tuned ALPaCA model checkpoints for slide-level whole-slide-image question answering in computational pathology.
Built with Llama.
Checkpoints
| File | Training scope |
|---|---|
Llama-slideQA.bin |
General ALPaCA checkpoint after general slide-QA instruction fine-tuning. |
Llama-slideQA-BRCA.bin |
ALPaCA checkpoint fine-tuned for Specific Slide-QA (Breast). |
Llama-slideQA-Morphology.bin |
ALPaCA checkpoint fine-tuned for Specific Slide-QA (Morphology). |
Code and non-weight resources
Training, evaluation and demonstration code, GMM prototypes, example features and metadata are available in the separate ALPaCA GitHub repository. The repository README provides detailed installation, training, evaluation and single-WSI inference instructions.
The curated ALPaCA datasets are available from CNX-PathLLM on Hugging Face.
Requirements and intended use
Users must separately obtain access to the meta-llama/Llama-3.1-8B-Instruct base model under Meta's applicable terms. ALPaCA and its checkpoints are intended for research use and are not approved for clinical diagnosis, clinical decision-making or use as a medical device.
License
These checkpoints are derivative Llama 3.1 materials and are distributed under the Llama 3.1 Community License. Access to, use of and redistribution of the checkpoints are subject to that licence and Meta's Acceptable Use Policy.
Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.
Model tree for CNX-PathLLM/Llama-slideQA
Base model
meta-llama/Llama-3.1-8B