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
Upload CodeLlama-7B Text-to-SQL QLoRA adapter
Browse filesFiles changed (5)
- config.jsonAdded+28
- generation_config.jsonAdded+6
- special_tokens_map.json+27-17
- tokenizer.json+7-7
- tokenizer_config.json+5-1
12345678910111213141516171819202122232425262728{ "_name_or_path": "codellama/CodeLlama-7b-hf", "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 11008, "max_position_embeddings": 16384, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 32, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": null, "rope_theta": 1000000, "tie_word_embeddings": false, "torch_dtype": "float16", "transformers_version": "4.36.2", "use_cache": true, "vocab_size": 32018}123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "4.36.2"}1234567891011121314151617181920212223{"additional_special_tokens": [{"content": "<|im_end|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},{"content": "<|im_start|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false}],"bos_token": "<|im_start|>","eos_token": "<|im_end|>","pad_token": "<|im_end|>","unk_token": {"content": "<unk>","lstrip": false,123456789101112131415161718192021222324252627282930313233{"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,
106 unmodified lines1071081091101111121137 unmodified lines1211221231241251261275 unmodified lines1331341351361371381395 unmodified lines145146147148149150151152153154155156157106 unmodified lines"single": [{"SpecialToken": {"id": "<s>","type_id": 0}},7 unmodified lines"pair": [{"SpecialToken": {"id": "<s>","type_id": 0}},5 unmodified lines},{"SpecialToken": {"id": "<s>","type_id": 1}},5 unmodified lines}],"special_tokens": {"<s>": {"id": "<s>","ids": [1],"tokens": ["<s>"]}}106 unmodified lines1071081091101111121137 unmodified lines1211221231241251261275 unmodified lines1331341351361371381395 unmodified lines145146147148149150151152153154155156157106 unmodified lines"single": [{"SpecialToken": {"id": "<|im_start|>","type_id": 0}},7 unmodified lines"pair": [{"SpecialToken": {"id": "<|im_start|>","type_id": 0}},5 unmodified lines},{"SpecialToken": {"id": "<|im_start|>","type_id": 1}},5 unmodified lines}],"special_tokens": {"<|im_start|>": {"id": "<|im_start|>","ids": [32017],"tokens": ["<|im_start|>"]}}
76 unmodified lines7778798081828376 unmodified lines},"additional_special_tokens": ["<|im_end|>","<|im_start|>"],"bos_token": "<|im_start|>","chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",76 unmodified lines777879808182838485868776 unmodified lines},"additional_special_tokens": ["<|im_end|>","<|im_start|>","▁<PRE>","▁<MID>","▁<SUF>","▁<EOT>"],"bos_token": "<|im_start|>","chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
config.jsonAdded+28
generation_config.jsonAdded+6
special_tokens_map.json+27-17
tokenizer.json+7-7
tokenizer_config.json+5-1