Run this model with HF Jobs
Run kyryl-opens-ml/duckdb-text2sql-codellama 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/kyryl-opens-ml/duckdb-text2sql-codellama. 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/kyryl-opens-ml/duckdb-text2sql-codellama 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 kyryl-opens-ml/duckdb-text2sql-codellama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use kyryl-opens-ml/duckdb-text2sql-codellama 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, "kyryl-opens-ml/duckdb-text2sql-codellama") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (6)
45 unmodified lines4647484950515245 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.03- num_epochs: 0.0001### Training results45 unmodified lines4647484950515245 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.03- num_epochs: 0.01### Training results
8 unmodified lines9101112131415161718192021222324252627282930318 unmodified lines"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","gate_proj","v_proj","q_proj","k_proj","up_proj","down_proj"],"task_type": "CAUSAL_LM","use_rslora": false8 unmodified lines910111213141516171819202122232425268 unmodified lines"layers_pattern": null,"layers_to_transform": null,"loftq_config": {},"lora_alpha": 8,"lora_dropout": 0.05,"megatron_config": null,"megatron_core": "megatron.core","modules_to_save": null,"peft_type": "LORA","r": 32,"rank_pattern": {},"revision": null,"target_modules": ["v_proj","q_proj"],"task_type": "CAUSAL_LM","use_rslora": false
123version https://git-lfs.github.com/spec/v1oid sha256:d394ac552cb1dd3a47bf1f1f1b08935be56350eadd7e36a39bbd041b8deeab3dsize 1803907984123version https://git-lfs.github.com/spec/v1oid sha256:e6dc7d42cfcb58887f3d7fda8cc1a7bda580b734c510d8e60b5cf23eb195732fsize 558155232
1234567{"epoch": 0.0,"train_loss": 0.9373413324356079,"train_runtime": 26.737,"train_samples_per_second": 0.022,"train_steps_per_second": 0.037}1234567{"epoch": 0.01,"train_loss": 0.8435632705688476,"train_runtime": 143.2906,"train_samples_per_second": 0.268,"train_steps_per_second": 0.035}
1234567{"epoch": 0.0,"train_loss": 0.9373413324356079,"train_runtime": 26.737,"train_samples_per_second": 0.022,"train_steps_per_second": 0.037}1234567{"epoch": 0.01,"train_loss": 0.8435632705688476,"train_runtime": 143.2906,"train_samples_per_second": 0.268,"train_steps_per_second": 0.035}
123version https://git-lfs.github.com/spec/v1oid sha256:abea1e76f744c42bb1a2410accee7956f562e20ed48da307ee0648bcb414d359size 4920123version https://git-lfs.github.com/spec/v1oid sha256:7ce936f620d4e344f33400396b71d9d80a46d45713aa43b380f1ba1dae1d7b42size 4920
README.md+1-1
adapter_config.json+3-8
adapter_model.safetensors+2-2
all_results.json+5-5
train_results.json+5-5
training_args.bin+1-1