Instructions to use bigcode/santacoder-fast-inference with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigcode/santacoder-fast-inference with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="bigcode/santacoder-fast-inference")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelWithLMHead tokenizer = AutoTokenizer.from_pretrained("bigcode/santacoder-fast-inference") model = AutoModelWithLMHead.from_pretrained("bigcode/santacoder-fast-inference", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
d328d4d | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:90379993a9bff7bbd8749be2a911ead7c410459d616e81b5dc3054bf9045b156
size 2249864093
|