Run this model with HF Jobs
Run Vasanth/gemma-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/Vasanth/gemma-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/Vasanth/gemma-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 Vasanth/gemma-sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Vasanth/gemma-sql with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-7b") model = PeftModel.from_pretrained(base_model, "Vasanth/gemma-sql") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (10)
- .gitattributes+1
- README.mdAdded+59
- adapter_config.jsonAdded+33
- adapter_model.safetensorsAdded+3
- runs/Mar12_05-20-07_7345b2ef1470/events.out.tfevents.1710220811.7345b2ef1470.156.0Added+3
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded+3
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+49
- training_args.binAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859---license: otherlibrary_name: pefttags:- trl- sft- generated_from_trainerdatasets:- generatorbase_model: google/gemma-7bmodel-index:- name: gemma-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. -->
# gemma-sql
This model is a fine-tuned version of [google/gemma-7b](https://huggingface.co/google/gemma-7b) 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: 1- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- num_epochs: 1- mixed_precision_training: Native AMP
### Training results
### Framework versions
- PEFT 0.9.0- Transformers 4.38.2- Pytorch 2.1.0+cu121- Datasets 2.18.0- Tokenizers 0.15.2123456789101112131415161718192021222324252627282930313233{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "google/gemma-7b", "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": 16, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 16, "rank_pattern": {}, "revision": null, "target_modules": [ "o_proj", "gate_proj", "up_proj", "down_proj", "k_proj", "q_proj", "v_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:14a36e85ac3ea0fd4a8469c99c1d21a020c582d2b59721e08ff6847276bb0235size 200068512123version https://git-lfs.github.com/spec/v1oid sha256:1b3cfe5641b6b216e46375e7a31a0b4892e1e1d3afd5a7eee779f1fd8d167cefsize 8330123456789101112131415161718192021222324{ "bos_token": { "content": "<bos>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<eos>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<eos>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:d0d908b4f9326e0998815690e325b6abbd378978553e10627924dd825db7e243size 17477553123version https://git-lfs.github.com/spec/v1oid sha256:61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2size 424100312345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ "add_bos_token": true, "add_eos_token": false, "added_tokens_decoder": { "0": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<eos>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "<bos>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<bos>", "clean_up_tokenization_spaces": false, "eos_token": "<eos>", "legacy": null, "model_max_length": 1000000000000000019884624838656, "pad_token": "<eos>", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "tokenizer_class": "GemmaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": false}123version https://git-lfs.github.com/spec/v1oid sha256:80345c8d21b21ee467420a7ca7bb476b177cde88349040dd89fc37a4a39ca4c2size 4920.gitattributes+1
README.mdAdded+59
adapter_config.jsonAdded+33
adapter_model.safetensorsAdded+3
runs/Mar12_05-20-07_7345b2ef1470/events.out.tfevents.1710220811.7345b2ef1470.156.0Added+3
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded+3
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+49
training_args.binAdded+3