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
Model save
Browse filesFiles changed (3)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061---license: llama2library_name: pefttags:- trl- sft- generated_from_trainerdatasets:- generatorbase_model: codellama/CodeLlama-7b-hfmodel-index:- name: code-llama-7b-text-to-sql results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# code-llama-7b-text-to-sql
This model is a fine-tuned version of [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) on the generator dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 0.0002- train_batch_size: 3- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 2- total_train_batch_size: 6- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.03- num_epochs: 3
### Training results
### Framework versions
- PEFT 0.7.2.dev0- Transformers 4.36.2- Pytorch 2.1.2+cu121- Datasets 2.16.1- Tokenizers 0.15.1123version https://git-lfs.github.com/spec/v1oid sha256:57782cd3001606013e35b43f1f503a04437534efe8509a5430cde1093eab7b3fsize 1803907984123version https://git-lfs.github.com/spec/v1oid sha256:54ab601c1e890ebfa5325bc276be1b7f0bc9870013caba69db5907d9a05ee32fsize 1803907984
123version https://git-lfs.github.com/spec/v1oid sha256:a8aab9956009450c461d9a40e8573ae2bb730d47c5bd8165bf37028a1823e635size 6808123version https://git-lfs.github.com/spec/v1oid sha256:ef35ac6ae5c6a6256669d97dfe7c3886bf3c14f7db5edce63f158f93dd8079edsize 8261
README.mdAdded+61
adapter_model.safetensors+1-1
runs/Jan27_18-55-32_ai1/events.out.tfevents.1706378136.ai1.6039.0+2-2