Run this model with HF Jobs
Run huggirus/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/huggirus/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/huggirus/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 huggirus/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 huggirus/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, "huggirus/code-llama-7b-text-to-sql") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (12)
- adapter_config.jsonAdded+32
- adapter_model.safetensorsAdded+3
- runs/Jan27_17-40-33_ai1/events.out.tfevents.1706373823.ai1.6764.0Added+3
- runs/Jan27_17-58-44_ai1/events.out.tfevents.1706374729.ai1.9431.0Added+3
- runs/Jan27_18-14-51_ai1/events.out.tfevents.1706375696.ai1.2362.0Added+3
- runs/Jan27_18-21-16_ai1/events.out.tfevents.1706376081.ai1.3104.0Added+3
- runs/Jan27_18-29-07_ai1/events.out.tfevents.1706376552.ai1.2266.0Added+3
- runs/Jan27_18-55-32_ai1/events.out.tfevents.1706378136.ai1.6039.0Added+3
- special_tokens_map.jsonAdded+28
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+98
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "codellama/CodeLlama-7b-hf", "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 128, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 256, "rank_pattern": {}, "revision": null, "target_modules": [ "o_proj", "k_proj", "up_proj", "gate_proj", "down_proj", "q_proj", "v_proj" ], "task_type": "CAUSAL_LM", "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:4e9687cec15feebcd75af10a81f260423c47af655b15231096cda173a32ca54asize 1803907984123version https://git-lfs.github.com/spec/v1oid sha256:7238886fbe05101039a73dc60bf951f044c4860c5938e7eba476cea7a4264c24size 4803123version https://git-lfs.github.com/spec/v1oid sha256:2e5f8bba1a3e6ccfa7f0ed026048d033a05df891b6eab433e0994268485551d1size 4803123version https://git-lfs.github.com/spec/v1oid sha256:ed13eaa29d9613463957c7a613718caedb7f6584b0d672b5248a2cbd537b09e7size 4803123version https://git-lfs.github.com/spec/v1oid sha256:691501a2e08b7fad509aea71aba98faa7b85e96ef59e17044a1759cd323d33c2size 4803123version https://git-lfs.github.com/spec/v1oid sha256:ce375935e61d1f584158f661d758e6956e3ee5cd00341e68269855fceec11c11size 4803123version https://git-lfs.github.com/spec/v1oid sha256:a05df00c2718c988b0d101e26a119d6d15b22c1e1b639a8de5dbdca5226d05d8size 572712345678910111213141516171819202122232425262728{ "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, "normalized": false, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ "add_bos_token": true, "add_eos_token": false, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32007": { "content": "▁<PRE>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32008": { "content": "▁<SUF>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32009": { "content": "▁<MID>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32010": { "content": "▁<EOT>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32016": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32017": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "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 %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "eot_token": "▁<EOT>", "fill_token": "<FILL_ME>", "legacy": null, "middle_token": "▁<MID>", "model_max_length": 1000000000000000019884624838656, "pad_token": "<|im_end|>", "prefix_token": "▁<PRE>", "sp_model_kwargs": {}, "suffix_token": "▁<SUF>", "tokenizer_class": "CodeLlamaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": false}123version https://git-lfs.github.com/spec/v1oid sha256:11be74350f8ef35460165f04dbe4153e227f9d0b51b238ac360188a2409e0cf9size 4728adapter_config.jsonAdded+32
adapter_model.safetensorsAdded+3
runs/Jan27_17-40-33_ai1/events.out.tfevents.1706373823.ai1.6764.0Added+3
runs/Jan27_17-58-44_ai1/events.out.tfevents.1706374729.ai1.9431.0Added+3
runs/Jan27_18-14-51_ai1/events.out.tfevents.1706375696.ai1.2362.0Added+3
runs/Jan27_18-21-16_ai1/events.out.tfevents.1706376081.ai1.3104.0Added+3
runs/Jan27_18-29-07_ai1/events.out.tfevents.1706376552.ai1.2266.0Added+3
runs/Jan27_18-55-32_ai1/events.out.tfevents.1706378136.ai1.6039.0Added+3
special_tokens_map.jsonAdded+28
tokenizer.jsonAdded
tokenizer_config.jsonAdded+98
training_args.binAdded+3