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