Instructions to use RioJune/AG-KD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RioJune/AG-KD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-object-detection", model="RioJune/AG-KD", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("RioJune/AG-KD", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("RioJune/AG-KD", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fixed README.md
Verified signatureFix 1 -> The originally imported library AutoModel does not work for this model. AutoModelForCausalLM is the correct one. Fix 2 -> The original code uses an object detection token (<OD>) for abnormality grounding. The correct token to be used for abnormality grounding is <CAPTION_TO_PHRASE_GROUNDING> along with the abnormality and the definition as input.91eca8d
-
Add model card (#2)
Verified signature- Add model card (e321f52bd3a239e05d5bb8865d8b5580550756c8) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>24a4b0d
-
Add metadata (#1)
Verified signature- Add metadata (67385ea74ade77b60a4f7b9af2716064e55be3c7) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>1c5b75a -
Upload merged model and processor
Verified signatured065e32 -
Upload merged model and processor
Verified signature610d1df
-
Upload merged model and processor
Verified signaturef5e9d20 -
Upload merged model and processor
Verified signatured58c87d -
initial commit
Verified signature94018e6