Run this model with HF Jobs
Run Liu-Xiang/mistral7bit-lora-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/Liu-Xiang/mistral7bit-lora-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/Liu-Xiang/mistral7bit-lora-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 Liu-Xiang/mistral7bit-lora-sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Liu-Xiang/mistral7bit-lora-sql with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1") model = PeftModel.from_pretrained(base_model, "Liu-Xiang/mistral7bit-lora-sql") - Notebooks
- Google Colab
- Kaggle
mistral7b-ft-lora-sql-v2adapters
Browse filesFiles changed (8)
- README.mdAdded+84
- adapter_config.jsonAdded+34
- adapter_model.safetensorsAdded+3
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+44
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384---base_model: mistralai/Mistral-7B-v0.1datasets:- generatorlibrary_name: peftlicense: apache-2.0tags:- trl- sft- generated_from_trainermodel-index:- name: mistral7bit-lora-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. -->
# mistral7bit-lora-sql
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the generator dataset.It achieves the following results on the evaluation set:- Loss: 0.3405
## 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.0003- train_batch_size: 8- eval_batch_size: 8- seed: 1399- gradient_accumulation_steps: 4- total_train_batch_size: 32- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 100- training_steps: 500
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:------:|:----:|:---------------:|| 0.7523 | 0.0565 | 20 | 0.5037 || 0.4763 | 0.1129 | 40 | 0.4221 || 0.4231 | 0.1694 | 60 | 0.3944 || 0.4051 | 0.2258 | 80 | 0.3833 || 0.396 | 0.2823 | 100 | 0.3756 || 0.3885 | 0.3387 | 120 | 0.3717 || 0.3829 | 0.3952 | 140 | 0.3651 || 0.3752 | 0.4517 | 160 | 0.3605 || 0.3752 | 0.5081 | 180 | 0.3565 || 0.3688 | 0.5646 | 200 | 0.3551 || 0.3655 | 0.6210 | 220 | 0.3530 || 0.3596 | 0.6775 | 240 | 0.3472 || 0.3565 | 0.7339 | 260 | 0.3460 || 0.3556 | 0.7904 | 280 | 0.3448 || 0.3553 | 0.8469 | 300 | 0.3440 || 0.3496 | 0.9033 | 320 | 0.3424 || 0.3446 | 0.9598 | 340 | 0.3405 || 0.3328 | 1.0162 | 360 | 0.3402 || 0.3035 | 1.0727 | 380 | 0.3405 |
### Framework versions
- PEFT 0.12.0- Transformers 4.44.0- Pytorch 2.2.2+cu121- Datasets 2.21.0- Tokenizers 0.19.112345678910111213141516171819202122232425262728293031323334{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "mistralai/Mistral-7B-v0.1", "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 32, "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": [ "v_proj", "gate_proj", "down_proj", "up_proj", "q_proj", "o_proj", "k_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:60d95b10b6e140a9626a7058d5038528f2ff80148dc4569b881db56052046509size 40123456789101112131415161718192021222324{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<unk>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055size 4934431234567891011121314151617181920212223242526272829303132333435363738394041424344{ "add_bos_token": true, "add_eos_token": false, "add_prefix_space": null, "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 } }, "additional_special_tokens": [], "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "legacy": false, "model_max_length": 1000000000000000019884624838656, "pad_token": "<unk>", "padding_side": "left", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "tokenizer_class": "LlamaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": false}123version https://git-lfs.github.com/spec/v1oid sha256:40d96b9dd94bfc65b498ca51bc546b6a4775114557a942115299085911833a7csize 5432README.mdAdded+84
adapter_config.jsonAdded+34
adapter_model.safetensorsAdded+3
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+44
training_args.binAdded+3