Instructions to use kbnlresearch/nl2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kbnlresearch/nl2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="kbnlresearch/nl2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("kbnlresearch/nl2") model = AutoModelForMaskedLM.from_pretrained("kbnlresearch/nl2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download added_tokens.json from kbnlresearch/nl2: direct link, hf CLI and curl.
- Browser
- Download file 2 Bytes
-
https://huggingface.co/kbnlresearch/nl2/resolve/main/added_tokens.json
- Command line
-
hf download hf://kbnlresearch/nl2/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/kbnlresearch/nl2/resolve/main/added_tokens.json
2 Bytes
| {} |