Instructions to use TJKlein/ContrastivePerplexity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use TJKlein/ContrastivePerplexity with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1") model = PeftModel.from_pretrained(base_model, "TJKlein/ContrastivePerplexity") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from TJKlein/ContrastivePerplexity: direct link, hf CLI and curl.
- Browser
- Download file 1.8 MB
-
https://huggingface.co/TJKlein/ContrastivePerplexity/resolve/main/tokenizer.json
- Command line
-
hf download hf://TJKlein/ContrastivePerplexity/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/TJKlein/ContrastivePerplexity/resolve/main/tokenizer.json
1.8 MB
File too large to display, you can check the raw version instead.