Run this model with HF Jobs
Run torphix/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/torphix/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/torphix/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 torphix/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 torphix/code-llama-7b-text-to-sql with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("stabilityai/stablelm-2-zephyr-1_6b") model = PeftModel.from_pretrained(base_model, "torphix/code-llama-7b-text-to-sql") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 0
Browse filesFiles changed (4)
18 unmodified lines1920212223242526272829303118 unmodified lines"rank_pattern": {},"revision": null,"target_modules": ["v_proj","gate_proj","o_proj","up_proj","q_proj","down_proj","k_proj"],"task_type": "CAUSAL_LM","use_rslora": false18 unmodified lines1920212223242526272829303118 unmodified lines"rank_pattern": {},"revision": null,"target_modules": ["q_proj","v_proj","o_proj","gate_proj","k_proj","down_proj","up_proj"],"task_type": "CAUSAL_LM","use_rslora": false
123version https://git-lfs.github.com/spec/v1oid sha256:8bb31772260a23904554a4d3a3812430662dcbc48cfae823dc072e7d57189973size 968929888123version https://git-lfs.github.com/spec/v1oid sha256:8e970cb95355ef539be63785f050db235336aff0ca54ed72df3a5fbe4419f1f3size 968929888
123version https://git-lfs.github.com/spec/v1oid sha256:29e73264fa024a4f349b57bbce73217e89244442c943491c015aec8a0b06c2d2size 5105123version https://git-lfs.github.com/spec/v1oid sha256:43cf335de41ea8f265b5231d2cdc77d94c27d2a90015b7a427191787be9e9e2csize 4728123version https://git-lfs.github.com/spec/v1oid sha256:ca2081027c2ca294eb5e278038d39d56b4c0714dcc4f0f8db1b783cff866f0d2size 4728
adapter_config.json+4-4
adapter_model.safetensors+1-1
runs/Feb03_22-22-53_4d84bd88ed5f/events.out.tfevents.1706998982.4d84bd88ed5f.3180.0Added+3
training_args.bin+1-1