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