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