Instructions to use cmpatino/Grit7B_ReasonIR_Adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cmpatino/Grit7B_ReasonIR_Adapter with PEFT:
from peft import PeftModel from transformers import AutoModel base_model = AutoModel.from_pretrained("GritLM/GritLM-7B") model = PeftModel.from_pretrained(base_model, "cmpatino/Grit7B_ReasonIR_Adapter") - Transformers
How to use cmpatino/Grit7B_ReasonIR_Adapter with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cmpatino/Grit7B_ReasonIR_Adapter", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K