Transformers
medical
activation-steering
gated-activation-steering
inference-time-intervention
sycophancy
hallucination
Instructions to use himanshu5trpth/medgemma-sycophancy-hallucination-gated-steering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use himanshu5trpth/medgemma-sycophancy-hallucination-gated-steering with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("himanshu5trpth/medgemma-sycophancy-hallucination-gated-steering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download NOTICE from himanshu5trpth/medgemma-sycophancy-hallucination-gated-steering: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/himanshu5trpth/medgemma-sycophancy-hallucination-gated-steering/resolve/8033ce4490b9cd0bb0d331e5fc1248a27419a45f/NOTICE
- Command line
-
hf download hf://himanshu5trpth/medgemma-sycophancy-hallucination-gated-steering@8033ce4490b9cd0bb0d331e5fc1248a27419a45f/NOTICE
-
curl -L -o NOTICE https://huggingface.co/himanshu5trpth/medgemma-sycophancy-hallucination-gated-steering/resolve/8033ce4490b9cd0bb0d331e5fc1248a27419a45f/NOTICE
594 Bytes
| This repository only contains the small steering files (attention-head directions and detector probes) built on top of MedGemma. It does NOT include the MedGemma model itself. | |
| Get MedGemma from Google here: | |
| https://huggingface.co/google/medgemma-1.5-4b-it | |
| Then point the code at your local MedGemma folder in one of two ways: | |
| - set the MEDGEMMA_PATH environment variable to that folder, or | |
| - set MODEL_PATH in config.py. | |
| HAI-DEF is provided under and subject to the Health AI Developer Foundations Terms of Use found at https://developers.google.com/health-ai-developer-foundations/terms |