Instructions to use junchenfu/code-llama-3-1-8b-text-to-sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use junchenfu/code-llama-3-1-8b-text-to-sql with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct") model = PeftModel.from_pretrained(base_model, "junchenfu/code-llama-3-1-8b-text-to-sql") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from junchenfu/code-llama-3-1-8b-text-to-sql: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/junchenfu/code-llama-3-1-8b-text-to-sql/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://junchenfu/code-llama-3-1-8b-text-to-sql/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/junchenfu/code-llama-3-1-8b-text-to-sql/resolve/main/special_tokens_map.json
419 Bytes
| { | |
| "additional_special_tokens": [ | |
| { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| ], | |
| "bos_token": "<|im_start|>", | |
| "eos_token": "<|im_end|>", | |
| "pad_token": "<|im_end|>" | |
| } | |