Run this model with HF Jobs
Run Selikar/code-llama-7b-text-to-sql on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Selikar/code-llama-7b-text-to-sql. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Selikar/code-llama-7b-text-to-sql on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Selikar/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 Selikar/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, "Selikar/code-llama-7b-text-to-sql") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from Selikar/code-llama-7b-text-to-sql: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/Selikar/code-llama-7b-text-to-sql/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://Selikar/code-llama-7b-text-to-sql/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/Selikar/code-llama-7b-text-to-sql/resolve/main/special_tokens_map.json
711 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<|im_end|>", | |
| "<|im_start|>", | |
| "▁<PRE>", | |
| "▁<MID>", | |
| "▁<SUF>", | |
| "▁<EOT>" | |
| ], | |
| "bos_token": { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |