Instructions to use aisha44/mistral_instructv3_KQL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use aisha44/mistral_instructv3_KQL with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2") model = PeftModel.from_pretrained(base_model, "aisha44/mistral_instructv3_KQL") - Notebooks
- Google Colab
- Kaggle
generation/mistral2_KQL_v3
Browse filesFiles changed (9)
- README.mdAdded+66
- adapter_config.jsonAdded+29
- adapter_model.safetensorsAdded+3
- runs/Apr15_00-04-50_a0ef7ef4f509/events.out.tfevents.1713139553.a0ef7ef4f509.4348.0Added+3
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+43
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566---license: apache-2.0library_name: pefttags:- trl- sft- generated_from_trainerdatasets:- generatorbase_model: mistralai/Mistral-7B-Instruct-v0.2model-index:- name: mistral_instructv3_KQL 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. -->
# mistral_instructv3_KQL
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on the generator dataset.It achieves the following results on the evaluation set:- Loss: 0.4070
## 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: 8- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_steps: 0.03- training_steps: 400- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 0.26 | 6.25 | 200 | 0.3536 || 0.1469 | 12.5 | 400 | 0.4070 |
### Framework versions
- PEFT 0.10.0- Transformers 4.39.3- Pytorch 2.2.2+cu121- Datasets 2.18.0- Tokenizers 0.15.21234567891011121314151617181920212223242526272829{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2", "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": 16, "lora_dropout": 0.1, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 64, "rank_pattern": {}, "revision": null, "target_modules": [ "q_proj", "v_proj" ], "task_type": "CAUSAL_LM", "use_dora": false, "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:1284928d17e3a9384b5c18c9d17db24461dd32350abe721338725b960aee2e0fsize 109069176123version https://git-lfs.github.com/spec/v1oid sha256:cf254599e18e6de2edbd1034d3583714ee6fa4a6b51a98bc0e24d25cb9acdde2size 14396123456789101112131415161718192021222324{ "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": "</s>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055size 49344312345678910111213141516171819202122232425262728293031323334353637383940414243{ "add_bos_token": true, "add_eos_token": false, "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>", "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "legacy": true, "model_max_length": 1000000000000000019884624838656, "pad_token": "</s>", "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:608a53caf2f0da8c0bab78ef6ab62a5b10e2bb9bd9a454e9aee751783289d12fsize 4920README.mdAdded+66
adapter_config.jsonAdded+29
adapter_model.safetensorsAdded+3
runs/Apr15_00-04-50_a0ef7ef4f509/events.out.tfevents.1713139553.a0ef7ef4f509.4348.0Added+3
special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+43
training_args.binAdded+3