Instructions to use aieng-lab/starcoder2-7b_comment-type-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aieng-lab/starcoder2-7b_comment-type-python with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aieng-lab/starcoder2-7b_comment-type-python")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aieng-lab/starcoder2-7b_comment-type-python") model = AutoModelForSequenceClassification.from_pretrained("aieng-lab/starcoder2-7b_comment-type-python", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from aieng-lab/starcoder2-7b_comment-type-python: direct link, hf CLI and curl.
- Browser
- Download file 3.48 MB
-
https://huggingface.co/aieng-lab/starcoder2-7b_comment-type-python/resolve/de932720c50c46e084898df5bcee66b94b5e6c6b/tokenizer.json
- Command line
-
hf download hf://aieng-lab/starcoder2-7b_comment-type-python@de932720c50c46e084898df5bcee66b94b5e6c6b/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/aieng-lab/starcoder2-7b_comment-type-python/resolve/de932720c50c46e084898df5bcee66b94b5e6c6b/tokenizer.json
3.48 MB
File too large to display, you can check the raw version instead.