Instructions to use ccdv/lsg-base-4096 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ccdv/lsg-base-4096 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ccdv/lsg-base-4096", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("ccdv/lsg-base-4096", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("ccdv/lsg-base-4096", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download attn.png from ccdv/lsg-base-4096: direct link, hf CLI and curl.
- Browser
- Download file 50.1 kB
-
https://huggingface.co/ccdv/lsg-base-4096/resolve/main/attn.png
- Command line
-
hf download hf://ccdv/lsg-base-4096/attn.png
-
curl -L -o attn.png https://huggingface.co/ccdv/lsg-base-4096/resolve/main/attn.png
50.1 kB
